summaryrefslogtreecommitdiffstats
path: root/windriver/titanium_cloud/registration/tests
diff options
context:
space:
mode:
authorYun Huang <yun.huang@windriver.com>2018-03-26 10:42:53 +0800
committerYun Huang <yun.huang@windriver.com>2018-03-26 10:42:53 +0800
commit7127ff91c8f834b525251f4842a4474c3fabc5f1 (patch)
tree94b83358b67f4586085bf4c32fefa772107656e8 /windriver/titanium_cloud/registration/tests
parentbcb7f9ef76409473b6002f65b9427b0c05178fcf (diff)
Add HPA basic capabilities for titanium cloud
Change-Id: I019ec804d1f69554c3e0ad8621222b582fd9cd66 Issue-ID: MULTICLOUD-200 Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'windriver/titanium_cloud/registration/tests')
-rw-r--r--windriver/titanium_cloud/registration/tests/test_registration.py9
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),