summaryrefslogtreecommitdiffstats
path: root/utils/test/fixture.py
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@afrolegs.com>2016-10-21 13:07:30 -0400
committerGitHub <noreply@github.com>2016-10-21 13:07:30 -0400
commit65a478443e4c86576f99936dac3f2989c685552e (patch)
tree5215d83878a96ea82c608d9740a322af17eed21b /utils/test/fixture.py
parent88347f4866ed41132abb7f78fe37ac264236a395 (diff)
parent1c7dd6d5cd94c92ebec0a0fda789f4bfffa23472 (diff)
downloadopenshift-65a478443e4c86576f99936dac3f2989c685552e.tar.gz
openshift-65a478443e4c86576f99936dac3f2989c685552e.tar.bz2
openshift-65a478443e4c86576f99936dac3f2989c685552e.tar.xz
openshift-65a478443e4c86576f99936dac3f2989c685552e.zip
Merge pull request #2563 from smunilla/BZ1339621
a-o-i: Separate install and scaleup workflows
Diffstat (limited to 'utils/test/fixture.py')
-rw-r--r--utils/test/fixture.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/utils/test/fixture.py b/utils/test/fixture.py
index a883e5c56..62135c761 100644
--- a/utils/test/fixture.py
+++ b/utils/test/fixture.py
@@ -138,8 +138,8 @@ class OOCliFixture(OOInstallFixture):
written_config = read_yaml(config_file)
self._verify_config_hosts(written_config, exp_hosts_len)
- if "Uninstalled" in result.output:
- # verify we exited on seeing uninstalled hosts
+ if "If you want to force reinstall" in result.output:
+ # verify we exited on seeing installed hosts
self.assertEqual(result.exit_code, 1)
else:
self.assert_result(result, 0)
@@ -156,7 +156,7 @@ class OOCliFixture(OOInstallFixture):
#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, storage=None):
+ master_lb=('', False), storage=None):
"""
Build an input string simulating a user entering values in an interactive
attended install.
@@ -204,11 +204,11 @@ def build_input(ssh_user=None, hosts=None, variant_num=None,
i += 1
# You can pass a single master_lb or a list if you intend for one to get rejected:
- if master_lb:
- if isinstance(master_lb[0], list) or isinstance(master_lb[0], tuple):
- inputs.extend(master_lb[0])
- else:
- inputs.append(master_lb[0])
+ if isinstance(master_lb[0], list) or isinstance(master_lb[0], tuple):
+ inputs.extend(master_lb[0])
+ else:
+ inputs.append(master_lb[0])
+ if master_lb[0]:
inputs.append('y' if master_lb[1] else 'n')
if storage:
@@ -248,6 +248,7 @@ def build_input(ssh_user=None, hosts=None, variant_num=None,
inputs.extend([
confirm_facts,
'y', # lets do this
+ 'y',
])
return '\n'.join(inputs)