summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Fayans <ofayans@redhat.com>2016-08-04 12:42:23 +0200
committerMartin Basti <mbasti@redhat.com>2016-08-04 15:11:42 +0200
commit2df047b8c51098bae9224b88dbdf03e5f9504f21 (patch)
treed9714da7b15798816f77512f0a4453b56a1f2989
parent1a73477e1561b0a2a66852575010a136edc014a6 (diff)
Fixed incorrect return code assert
The assert checked that the returncode of the replica uninstallation is zero where in fact the uninstallation was expected to fail with the certain error message Reviewed-By: Martin Basti <mbasti@redhat.com>
-rw-r--r--ipatests/test_integration/test_replica_promotion.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipatests/test_integration/test_replica_promotion.py b/ipatests/test_integration/test_replica_promotion.py
index 11c748f75..497dad5bf 100644
--- a/ipatests/test_integration/test_replica_promotion.py
+++ b/ipatests/test_integration/test_replica_promotion.py
@@ -345,7 +345,7 @@ class TestProhibitReplicaUninstallation(IntegrationTest):
result = self.replicas[0].run_command(['ipa-server-install',
'--uninstall', '-U'],
raiseonerr=False)
- assert(result.returncode == 0), ("The replica was removed without "
+ assert(result.returncode > 0), ("The replica was removed without "
"'--ignore-topology-disconnect' option")
assert("Uninstallation leads to disconnected topology"
in result.stdout_text), ("Expected error message was not found")