Skip to content

Commit

Permalink
fix: disable verify in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoVoges committed Oct 5, 2023
1 parent c590206 commit 9ed8d4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ def setUpClass(cls):
# setup vault server (running in container)
cls.server = VaultServer()

# disable tls verify for all clients
cls.server.parameters["VAULT_SKIP_VERIFY"] = True

@classmethod
def tearDownClass(cls):
# close connection
Expand Down
3 changes: 3 additions & 0 deletions tests/test_vault_transit.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ def setUpClass(cls):
cls.server.vault_client.secrets.transit.create_key(name="hvac_key")
cls.server.vault_client.secrets.transit.create_key(name="hvac_updated_key")

# disable tls verify for all clients
cls.server.parameters["VAULT_SKIP_VERIFY"] = True

# setup static vault client
parameters = {"auth": "token", "crypto_key": "hvac_key"}
env = dict(**parameters, **cls.server.parameters)
Expand Down

0 comments on commit 9ed8d4f

Please sign in to comment.