Skip to content

Commit

Permalink
ci-credentials: fix typo when no secret found (#20353)
Browse files Browse the repository at this point in the history
  • Loading branch information
alafanechere committed Dec 12, 2022
1 parent da6a015 commit 9eca59e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions tools/ci_credentials/ci_credentials/secrets_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ def write_to_storage(self, secrets: List[RemoteSecret]) -> List[Path]:
List[Path]: List of paths were the secrets were written
"""
written_files = []
if not secrets:
return 0
for secret in secrets:
secrets_dir = self.base_folder / secret.directory
secrets_dir.mkdir(parents=True, exist_ok=True)
Expand Down
2 changes: 1 addition & 1 deletion tools/ci_credentials/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
TEST_REQUIREMENTS = ["requests-mock", "pytest"]

setup(
version="1.0.0",
version="1.0.1",
name="ci_credentials",
description="CLI tooling to read and manage GSM secrets",
author="Airbyte",
Expand Down
5 changes: 5 additions & 0 deletions tools/ci_credentials/tests/test_secrets_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ def test_read(matchers, connector_name, gsm_secrets, expected_secrets):
"airbyte-integrations/bases/base-normalization/secrets/auth.json",
],
),
(
"source-no-secret",
[],
[],
),
),
)
def test_write(tmp_path, connector_name, secrets, expected_files):
Expand Down

0 comments on commit 9eca59e

Please sign in to comment.