summaryrefslogtreecommitdiffstats
path: root/utils/test/fixture.py
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-03-23 14:59:18 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-03-24 09:07:34 -0300
commitb1479e0f4c2ded50fc68a435b6271a5acbec10e4 (patch)
tree4275bb0754bc4f483b65ae50d990c9290c43ee99 /utils/test/fixture.py
parent6df4b9a58452a0cbecd07099d5f462bab9fb957a (diff)
downloadopenshift-b1479e0f4c2ded50fc68a435b6271a5acbec10e4.tar.gz
openshift-b1479e0f4c2ded50fc68a435b6271a5acbec10e4.tar.bz2
openshift-b1479e0f4c2ded50fc68a435b6271a5acbec10e4.tar.xz
openshift-b1479e0f4c2ded50fc68a435b6271a5acbec10e4.zip
Add --gen-inventory command to atomic-openshift-installer.
This will just generate the Ansible inventory once all information is gathered, inform the user where to find it, and exit. Includes some test utility updates to make what broke as a result of this change less fragile.
Diffstat (limited to 'utils/test/fixture.py')
-rw-r--r--utils/test/fixture.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/test/fixture.py b/utils/test/fixture.py
index d6222dfaa..eb94418c2 100644
--- a/utils/test/fixture.py
+++ b/utils/test/fixture.py
@@ -81,8 +81,8 @@ class OOCliFixture(OOInstallFixture):
def _verify_run_playbook(self, run_playbook_mock, exp_hosts_len, exp_hosts_to_run_on_len):
""" Check that we ran playbook with expected inputs. """
- hosts = run_playbook_mock.call_args[0][0]
- hosts_to_run_on = run_playbook_mock.call_args[0][1]
+ hosts = run_playbook_mock.call_args[0][1]
+ hosts_to_run_on = run_playbook_mock.call_args[0][2]
self.assertEquals(exp_hosts_len, len(hosts))
self.assertEquals(exp_hosts_to_run_on_len, len(hosts_to_run_on))
@@ -133,8 +133,8 @@ class OOCliFixture(OOInstallFixture):
self._verify_run_playbook(run_playbook_mock, exp_hosts_len, exp_hosts_to_run_on_len)
# 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]
+ hosts = run_playbook_mock.call_args[0][1]
+ hosts_to_run_on = run_playbook_mock.call_args[0][2]
self.assertEquals(exp_hosts_len, len(hosts))
self.assertEquals(exp_hosts_to_run_on_len, len(hosts_to_run_on))