Skip to content
Snippets Groups Projects
Commit 0736cd27 authored by Volodymyr Sydorenko's avatar Volodymyr Sydorenko
Browse files

Trailing slash healthcheck integration test

(cherry picked from commit 4c41fb18da7ec4de42600afaf56400d5098a2ab1)
parent 9d2b5e9d
No related branches found
No related tags found
1 merge request!489Trailing slash fix
......@@ -19,6 +19,8 @@ package org.opengroup.osdu.register.util;
import com.sun.jersey.api.client.ClientResponse;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import java.util.ArrayList;
import java.util.List;
......@@ -110,4 +112,11 @@ public abstract class RetrieveApiTestTemplate extends BaseTestTemplate {
assertEquals(error("Expected all successful responses. Actual " + sucessResponseCount), 10, sucessResponseCount);
assertEquals(error("Unexpected error response returned"), 0, errorResponseCount);
}
@Test
public void should_returnTrailingOk() throws Exception {
ClientResponse response =
TestUtils.send("api/register/v1/_ah/liveness_check/", HttpMethod.GET.name(), this.testUtils.getOpsAccessToken(), "", "");
assertEquals(HttpStatus.OK, response.getStatus());
}
}
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