summaryrefslogtreecommitdiffstats
path: root/vio
diff options
context:
space:
mode:
authorEthan Lynn <ethanlynnl@vmware.com>2018-03-26 11:46:28 -0700
committerEthan Lynn <ethanlynnl@vmware.com>2018-03-26 11:46:28 -0700
commit257cf8e642a6d503c9579ab808ed42c228e6c4e8 (patch)
treefde90050278107519591584f5df0b28cf3b7435d /vio
parent49c754f12db1d6ac2b86dfa9a4aa55eb56554d18 (diff)
Add test_update_identity_url
Add test_update_identity_url for AAIClient Change-Id: I171369b3f9627d72972829de79b5e5b9c1ffaf0b Issue-ID: MULTICLOUD-199 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
Diffstat (limited to 'vio')
-rw-r--r--vio/vio/tests/test_aai_client.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/vio/vio/tests/test_aai_client.py b/vio/vio/tests/test_aai_client.py
index 0ec196c..f80ac65 100644
--- a/vio/vio/tests/test_aai_client.py
+++ b/vio/vio/tests/test_aai_client.py
@@ -27,3 +27,10 @@ class TestAAIClient(unittest.TestCase):
ret = self.view.get_vim(get_all=True)
expect_ret = {"cloudOwner": "vmware"}
self.assertEqual(expect_ret, ret)
+
+ @mock.patch.object(restcall.AAIClient, "get_vim")
+ @mock.patch.object(restcall, "call_req")
+ def test_update_identity_url(self, mock_call, mock_getvim):
+ mock_getvim.return_value = {}
+ self.view.update_identity_url()
+ mock_call.assert_called_once()