summaryrefslogtreecommitdiffstats
path: root/utils/test
diff options
context:
space:
mode:
authorSamuel Munilla <smunilla@redhat.com>2015-11-20 10:09:24 -0500
committerSamuel Munilla <smunilla@redhat.com>2015-11-23 18:05:26 -0500
commitda2eddb79784ddcff75cbb71a4d7cc77b3e86386 (patch)
tree4dd29db940b1c15820f1e5410f39375b5aea0028 /utils/test
parent0ee19018001ed6a0a578aa5b7b75e096d6c014d6 (diff)
downloadopenshift-da2eddb79784ddcff75cbb71a4d7cc77b3e86386.tar.gz
openshift-da2eddb79784ddcff75cbb71a4d7cc77b3e86386.tar.bz2
openshift-da2eddb79784ddcff75cbb71a4d7cc77b3e86386.tar.xz
openshift-da2eddb79784ddcff75cbb71a4d7cc77b3e86386.zip
Add interactive test
Diffstat (limited to 'utils/test')
-rw-r--r--utils/test/cli_installer_tests.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/utils/test/cli_installer_tests.py b/utils/test/cli_installer_tests.py
index 61bc77445..b5ef87cce 100644
--- a/utils/test/cli_installer_tests.py
+++ b/utils/test/cli_installer_tests.py
@@ -668,6 +668,33 @@ class AttendedCliTests(OOCliFixture):
exp_hosts_to_run_on_len=2,
force=False)
+ #interactive multimaster
+ @patch('ooinstall.openshift_ansible.run_main_playbook')
+ @patch('ooinstall.openshift_ansible.load_system_facts')
+ def test_quick_ha(self, load_facts_mock, run_playbook_mock):
+ load_facts_mock.return_value = (MOCK_FACTS, 0)
+ run_playbook_mock.return_value = 0
+
+ cli_input = self._build_input(hosts=[
+ ('10.0.0.1', True),
+ ('10.0.0.2', True),
+ ('10.0.0.3', False),
+ ('10.0.0.4', True)],
+ ssh_user='root',
+ variant_num=1,
+ 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._verify_load_facts(load_facts_mock)
+ self._verify_run_playbook(run_playbook_mock, 3, 3)
+
+ written_config = self._read_yaml(self.config_file)
+ self._verify_config_hosts(written_config, 3)
+
+ return
# 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