summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiang Ke <lokyse@163.com>2018-03-26 04:11:43 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-26 04:11:43 +0000
commit98d67a40a0c961cecb7dcc044846a6f3bddb53ba (patch)
tree880f9d39717f745cc55a7a1a70f2d4299a5b7e4d
parent710f45c2c23a3295dabcbb40608669cbeaace6c7 (diff)
parent365ff206f9160eb633bddec089ba72b786c1d976 (diff)
Merge "Add test_findMultivimDriver_no_version"
-rw-r--r--multivimbroker/multivimbroker/tests/test_syscomm.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/multivimbroker/multivimbroker/tests/test_syscomm.py b/multivimbroker/multivimbroker/tests/test_syscomm.py
index 9e234e4..b5097d7 100644
--- a/multivimbroker/multivimbroker/tests/test_syscomm.py
+++ b/multivimbroker/multivimbroker/tests/test_syscomm.py
@@ -42,3 +42,8 @@ class TestSyscomm(unittest.TestCase):
def test_findMultivimDriver_no_type(self):
vim = {"type": "wrong type"}
self.assertRaises(exceptions.NotFound, syscomm.findMultivimDriver, vim)
+
+ def test_findMultivimDriver_no_version(self):
+ vim = {"type": "openstack"}
+ ret = syscomm.findMultivimDriver(vim)
+ self.assertEqual("multicloud-ocata", ret)