summaryrefslogtreecommitdiffstats
path: root/utils/test/fixture.py
diff options
context:
space:
mode:
authorSamuel Munilla <smunilla@redhat.com>2016-03-09 08:45:09 -0500
committerSamuel Munilla <smunilla@redhat.com>2016-03-09 09:09:24 -0500
commitbcbb870431bea53a9863802e15bbfad98931b04d (patch)
tree8de46887206d3cc596c6b562c5c7f762ad924a53 /utils/test/fixture.py
parent2ce2f905275acd7ec4cda7fa072ba385208f30d1 (diff)
downloadopenshift-bcbb870431bea53a9863802e15bbfad98931b04d.tar.gz
openshift-bcbb870431bea53a9863802e15bbfad98931b04d.tar.bz2
openshift-bcbb870431bea53a9863802e15bbfad98931b04d.tar.xz
openshift-bcbb870431bea53a9863802e15bbfad98931b04d.zip
a-o-i: Fix NFS storage tests
Fix the nosetests after the rebase
Diffstat (limited to 'utils/test/fixture.py')
-rw-r--r--utils/test/fixture.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/utils/test/fixture.py b/utils/test/fixture.py
index 1b1c2e5c2..d6222dfaa 100644
--- a/utils/test/fixture.py
+++ b/utils/test/fixture.py
@@ -92,7 +92,7 @@ class OOCliFixture(OOInstallFixture):
self.assertTrue('hostname' in host)
self.assertTrue('public_hostname' in host)
if 'preconfigured' not in host:
- self.assertTrue(host['node'])
+ self.assertTrue('node' in host or 'storage' in host)
self.assertTrue('ip' in host)
self.assertTrue('public_ip' in host)
@@ -142,7 +142,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):
+ master_lb=None, storage=None):
"""
Build an input string simulating a user entering values in an interactive
attended install.
@@ -197,7 +197,10 @@ def build_input(ssh_user=None, hosts=None, variant_num=None,
inputs.append(master_lb[0])
inputs.append('y' if master_lb[1] else 'n')
- inputs.append('example.com')
+ if storage:
+ inputs.append(storage)
+
+ inputs.append('subdomain.example.com')
# TODO: support option 2, fresh install
if add_nodes: