summaryrefslogtreecommitdiffstats
path: root/utils/test
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2015-11-30 15:20:54 -0400
committerDevan Goodwin <dgoodwin@redhat.com>2015-11-30 15:23:16 -0400
commitcdd9aa7543f869aab5914fb816a66ed0debb0930 (patch)
treeb0a8f55f44b21df29d931b4da15638aced6ad54e /utils/test
parent4872c5e1d298cba9901e2ecf207580b7d4fdece7 (diff)
downloadopenshift-cdd9aa7543f869aab5914fb816a66ed0debb0930.tar.gz
openshift-cdd9aa7543f869aab5914fb816a66ed0debb0930.tar.bz2
openshift-cdd9aa7543f869aab5914fb816a66ed0debb0930.tar.xz
openshift-cdd9aa7543f869aab5914fb816a66ed0debb0930.zip
Error out if no load balancer specified.
Diffstat (limited to 'utils/test')
-rw-r--r--utils/test/cli_installer_tests.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/utils/test/cli_installer_tests.py b/utils/test/cli_installer_tests.py
index c12b4d564..ad76cc3e9 100644
--- a/utils/test/cli_installer_tests.py
+++ b/utils/test/cli_installer_tests.py
@@ -588,17 +588,10 @@ class UnattendedCliTests(OOCliFixture):
self.cli_args.extend(["-c", config_file, "install"])
result = self.runner.invoke(cli.cli, self.cli_args)
- # We consider this a valid outcome but lets make sure the warning
- # was displayed:
- self.assert_result(result, 0)
+ # This is not a valid input:
+ self.assert_result(result, 1)
self.assertTrue('No master load balancer specified in config' in result.output)
- # Make sure we ran on the expected masters and nodes:
- hosts = run_playbook_mock.call_args[0][0]
- hosts_to_run_on = run_playbook_mock.call_args[0][1]
- self.assertEquals(3, len(hosts))
- self.assertEquals(3, len(hosts_to_run_on))
-
#unattended with three masters, one node, and one of the masters reused as load balancer:
@patch('ooinstall.openshift_ansible.run_main_playbook')
@patch('ooinstall.openshift_ansible.load_system_facts')