diff options
author | Cedric Ollivier <cedric.ollivier@orange.com> | 2017-07-12 08:04:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-07-12 08:04:29 +0000 |
commit | f81e3d2cf3cf9b54f940a6e0ae0ea68db0e1f589 (patch) | |
tree | 3865789b88e930b0a6d6e87727d2cf7403c31bce /functest/tests | |
parent | 6ac8b1f359a2d47eb66f1111c205ebccac314818 (diff) | |
parent | 8958f985e4fba10db7ad67a96a536f1d7660985a (diff) |
Merge "Add odl configurations for odl testcase in daisy environment"
Diffstat (limited to 'functest/tests')
-rw-r--r-- | functest/tests/unit/odl/test_odl.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/functest/tests/unit/odl/test_odl.py b/functest/tests/unit/odl/test_odl.py index 070a8d2e..8c8a6cec 100644 --- a/functest/tests/unit/odl/test_odl.py +++ b/functest/tests/unit/odl/test_odl.py @@ -513,6 +513,21 @@ class ODLRunTesting(ODLTesting): self._test_run(testcase.TestCase.EX_OK, odlip=self._neutron_ip, odlwebport='8181') + def test_daisy_no_controller_ip(self): + with mock.patch('functest.utils.openstack_utils.get_endpoint', + return_value="http://{}:9696".format( + ODLTesting._neutron_ip)): + os.environ["INSTALLER_TYPE"] = "daisy" + self.assertEqual(self.test.run(), + testcase.TestCase.EX_RUN_ERROR) + + def test_daisy(self): + os.environ["SDN_CONTROLLER_IP"] = self._sdn_controller_ip + os.environ["INSTALLER_TYPE"] = "daisy" + self._test_run(testcase.TestCase.EX_OK, + odlip=self._sdn_controller_ip, odlwebport='8181', + odlrestconfport='8087') + class ODLArgParserTesting(ODLTesting): |