URL: https://github.com/freeipa/freeipa/pull/1460 Author: mrizwan93 Title: #1460: test to check if recommended replication agreement exceeds Action: opened
PR body: """ Maximum recommended number of agreements per replica is 4. This test checks if number of agreement exceeds the recommendation, warning should be given to the user related ticket : https://pagure.io/freeipa/issue/6533 """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/1460/head:pr1460 git checkout pr1460
From 1f0dc8e35d94aec5f92489a53e298cea9018e18f Mon Sep 17 00:00:00 2001 From: Mohammad Rizwan Yusuf <myu...@redhat.com> Date: Fri, 12 Jan 2018 16:26:17 +0530 Subject: [PATCH] Maximum recomended number of agreements per replica is 4. This test checks if number of agreement exceeds the recomendation, warnning should be given to the user related ticket : https://pagure.io/freeipa/issue/6533 Signed-off-by: Mohammad Rizwan Yusuf <myu...@redhat.com> --- .../test_integration/test_replica_promotion.py | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/ipatests/test_integration/test_replica_promotion.py b/ipatests/test_integration/test_replica_promotion.py index de71c82b7a..2d1660b746 100644 --- a/ipatests/test_integration/test_replica_promotion.py +++ b/ipatests/test_integration/test_replica_promotion.py @@ -570,3 +570,36 @@ def test_replica_install_with_existing_entry(self): master.run_command(arg) tasks.install_replica(master, replica) + + +ass TestRecomendedReplicationAgreement(IntegrationTest): + """Maximum recomended number of agreements per replica is 4. + This test checks if number of agreement exceeds the recomendation, + warnning should be given to the user + + related ticket : https://pagure.io/freeipa/issue/6533""" + + num_replicas = 5 + + def test_recomended_replication_agreement(self): + master = self.master + replica1 = self.replicas[0] + replica2 = self.replicas[1] + replica3 = self.replicas[2] + replica4 = self.replicas[3] + replica5 = self.replicas[4] + + tasks.install_master(master) + tasks.install_replica(master, replica1) + tasks.install_replica(master, replica2) + tasks.install_replica(master, replica3) + tasks.install_replica(master, replica4) + tasks.install_replica(master, replica5) + + arg = ['ipa', 'topologysuffix-verify', 'domain'] + cmd = master.run_command(arg) + expected_str1 = ("Recommended maximum number of " + + "agreements per replica exceeded") + expected_str2 = "Maximum number of agreements per replica: 4" + assert (expected_str1 in cmd.stdout_text) and ( + expected_str2 in cmd.stdout_text)
_______________________________________________ FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org