diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2016-01-12 16:46:04 -0500 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2016-01-12 16:46:04 -0500 |
commit | 85c657669a202735bf6d4b96b02cbe7518b88485 (patch) | |
tree | 10ba23ed833ea0574cc90d681730de1d32520d85 /utils/test/fixture.py | |
parent | 00d184a86c7f07c6fa422f004702d16fc7aa0741 (diff) | |
parent | 2586da1a7b264cb74ea940b46e2376ae7181dbdb (diff) | |
download | openshift-85c657669a202735bf6d4b96b02cbe7518b88485.tar.gz openshift-85c657669a202735bf6d4b96b02cbe7518b88485.tar.bz2 openshift-85c657669a202735bf6d4b96b02cbe7518b88485.tar.xz openshift-85c657669a202735bf6d4b96b02cbe7518b88485.zip |
Merge pull request #1169 from abutcher/fix-rpm-container-tests
Add is_containerized inputs to nosetests.
Diffstat (limited to 'utils/test/fixture.py')
-rw-r--r-- | utils/test/fixture.py | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/utils/test/fixture.py b/utils/test/fixture.py index 90bd9e1ef..be759578a 100644 --- a/utils/test/fixture.py +++ b/utils/test/fixture.py @@ -138,7 +138,7 @@ class OOCliFixture(OOInstallFixture): self.assertEquals(exp_hosts_to_run_on_len, len(hosts_to_run_on)) -#pylint: disable=too-many-arguments,too-many-branches +#pylint: disable=too-many-arguments,too-many-branches,too-many-statements def build_input(ssh_user=None, hosts=None, variant_num=None, add_nodes=None, confirm_facts=None, schedulable_masters_ok=None, master_lb=None): @@ -163,13 +163,19 @@ def build_input(ssh_user=None, hosts=None, variant_num=None, num_masters = 0 if hosts: i = 0 - for (host, is_master) in hosts: + for (host, is_master, is_containerized) in hosts: inputs.append(host) if is_master: inputs.append('y') num_masters += 1 else: inputs.append('n') + + if is_containerized: + inputs.append('container') + else: + inputs.append('rpm') + #inputs.append('rpm') # We should not be prompted to add more hosts if we're currently at # 2 masters, this is an invalid HA configuration, so this question @@ -196,8 +202,12 @@ def build_input(ssh_user=None, hosts=None, variant_num=None, inputs.append('y') inputs.append('1') # Add more nodes i = 0 - for (host, is_master) in add_nodes: + for (host, is_master, is_containerized) in add_nodes: inputs.append(host) + if is_containerized: + inputs.append('container') + else: + inputs.append('rpm') #inputs.append('rpm') if i < len(add_nodes) - 1: inputs.append('y') # Add more hosts |