From f445de0dc4cb0c2c5939ee111974590b4b0c707a Mon Sep 17 00:00:00 2001 From: yazansalti Date: Sat, 14 Sep 2024 16:29:54 +0200 Subject: [PATCH] Fix itest typo --- tests/integration/test_integration.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/integration/test_integration.py b/tests/integration/test_integration.py index 5591c97..f65e0bf 100644 --- a/tests/integration/test_integration.py +++ b/tests/integration/test_integration.py @@ -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", } ) @@ -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