From bd679bf0f00b3b8842fe03d348e1b00694039a3d Mon Sep 17 00:00:00 2001 From: Ethan Lynn Date: Wed, 13 Jun 2018 11:24:44 +0800 Subject: Add test_get_hpa_storage Add test_get_hpa_storage Change-Id: I2dad04eefa549cd1c3b62141a915ffe6658317ab Issue-ID: MULTICLOUD-199 Signed-off-by: Ethan Lynn --- vio/vio/tests/test_aai_client.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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"])) -- cgit 1.2.3-korg