diff options
author | Ethan Lynn <ethanlynnl@vmware.com> | 2018-06-13 10:50:30 +0800 |
---|---|---|
committer | Ethan Lynn <ethanlynnl@vmware.com> | 2018-06-13 10:50:30 +0800 |
commit | 868b1e95fdaaefc0236443defc0d24276daf132f (patch) | |
tree | 22ffa40dec02e3cd12d2204677bb974f52fb0613 /vio | |
parent | 8171199ccd354a0f77cf289a3736e2bcddcfb050 (diff) |
Add test_del_hpa
Add test_del_hpa
Change-Id: Ie16492d04aa1916690692d4d034bc3b5a24ed73b
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.py | 15 |
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" |