From bfd7b6e00d00efea637f0f575570ac7abd6c5fbc Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 12 May 2021 16:50:21 -0400 Subject: [PATCH] ipatests: kinit on server for test_proxycommand_invalid_shell We've seen some intermittent failures of this test with warnings about passwords about to expire. We suspect there may be a time difference between the client and server so set the passwords on the server instead to be sure that time is correct. https://pagure.io/freeipa/issue/8785 Signed-off-by: Rob Crittenden Reviewed-By: Florence Blanc-Renaud --- ipatests/test_integration/test_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipatests/test_integration/test_commands.py b/ipatests/test_integration/test_commands.py index b7ffb926f..6859a93b4 100644 --- a/ipatests/test_integration/test_commands.py +++ b/ipatests/test_integration/test_commands.py @@ -1426,10 +1426,10 @@ class TestIPACommand(IntegrationTest): user_kinit = "{password}\n{password}\n{password}\n".format( password=password) - self.clients[0].run_command([ + self.master.run_command([ 'kinit', regular_user], stdin_text=user_kinit) - self.clients[0].run_command([ + self.master.run_command([ 'kinit', restricted_user], stdin_text=user_kinit) tasks.kdestroy_all(self.clients[0])