Skip to content

Commit

Permalink
Fix itest typo
Browse files Browse the repository at this point in the history
  • Loading branch information
saltiyazan committed Sep 14, 2024
1 parent 51e0cc7 commit f445de0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/integration/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async def test_given_tls_requirer_is_integrated_when_certificate_expires_then_ne
assert application
await application.set_config(
{
"root-ca-validity": "60s",
"root-ca-validity": "90s",
"certificate-validity": "30s",
}
)
Expand All @@ -149,16 +149,17 @@ async def test_given_tls_requirer_is_integrated_when_certificate_expires_then_ne
action_output = await wait_for_requirer_certificates(
ops_test=ops_test, ca_common_name=new_common_name
)
old_certificate = action_output.get("ca-certificate", "")
old_certificate = action_output.get("certificate", "")

assert old_certificate

time.sleep(30)
# Wait for the certificate to expire
time.sleep(35)

action_output = await wait_for_requirer_certificates(
ops_test=ops_test, ca_common_name=new_common_name
)
new_certificate = action_output.get("ca-certificate", "")
new_certificate = action_output.get("certificate", "")
assert new_certificate
assert new_certificate != old_certificate

Expand Down

0 comments on commit f445de0

Please sign in to comment.