summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYun Huang <yun.huang@windriver.com>2018-04-23 09:35:41 +0800
committerYun Huang <yun.huang@windriver.com>2018-04-23 09:35:41 +0800
commit2eab5f81270ad90ff5d30d024bf08e490a5cb977 (patch)
tree018680db029e271fb0c14fe19a7c4e82177b94ed
parent7b7516984a1bebf4abb3cb5156598b73f2ad48e4 (diff)
Fix flavor UT test data
Change-Id: I363373bf51728ae1b3fd0ddfdf8466b4beb851c8 Issue-ID: MULTICLOUD-206 Signed-off-by: Yun Huang <yun.huang@windriver.com>
-rw-r--r--ocata/ocata/registration/tests/test_registration.py4
-rw-r--r--windriver/titanium_cloud/registration/tests/test_registration.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/ocata/ocata/registration/tests/test_registration.py b/ocata/ocata/registration/tests/test_registration.py
index 50b7fda2..0d1cfab0 100644
--- a/ocata/ocata/registration/tests/test_registration.py
+++ b/ocata/ocata/registration/tests/test_registration.py
@@ -148,13 +148,13 @@ TEST_REGISTER_ENDPOINT_REQUEST = {
MOCK_GET_HPA_FLAVOR_LIST1_RESPONSE= {
"flavors": [
{
- "id": "1", "name": "micro", "vcpus": 1, "ram": "1MB",
+ "id": "1", "name": "micro", "vcpus": 1, "ram": "1024",
"disk": "1G", "OS-FLV-EXT-DATA:ephemeral": False,
"swap": True, "os-flavor-access:is_public": True,
"OS-FLV-DISABLED:disabled": True, "link": [{"href": 1}]
},
{
- "id": "2", "name": "onap.mini", "vcpus": 2, "ram": "2",
+ "id": "2", "name": "onap.mini", "vcpus": 2, "ram": "2048",
"disk": "2G", "OS-FLV-EXT-DATA:ephemeral": True,
"swap": False, "os-flavor-access:is_public": True,
"OS-FLV-DISABLED:disabled": True
diff --git a/windriver/titanium_cloud/registration/tests/test_registration.py b/windriver/titanium_cloud/registration/tests/test_registration.py
index 23ee9689..5c31c4e8 100644
--- a/windriver/titanium_cloud/registration/tests/test_registration.py
+++ b/windriver/titanium_cloud/registration/tests/test_registration.py
@@ -122,13 +122,13 @@ TEST_REGISTER_ENDPOINT_REQUEST = {
MOCK_GET_HPA_FLAVOR_LIST1_RESPONSE= {
"flavors": [
{
- "id": "1", "name": "micro", "vcpus": 1, "ram": "1MB",
+ "id": "1", "name": "micro", "vcpus": 1, "ram": "1024",
"disk": "1G", "OS-FLV-EXT-DATA:ephemeral": False,
"swap": True, "os-flavor-access:is_public": True,
"OS-FLV-DISABLED:disabled": True, "link": [{"href": 1}]
},
{
- "id": "2", "name": "onap.mini", "vcpus": 2, "ram": "2MB",
+ "id": "2", "name": "onap.mini", "vcpus": 2, "ram": "2048",
"disk": "2G", "OS-FLV-EXT-DATA:ephemeral": True,
"swap": False, "os-flavor-access:is_public": True,
"OS-FLV-DISABLED:disabled": True