From 3d2a4f25f777db69f5b314bf62bee6ec95fb3317 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Mon, 9 Nov 2020 11:23:25 +0100 Subject: [PATCH] ipatests: ipa-acme-manage status returns 3 on a CA-less server test_acme.py::TestACMECALess::test_enable_caless_to_cafull_replica is running ipa-acme-manage status on a CA-less server and wrongly expects retcode =1. According to the man page, the command returns 3 when executed on a server where the CA is not installed. Fixes: https://pagure.io/freeipa/issue/8572 Reviewed-By: Rob Crittenden --- ipatests/test_integration/test_acme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipatests/test_integration/test_acme.py b/ipatests/test_integration/test_acme.py index 307120511..dbb9befd5 100644 --- a/ipatests/test_integration/test_acme.py +++ b/ipatests/test_integration/test_acme.py @@ -443,7 +443,7 @@ class TestACMECALess(IntegrationTest): # check status of acme on replica, result: CA is not installed result = self.replicas[0].run_command(['ipa-acme-manage', 'status'], raiseonerr=False) - assert result.returncode == 1 + assert result.returncode == 3 # Install CA on replica tasks.install_ca(self.replicas[0])