From 0ac4f904fae7793a3909f6db34ad9b3c35a08c12 Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Mon, 3 Sep 2018 08:46:12 +0000 Subject: Add new namespace to workaround ISTIO hostname ISTIO restrains the usage of _ in hostname Issue-ID: MULTICLOUD-335 Change-Id: I54c712aea1a95c6aaac7d50c3b07472730608503 Signed-off-by: Bin Yang --- windriver/titanium_cloud/proxy/tests/test_identity_proxy.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'windriver/titanium_cloud/proxy/tests/test_identity_proxy.py') diff --git a/windriver/titanium_cloud/proxy/tests/test_identity_proxy.py b/windriver/titanium_cloud/proxy/tests/test_identity_proxy.py index a3b84f9a..75fb49f5 100644 --- a/windriver/titanium_cloud/proxy/tests/test_identity_proxy.py +++ b/windriver/titanium_cloud/proxy/tests/test_identity_proxy.py @@ -524,7 +524,7 @@ class TestIdentityService(unittest.TestCase): #simulate client to make the request data ={} - response = self.client.post("/api/multicloud-titanium_cloud/v0/windriver-hudson-dc_RegionOne/identity/v3/auth/tokens", data=data, format='json') + response = self.client.post("/api/multicloud-titaniumcloud/v0/windriver-hudson-dc_RegionOne/identity/v3/auth/tokens", data=data, format='json') self.failUnlessEqual(status.HTTP_201_CREATED, response.status_code) context = response.json() @@ -561,7 +561,7 @@ class TestIdentityService(unittest.TestCase): # simulate client to make the request data = {} response = self.client.post( - "/api/multicloud-titanium_cloud/v0/windriver-hudson-dc_RegionOne/identity/v2.0/tokens", + "/api/multicloud-titaniumcloud/v0/windriver-hudson-dc_RegionOne/identity/v2.0/tokens", data=data, format='json') self.failUnlessEqual(status.HTTP_200_OK, response.status_code) @@ -622,7 +622,7 @@ class TestIdentityService(unittest.TestCase): } response = self.client.post( - "/api/multicloud-titanium_cloud/v0/windriver-hudson-dc_RegionOne/identity/v3/auth/tokens", + "/api/multicloud-titaniumcloud/v0/windriver-hudson-dc_RegionOne/identity/v3/auth/tokens", data=json.dumps(token_data), content_type='application/json') self.failUnlessEqual(status.HTTP_201_CREATED, response.status_code) @@ -671,7 +671,7 @@ class TestIdentityService(unittest.TestCase): } response = self.client.post( - "/api/multicloud-titanium_cloud/v0/windriver-hudson-dc_RegionOne/identity/v2.0/tokens", + "/api/multicloud-titaniumcloud/v0/windriver-hudson-dc_RegionOne/identity/v2.0/tokens", data=json.dumps(token_data), content_type='application/json') self.failUnlessEqual(status.HTTP_200_OK, response.status_code) @@ -728,7 +728,7 @@ class TestIdentityService(unittest.TestCase): } response = self.client.post( - "/api/multicloud-titanium_cloud/v0/windriver-hudson-dc_RegionOne/identity/v3/auth/tokens", + "/api/multicloud-titaniumcloud/v0/windriver-hudson-dc_RegionOne/identity/v3/auth/tokens", data=json.dumps(token_data), content_type='application/json') self.failUnlessEqual(status.HTTP_201_CREATED, response.status_code) -- cgit 1.2.3-korg