aboutsummaryrefslogtreecommitdiffstats
path: root/functest/tests/unit
diff options
context:
space:
mode:
authorJose Lausuch <jose.lausuch@ericsson.com>2017-02-06 10:47:38 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-06 10:47:38 +0000
commit50d5df866dca863106dd6b39457dbd22f8179e70 (patch)
tree2d374b882d7dfedb91070dfd6cd8f796c1fa50ff /functest/tests/unit
parent0088e1419c7ae725071bc70d4940ed52e9a65e8e (diff)
parent6626f68e785e61de05bdafee68bafe14f66a78a7 (diff)
Merge "Add netvirt to odl tests"
Diffstat (limited to 'functest/tests/unit')
-rw-r--r--functest/tests/unit/odl/test_odl.py14
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):