diff options
author | Ethan Lynn <ethanlynnl@vmware.com> | 2018-06-13 11:16:23 +0800 |
---|---|---|
committer | Ethan Lynn <ethanlynnl@vmware.com> | 2018-06-13 11:16:23 +0800 |
commit | 44d09edbc140b202c34bcba850f190b0e3c379c4 (patch) | |
tree | f056be910843d28ffc7cc65ec69e3246bfeab83f | |
parent | 9d9d588e5bdf813c30e2f0904fa33bd34b4a4943 (diff) |
Add test_get_hpa_hugepage_small
Add test_get_hpa_hugepage_small
Change-Id: I9404f755eee53b614a61e5d31ce87ca54ace9f59
Issue-ID: MULTICLOUD-199
Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
-rw-r--r-- | vio/vio/tests/test_aai_client.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vio/vio/tests/test_aai_client.py b/vio/vio/tests/test_aai_client.py index 6be9958..abf7618 100644 --- a/vio/vio/tests/test_aai_client.py +++ b/vio/vio/tests/test_aai_client.py @@ -305,3 +305,12 @@ class TestAAIClient(unittest.TestCase): ret = self.view._get_hugepages_capabilities(extra) self.assertIn( "2", ret["hpa-feature-attributes"][0]["hpa-attribute-value"]) + + @mock.patch.object(restcall, "call_req") + def test_get_hpa_hugepage_small(self, mock_call): + extra = { + "hw:mem_page_size": "small" + } + ret = self.view._get_hugepages_capabilities(extra) + self.assertIn( + "4", ret["hpa-feature-attributes"][0]["hpa-attribute-value"]) |