summaryrefslogtreecommitdiffstats
path: root/utils/test
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2015-12-16 21:43:48 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2015-12-16 21:43:48 -0500
commit95e962a459590ff913196f4e54f0eeafd8a9876e (patch)
treeabf2536207ad28529b443075d4256a5dee38180e /utils/test
parent2200cf224c9e5e32ccc537b90bf140beb1cf76df (diff)
parent0de78ee9fbbf29f58f5a0aa8f306d6a3ab421a6a (diff)
downloadopenshift-95e962a459590ff913196f4e54f0eeafd8a9876e.tar.gz
openshift-95e962a459590ff913196f4e54f0eeafd8a9876e.tar.bz2
openshift-95e962a459590ff913196f4e54f0eeafd8a9876e.tar.xz
openshift-95e962a459590ff913196f4e54f0eeafd8a9876e.zip
Merge pull request #1062 from smunilla/3.0_ha_hint
atomic-openshift-installer: Remove HA hint for 3.0 install
Diffstat (limited to 'utils/test')
-rw-r--r--utils/test/cli_installer_tests.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/utils/test/cli_installer_tests.py b/utils/test/cli_installer_tests.py
index 1da49c807..ea380d565 100644
--- a/utils/test/cli_installer_tests.py
+++ b/utils/test/cli_installer_tests.py
@@ -913,6 +913,25 @@ class AttendedCliTests(OOCliFixture):
self.assertEquals('True',
inventory.get('nodes', '10.0.0.1 openshift_schedulable'))
+ #interactive 3.0 install confirm no HA hints
+ @patch('ooinstall.openshift_ansible.run_main_playbook')
+ @patch('ooinstall.openshift_ansible.load_system_facts')
+ def test_ha_hint(self, load_facts_mock, run_playbook_mock):
+ load_facts_mock.return_value = (MOCK_FACTS, 0)
+ run_playbook_mock.return_value = 0
+
+ cli_input = build_input(hosts=[
+ ('10.0.0.1', True)],
+ ssh_user='root',
+ variant_num=2,
+ confirm_facts='y')
+ self.cli_args.append("install")
+ result = self.runner.invoke(cli.cli, self.cli_args,
+ input=cli_input)
+ self.assert_result(result, 0)
+ self.assertTrue("NOTE: Add a total of 3 or more Masters to perform an HA installation."
+ not in result.output)
+
# TODO: test with config file, attended add node
# TODO: test with config file, attended new node already in config file
# TODO: test with config file, attended new node already in config file, plus manually added nodes