Skip to content

Commit

Permalink
Fix CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
bnchrch committed Aug 15, 2023
1 parent c571681 commit 6c0260c
Show file tree
Hide file tree
Showing 3 changed files with 346 additions and 911 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def matchers():
"addVersion": re.compile("https://secretmanager.googleapis.com/v1/.+:addVersion"),
"access": re.compile("https://secretmanager.googleapis.com/v1/.+/1:access"),
"disable": re.compile("https://secretmanager.googleapis.com/v1/.+:disable"),
"spec_secret_mask": re.compile("https://connectors.airbyte.com/files/registries/v0/specs_secrets_mask.yaml"),
}


Expand Down Expand Up @@ -92,6 +93,7 @@ def test_read(matchers, connector_name, gsm_secrets, expected_secrets):
m.post(matchers["secrets"], json={"name": "<fake_name>"})
m.get(matchers["versions"], versions_response_list)
m.get(matchers["access"], secrets_response_list)
m.get(matchers["spec_secret_mask"], json={"spec_secret_mask": "test"})

secrets = manager.read_from_gsm()
assert secrets == expected_secrets
Expand Down
Loading

0 comments on commit 6c0260c

Please sign in to comment.