Fix UT capacity check url for newton 97/38897/1
authorYun Huang <yun.huang@windriver.com>
Tue, 27 Mar 2018 06:36:28 +0000 (14:36 +0800)
committerYun Huang <yun.huang@windriver.com>
Tue, 27 Mar 2018 06:36:28 +0000 (14:36 +0800)
Change-Id: Ie2317b95a88ffe202c4f1ac0de12f5829e44f94c
Issue-ID: MULTICLOUD-168
Signed-off-by: Yun Huang <yun.huang@windriver.com>
newton/newton/resource/tests/test_capacity.py

index 071997e..fa58523 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-newton/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-newton/v0/windriver-hudson-dc_RegionOne/capacity_check",
             TEST_REQ_FAILED_SOURCE,
             HTTP_X_AUTH_TOKEN=mock_info.MOCK_TOKEN_ID)