Skip to content

Commit

Permalink
Updating
Browse files Browse the repository at this point in the history
  • Loading branch information
jboucourt committed Aug 15, 2024
1 parent 4aedae0 commit 3ce7d3a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_gestalt.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,14 @@ def test_set_vault_key(nested_setup):
def test_vault_lazy_connect(mock_vault_k8s_auth):
with patch("gestalt.vault.hvac.Client") as mock_client:
v = Vault(role="test-role", jwt="test-jwt")
v.vault_client.auth.token.lookup_self = Mock(return_value={"data": {"id": "foo", "ttl": "foo", "expire_time": "2024-08-15T22:04:49.82981496Z"}})
v.vault_client.auth.token.lookup_self = Mock(
return_value={
"data": {
"id": "foo",
"ttl": "foo",
"expire_time": "2024-08-15T22:04:49.82981496Z"
}
})
assert not v._is_connected
v.get("foo", "foo", ".foo")
assert v._is_connected
Expand Down

0 comments on commit 3ce7d3a

Please sign in to comment.