From cef4edd384baeda913e309ebcc9a9dd8753dc744 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 6 Jun 2019 10:29:38 -0400 Subject: [PATCH] Fix expected return code in tests when server is uninstalled It is likely that these were fixed by the original change b96906156be37a7b29ee74423b82f04070c84e22 but was uncaught because these tests are not executed in CI because the server is configured. https://pagure.io/freeipa/issue/7836 Signed-off-by: Rob Crittenden Reviewed-By: Florence Blanc-Renaud --- ipatests/test_cmdline/test_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipatests/test_cmdline/test_cli.py b/ipatests/test_cmdline/test_cli.py index ad8fc1ea2..f1d073cf1 100644 --- a/ipatests/test_cmdline/test_cli.py +++ b/ipatests/test_cmdline/test_cli.py @@ -367,8 +367,8 @@ IPA_CLIENT_NOT_CONFIGURED = b'IPA client is not configured on this system' [ # Commands delivered by the client pkg (['ipa'], 1, None, IPA_CLIENT_NOT_CONFIGURED), - (['ipa-certupdate'], 1, None, IPA_CLIENT_NOT_CONFIGURED), - (['ipa-client-automount'], 1, IPA_CLIENT_NOT_CONFIGURED, None), + (['ipa-certupdate'], 2, None, IPA_CLIENT_NOT_CONFIGURED), + (['ipa-client-automount'], 2, IPA_CLIENT_NOT_CONFIGURED, None), # Commands delivered by the server pkg (['ipa-adtrust-install'], 2, None, IPA_NOT_CONFIGURED), (['ipa-advise'], 2, None, IPA_NOT_CONFIGURED),