diff options
author | Bin Hu <bh526r@att.com> | 2018-03-26 04:56:30 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-03-26 04:56:30 +0000 |
commit | e9a54b9c4710a82a43cdd01214fe29d1562c17f6 (patch) | |
tree | ae5756ec560cb1e128edc92b67acc8362e628226 /windriver/titanium_cloud/registration/tests | |
parent | 968892b0727285466c568846796c4d7354032654 (diff) | |
parent | 7127ff91c8f834b525251f4842a4474c3fabc5f1 (diff) |
Merge "Add HPA basic capabilities for titanium cloud"
Diffstat (limited to 'windriver/titanium_cloud/registration/tests')
-rw-r--r-- | windriver/titanium_cloud/registration/tests/test_registration.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/windriver/titanium_cloud/registration/tests/test_registration.py b/windriver/titanium_cloud/registration/tests/test_registration.py index e0df5b1d..3dcbd547 100644 --- a/windriver/titanium_cloud/registration/tests/test_registration.py +++ b/windriver/titanium_cloud/registration/tests/test_registration.py @@ -45,6 +45,13 @@ MOCK_GET_FLAVOR_RESPONSE = { ] } +MOCK_GET_FLAVOR_EXTRA_SPECS_RESPONSE = { + "extra_specs" : { + "aggregate_instance_extra_specs:storage" : "local_image", + "capabilities:cpu_info:model" : "Haswell" + } +} + MOCK_GET_IMAGE_RESPONSE = { "images": [ { @@ -145,6 +152,8 @@ class TestFlavors(test_base.TestRequest): "side_effect": [ self._get_mock_response(MOCK_GET_TENANT_RESPONSE), self._get_mock_response(MOCK_GET_FLAVOR_RESPONSE), + self._get_mock_response(MOCK_GET_FLAVOR_EXTRA_SPECS_RESPONSE), + self._get_mock_response(MOCK_GET_FLAVOR_EXTRA_SPECS_RESPONSE), self._get_mock_response(MOCK_GET_IMAGE_RESPONSE), self._get_mock_response(), self._get_mock_response(MOCK_GET_AZ_RESPONSE), |