From d9ffb28b7cb39c66cb21ab2ae78dc1371e4bb068 Mon Sep 17 00:00:00 2001 From: Yun Huang Date: Tue, 27 Mar 2018 14:36:28 +0800 Subject: Fix UT capacity check url for newton Change-Id: Ie2317b95a88ffe202c4f1ac0de12f5829e44f94c Issue-ID: MULTICLOUD-168 Signed-off-by: Yun Huang --- newton/newton/resource/tests/test_capacity.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/newton/newton/resource/tests/test_capacity.py b/newton/newton/resource/tests/test_capacity.py index 071997e3..fa585237 100644 --- a/newton/newton/resource/tests/test_capacity.py +++ b/newton/newton/resource/tests/test_capacity.py @@ -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) -- cgit 1.2.3-korg