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 <myusuf@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
Mohammad Rizwan 2021-11-01 20:36:01 +05:30 committed by Florence Blanc-Renaud
parent 3d809c7061
commit 6b544c4362

View File

@ -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(