diff options
author | Oleg Fayans <ofayans@redhat.com> | 2016-09-09 15:06:46 +0200 |
---|---|---|
committer | David Kupka <dkupka@redhat.com> | 2016-09-22 15:20:42 +0200 |
commit | bb4205b582038669888544786a5611b18e52bf42 (patch) | |
tree | ebde7b205a1a1d754dc1a1296ea748e28c1405be /ipatests/test_integration | |
parent | 9217bcc871468615110c85b1131b62735f9e5092 (diff) | |
download | freeipa-bb4205b582038669888544786a5611b18e52bf42.tar.gz freeipa-bb4205b582038669888544786a5611b18e52bf42.tar.xz freeipa-bb4205b582038669888544786a5611b18e52bf42.zip |
tests: Enabled negative testing for cleaning replication agreements
Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipatests/test_integration')
-rw-r--r-- | ipatests/test_integration/tasks.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ipatests/test_integration/tasks.py b/ipatests/test_integration/tasks.py index 4701511b1..b39df34a5 100644 --- a/ipatests/test_integration/tasks.py +++ b/ipatests/test_integration/tasks.py @@ -721,14 +721,15 @@ def uninstall_client(host): @check_arguments_are((0, 2), Host) -def clean_replication_agreement(master, replica): +def clean_replication_agreement(master, replica, cleanup=False, + raiseonerr=True): """ Performs `ipa-replica-manage del replica_hostname --force`. """ - master.run_command(['ipa-replica-manage', - 'del', - replica.hostname, - '--force']) + args = ['ipa-replica-manage', 'del', replica.hostname, '--force'] + if cleanup: + args.append('--cleanup') + master.run_command(args, raiseonerr=raiseonerr) @check_arguments_are((0, 3), Host) |