diff options
author | Nikolas Hermanns <nikolas.hermanns@ericsson.com> | 2017-01-24 14:43:51 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-02-03 09:53:55 +0100 |
commit | 6626f68e785e61de05bdafee68bafe14f66a78a7 (patch) | |
tree | 27fbf77e7169f9d8f4d7dfabbcd33f6df204267e /functest/tests/unit/odl/test_odl.py | |
parent | 03d4b5ba821059c778d40484f190f2358b24a2a8 (diff) |
Add netvirt to odl tests
For the odl test the default odl port is 8080. In netvirt this is the
same as apex.
Change-Id: I949510e4f7fb57bcf8ec01f69f7941c5d55c98e7
Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
Diffstat (limited to 'functest/tests/unit/odl/test_odl.py')
-rw-r--r-- | functest/tests/unit/odl/test_odl.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/functest/tests/unit/odl/test_odl.py b/functest/tests/unit/odl/test_odl.py index 810b3592..8f2a5d7e 100644 --- a/functest/tests/unit/odl/test_odl.py +++ b/functest/tests/unit/odl/test_odl.py @@ -443,6 +443,20 @@ class ODLTesting(unittest.TestCase): odlip=self._sdn_controller_ip, odlwebport='8081', odlrestconfport='8081') + def test_run_netvirt_missing_sdn_controller_ip(self): + with mock.patch('functest.utils.openstack_utils.get_endpoint', + side_effect=self._fake_url_for): + os.environ["INSTALLER_TYPE"] = "netvirt" + self.assertEqual(self.test.run(), + testcase_base.TestcaseBase.EX_RUN_ERROR) + + def test_run_netvirt(self): + os.environ["SDN_CONTROLLER_IP"] = self._sdn_controller_ip + os.environ["INSTALLER_TYPE"] = "netvirt" + self._test_run(testcase_base.TestcaseBase.EX_OK, + odlip=self._sdn_controller_ip, odlwebport='8081', + odlrestconfport='8081') + def test_run_joid_missing_sdn_controller(self): with mock.patch('functest.utils.openstack_utils.get_endpoint', side_effect=self._fake_url_for): |