summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Lynn <ethanlynnl@vmware.com>2018-06-13 11:24:44 +0800
committerEthan Lynn <ethanlynnl@vmware.com>2018-06-13 11:24:44 +0800
commitbd679bf0f00b3b8842fe03d348e1b00694039a3d (patch)
tree268cf9095547257523987ed9c98cb14c488b438c
parent4a295b7b7c57b8657c657adf6e2658e9a8fd08e3 (diff)
Add test_get_hpa_storage
Add test_get_hpa_storage Change-Id: I2dad04eefa549cd1c3b62141a915ffe6658317ab Issue-ID: MULTICLOUD-199 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
-rw-r--r--vio/vio/tests/test_aai_client.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/vio/vio/tests/test_aai_client.py b/vio/vio/tests/test_aai_client.py
index b6caca4..c32f10d 100644
--- a/vio/vio/tests/test_aai_client.py
+++ b/vio/vio/tests/test_aai_client.py
@@ -341,3 +341,11 @@ class TestAAIClient(unittest.TestCase):
}
ret = self.view._get_numa_capabilities(extra)
self.assertEqual(3, len(ret["hpa-feature-attributes"]))
+
+ @mock.patch.object(restcall, "call_req")
+ def test_get_hpa_storage(self, mock_call):
+ extra = {
+ "disk": 10,
+ }
+ ret = self.view._get_storage_capabilities(extra)
+ self.assertEqual(3, len(ret["hpa-feature-attributes"]))