mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
parent
3d809c7061
commit
6b544c4362
@ -585,7 +585,7 @@ class TestACMERenew(IntegrationTest):
|
|||||||
# Note raiseonerr=False:
|
# Note raiseonerr=False:
|
||||||
# the assert is located after kdcinfo retrieval.
|
# the assert is located after kdcinfo retrieval.
|
||||||
result = host.run_command(
|
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(
|
stdin_text='{0}\n{0}\n{0}\n'.format(
|
||||||
self.clients[0].config.admin_password
|
self.clients[0].config.admin_password
|
||||||
),
|
),
|
||||||
@ -619,8 +619,6 @@ class TestACMERenew(IntegrationTest):
|
|||||||
cert = x509.load_pem_x509_certificate(data, backend=default_backend())
|
cert = x509.load_pem_x509_certificate(data, backend=default_backend())
|
||||||
initial_expiry = cert.not_valid_after
|
initial_expiry = cert.not_valid_after
|
||||||
|
|
||||||
tasks.kinit_admin(self.clients[0])
|
|
||||||
|
|
||||||
self.clients[0].run_command(['certbot', 'renew'])
|
self.clients[0].run_command(['certbot', 'renew'])
|
||||||
|
|
||||||
data = self.clients[0].get_file_contents(
|
data = self.clients[0].get_file_contents(
|
||||||
|
Loading…
Reference in New Issue
Block a user