summaryrefslogtreecommitdiffstats
path: root/utils/test/oo_config_tests.py
diff options
context:
space:
mode:
authorSamuel Munilla <smunilla@redhat.com>2016-08-09 13:31:02 -0400
committerSamuel Munilla <smunilla@redhat.com>2016-08-09 13:31:02 -0400
commitbe5414d9b480423dea55defd6e57bf4b833ee54d (patch)
treec57201709f774fc46b4488ad39493834abecbe14 /utils/test/oo_config_tests.py
parent47fbb92cf3727299c06c6c139c813c065494478d (diff)
downloadopenshift-be5414d9b480423dea55defd6e57bf4b833ee54d.tar.gz
openshift-be5414d9b480423dea55defd6e57bf4b833ee54d.tar.bz2
openshift-be5414d9b480423dea55defd6e57bf4b833ee54d.tar.xz
openshift-be5414d9b480423dea55defd6e57bf4b833ee54d.zip
a-o-i: Update nosetests for ansible_ssh_user
Update the nosetests to reflect the new location of ansible_ssh_user in the config file.
Diffstat (limited to 'utils/test/oo_config_tests.py')
-rw-r--r--utils/test/oo_config_tests.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/test/oo_config_tests.py b/utils/test/oo_config_tests.py
index c19fe9e0d..10439c9ae 100644
--- a/utils/test/oo_config_tests.py
+++ b/utils/test/oo_config_tests.py
@@ -13,8 +13,8 @@ from ooinstall.oo_config import OOConfig, Host, OOConfigInvalidHostError
SAMPLE_CONFIG = """
variant: openshift-enterprise
variant_version: 3.2
-ansible_ssh_user: root
deployment:
+ ansible_ssh_user: root
hosts:
- connect_to: master-private.example.com
ip: 10.0.0.1
@@ -65,6 +65,7 @@ validated_facts:
CONFIG_INCOMPLETE_FACTS = """
deployment:
+ ansible_ssh_user: root
hosts:
- connect_to: 10.0.0.1
ip: 10.0.0.1
@@ -90,8 +91,8 @@ deployment:
CONFIG_BAD = """
variant: openshift-enterprise
-ansible_ssh_user: root
deployment:
+ ansible_ssh_user: root
hosts:
- connect_to: master-private.example.com
ip: 10.0.0.1
@@ -212,7 +213,7 @@ class OOConfigTests(OOInstallFixture):
self.assertTrue('hostname' in h)
self.assertTrue('public_hostname' in h)
- self.assertTrue('ansible_ssh_user' in written_config)
+ self.assertTrue('ansible_ssh_user' in written_config['deployment'])
self.assertTrue('variant' in written_config)
self.assertEquals('v2', written_config['version'])