From d3edc039419e9a944ee37dd9e02edfd6a627db5a Mon Sep 17 00:00:00 2001 From: Mohammad Rizwan Date: Mon, 1 Nov 2021 20:36:01 +0530 Subject: [PATCH] ipatests: remove redundant kinit from test Fixture issue_and_expire_cert() kinit after moving the date to expire certs. This fix is to rely on kinit from fixture. Signed-off-by: Mohammad Rizwan Reviewed-By: Florence Blanc-Renaud --- ipatests/test_integration/test_acme.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ipatests/test_integration/test_acme.py b/ipatests/test_integration/test_acme.py index 10195a95f..a30f2fc75 100644 --- a/ipatests/test_integration/test_acme.py +++ b/ipatests/test_integration/test_acme.py @@ -585,7 +585,7 @@ class TestACMERenew(IntegrationTest): # Note raiseonerr=False: # the assert is located after kdcinfo retrieval. result = host.run_command( - "KRB5_TRACE=/dev/stdout kinit %s" % 'admin', + "KRB5_TRACE=/dev/stdout kinit admin", stdin_text='{0}\n{0}\n{0}\n'.format( self.clients[0].config.admin_password ), @@ -619,8 +619,6 @@ class TestACMERenew(IntegrationTest): cert = x509.load_pem_x509_certificate(data, backend=default_backend()) initial_expiry = cert.not_valid_after - tasks.kinit_admin(self.clients[0]) - self.clients[0].run_command(['certbot', 'renew']) data = self.clients[0].get_file_contents(