summaryrefslogtreecommitdiffstats
path: root/utils/test
diff options
context:
space:
mode:
authorSamuel Munilla <smunilla@redhat.com>2015-11-20 14:34:42 -0500
committerSamuel Munilla <smunilla@redhat.com>2015-11-20 14:34:42 -0500
commita72243eda9ad0fb066c405a8171d41bfd8a16ecf (patch)
tree990f5ce1e3ddceb194dd06584d8a1eb135d6ffa9 /utils/test
parent7a5cc821c30abc6f1fce374e2a360bb9406f71f1 (diff)
downloadopenshift-a72243eda9ad0fb066c405a8171d41bfd8a16ecf.tar.gz
openshift-a72243eda9ad0fb066c405a8171d41bfd8a16ecf.tar.bz2
openshift-a72243eda9ad0fb066c405a8171d41bfd8a16ecf.tar.xz
openshift-a72243eda9ad0fb066c405a8171d41bfd8a16ecf.zip
Check the end result on bad config file
Diffstat (limited to 'utils/test')
-rw-r--r--utils/test/cli_installer_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/test/cli_installer_tests.py b/utils/test/cli_installer_tests.py
index e12b4a264..40a2f844d 100644
--- a/utils/test/cli_installer_tests.py
+++ b/utils/test/cli_installer_tests.py
@@ -499,10 +499,10 @@ class UnattendedCliTests(OOCliFixture):
'ooinstall.conf'), BAD_CONFIG % 'openshift-enterprise')
self.cli_args.extend(["-c", config_file, "install"])
- self.runner.invoke(cli.cli, self.cli_args)
+ result = self.runner.invoke(cli.cli, self.cli_args)
- # proving here that we didn't generate an exception from the bad config
- assert True
+ assert result.exit_code == 1
+ assert result.output == "You must specify either and 'ip' or 'hostname' to connect to.\n"
class AttendedCliTests(OOCliFixture):