Skip to content
Snippets Groups Projects
Commit 14c53ced authored by Faid Luqman's avatar Faid Luqman
Browse files

Refined test-gc to test-state based on Rustam MR

parent 7db65fc4
No related branches found
No related tags found
1 merge request!557Acceptance Test creation and refactoring
Pipeline #309028 failed
...@@ -118,7 +118,7 @@ public class TestPushEndpointGsa{ ...@@ -118,7 +118,7 @@ public class TestPushEndpointGsa{
assertNotNull(notificationId); assertNotNull(notificationId);
Map<String, String> headers = new HashMap<>(); Map<String, String> headers = new HashMap<>();
headers.put(DpsHeaders.DATA_PARTITION_ID, tenant); headers.put(DpsHeaders.DATA_PARTITION_ID, tenant);
ClientResponse clientResponse = testUtils.send(baseRegisterUrl, "/test-gc/state", "GET", testUtils.getOpsToken(), null, "", ClientResponse clientResponse = testUtils.send(baseRegisterUrl, "/test-state/state", "GET", testUtils.getOpsToken(), null, "",
headers, false); headers, false);
Map<String, Number> response = new HashMap<>(); Map<String, Number> response = new HashMap<>();
response = testUtils.getResult(clientResponse, 200, response.getClass()); response = testUtils.getResult(clientResponse, 200, response.getClass());
...@@ -166,6 +166,6 @@ public class TestPushEndpointGsa{ ...@@ -166,6 +166,6 @@ public class TestPushEndpointGsa{
} }
private String getPushUrl() { private String getPushUrl() {
return baseRegisterUrl + "/test-gc/gsa-challenge/" + suffix; return baseRegisterUrl + "/test-state/gsa-challenge/" + suffix;
} }
} }
...@@ -97,7 +97,7 @@ public class TestPushEndpointHMAC{ ...@@ -97,7 +97,7 @@ public class TestPushEndpointHMAC{
assertNotNull(notificationId); assertNotNull(notificationId);
Map<String, String> headers = new HashMap<>(); Map<String, String> headers = new HashMap<>();
headers.put(DpsHeaders.DATA_PARTITION_ID, tenant); headers.put(DpsHeaders.DATA_PARTITION_ID, tenant);
ClientResponse clientResponse = testUtils.send(baseRegisterUrl, "/test-gc/state", "GET", testUtils.getOpsToken(), null, "", ClientResponse clientResponse = testUtils.send(baseRegisterUrl, "/test-state/state", "GET", testUtils.getOpsToken(), null, "",
headers, false); headers, false);
Map<String, Number> response = new HashMap<>(); Map<String, Number> response = new HashMap<>();
response = testUtils.getResult(clientResponse, 200, response.getClass()); response = testUtils.getResult(clientResponse, 200, response.getClass());
...@@ -136,6 +136,6 @@ public class TestPushEndpointHMAC{ ...@@ -136,6 +136,6 @@ public class TestPushEndpointHMAC{
} }
} }
private String getPushUrl() { private String getPushUrl() {
return baseRegisterUrl + "/test-gc/challenge/" + suffix; return baseRegisterUrl + "/test-state/challenge/" + suffix;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment