Переглянути джерело

Check the end result on bad config file

Samuel Munilla 9 роки тому
батько
коміт
a72243eda9
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      utils/test/cli_installer_tests.py

+ 3 - 3
utils/test/cli_installer_tests.py

@@ -499,10 +499,10 @@ class UnattendedCliTests(OOCliFixture):
             'ooinstall.conf'), BAD_CONFIG % 'openshift-enterprise')
             'ooinstall.conf'), BAD_CONFIG % 'openshift-enterprise')
 
 
         self.cli_args.extend(["-c", config_file, "install"])
         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):
 class AttendedCliTests(OOCliFixture):