Fix UT capacity check url for ocata 89/38889/1
authorYun Huang <yun.huang@windriver.com>
Tue, 27 Mar 2018 06:30:29 +0000 (14:30 +0800)
committerYun Huang <yun.huang@windriver.com>
Tue, 27 Mar 2018 06:30:29 +0000 (14:30 +0800)
Change-Id: I114f21e43139df5be5a2764acdba4da9426d5563
Issue-ID: MULTICLOUD-168
Signed-off-by: Yun Huang <yun.huang@windriver.com>
ocata/ocata/resource/tests/test_capacity.py

index 071997e..f7892bd 100644 (file)
@@ -87,9 +87,8 @@ class TestCapacity(test_base.TestRequest):
                 ]
             })
 
-        response = self.client.post((
-            "/api/%s/v0/windriver-hudson-dc_RegionOne/"
-            "capacity_check" % test_base.MULTIVIM_VERSION),
+        response = self.client.post(
+            "/api/multicloud-ocata/v0/windriver-hudson-dc_RegionOne/capacity_check",
             TEST_REQ_SUCCESS_SOURCE,
             HTTP_X_AUTH_TOKEN=mock_info.MOCK_TOKEN_ID)
 
@@ -109,9 +108,8 @@ class TestCapacity(test_base.TestRequest):
                 ]
             })
 
-        response = self.client.post((
-            "/api/%s/v0/windriver-hudson-dc_RegionOne/"
-            "capacity_check" % test_base.MULTIVIM_VERSION),
+        response = self.client.post(
+            "/api/multicloud-ocata/v0/windriver-hudson-dc_RegionOne/capacity_check",
             TEST_REQ_FAILED_SOURCE,
             HTTP_X_AUTH_TOKEN=mock_info.MOCK_TOKEN_ID)