Clean up new healthcheck test

This commit is contained in:
Shane Kilkelly 2020-06-18 14:56:38 +01:00
parent badeea3e0b
commit 973a18b1b8

View file

@ -910,12 +910,13 @@ public class WLGitBridgeIntegrationTest {
});
wlgb.run();
HttpClient client = HttpClients.createDefault();
String urlBase = "http://127.0.0.1:" + gitBridgePort;
// Status
HttpGet statusRequest = new HttpGet("http://127.0.0.1:"+gitBridgePort+"/api/status");
HttpGet statusRequest = new HttpGet(urlBase+"/api/status");
HttpResponse statusResponse = client.execute(statusRequest);
assertEquals(statusResponse.getStatusLine().getStatusCode(), 200);
// Health Check
HttpGet healthCheckRequest = new HttpGet("http://127.0.0.1:"+gitBridgePort+"/api/health_check");
HttpGet healthCheckRequest = new HttpGet(urlBase+"/api/health_check");
HttpResponse healthCheckResponse = client.execute(healthCheckRequest);
assertEquals(healthCheckResponse.getStatusLine().getStatusCode(), 200);
}