summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Lynn <ethanlynnl@vmware.com>2018-06-13 10:50:30 +0800
committerEthan Lynn <ethanlynnl@vmware.com>2018-06-13 10:50:30 +0800
commit868b1e95fdaaefc0236443defc0d24276daf132f (patch)
tree22ffa40dec02e3cd12d2204677bb974f52fb0613
parent8171199ccd354a0f77cf289a3736e2bcddcfb050 (diff)
Add test_del_hpa
Add test_del_hpa Change-Id: Ie16492d04aa1916690692d4d034bc3b5a24ed73b Issue-ID: MULTICLOUD-199 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
-rw-r--r--vio/vio/tests/test_aai_client.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/vio/vio/tests/test_aai_client.py b/vio/vio/tests/test_aai_client.py
index c7d9a3c..f4dbed4 100644
--- a/vio/vio/tests/test_aai_client.py
+++ b/vio/vio/tests/test_aai_client.py
@@ -192,6 +192,21 @@ class TestAAIClient(unittest.TestCase):
mock_call.assert_called_once()
@mock.patch.object(restcall, "call_req")
+ def test_del_hpa(self, mock_call):
+ mock_call.return_value = [0]
+ rsp = {
+ "flavor-id": "id1",
+ "hpa-capabilities": {
+ "hpa-capability": [{
+ "resource-version": "v1",
+ "hpa-capability-id": "id2"
+ }]
+ }
+ }
+ self.view._del_hpa(rsp)
+ mock_call.assert_called_once()
+
+ @mock.patch.object(restcall, "call_req")
def test_del_vim(self, mock_call):
resp = {
"resource-version": "1"