Fix flavor UT test data 79/44079/1
authorYun Huang <yun.huang@windriver.com>
Mon, 23 Apr 2018 01:35:41 +0000 (09:35 +0800)
committerYun Huang <yun.huang@windriver.com>
Mon, 23 Apr 2018 01:35:41 +0000 (09:35 +0800)
Change-Id: I363373bf51728ae1b3fd0ddfdf8466b4beb851c8
Issue-ID: MULTICLOUD-206
Signed-off-by: Yun Huang <yun.huang@windriver.com>
ocata/ocata/registration/tests/test_registration.py
windriver/titanium_cloud/registration/tests/test_registration.py

index 50b7fda..0d1cfab 100644 (file)
@@ -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
index 23ee968..5c31c4e 100644 (file)
@@ -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