Skip to content
Snippets Groups Projects
Commit 1823c9c5 authored by Nikhil Patil's avatar Nikhil Patil Committed by Anuj Gupta
Browse files

Build fix

parent 11ce89c6
No related branches found
No related tags found
1 merge request!493Build fix
...@@ -67,6 +67,11 @@ ...@@ -67,6 +67,11 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId> <artifactId>spring-boot-starter-security</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>6.2.0</version>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.security</groupId> <groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-client</artifactId> <artifactId>spring-security-oauth2-client</artifactId>
......
...@@ -20,6 +20,13 @@ package org.opengroup.osdu.partition.api; ...@@ -20,6 +20,13 @@ package org.opengroup.osdu.partition.api;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.opengroup.osdu.partition.util.IBMTestUtils; import org.opengroup.osdu.partition.util.IBMTestUtils;
import org.apache.hc.client5.http.impl.classic.CloseableHttpResponse;
import org.junit.Test;
import org.opengroup.osdu.partition.util.TestUtils;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import static org.junit.Assert.assertEquals;
public class TestHealthCheck extends HealthCheckApiTest { public class TestHealthCheck extends HealthCheckApiTest {
@Before @Before
...@@ -33,4 +40,12 @@ public class TestHealthCheck extends HealthCheckApiTest { ...@@ -33,4 +40,12 @@ public class TestHealthCheck extends HealthCheckApiTest {
public void tearDown() throws Exception { public void tearDown() throws Exception {
this.testUtils = null; this.testUtils = null;
} }
@Override
@Test
public void should_returnOk() throws Exception {
CloseableHttpResponse response =
TestUtils.send("api/partition/v1/liveness_check", HttpMethod.GET.name(), testUtils.getAccessToken(), "", "", false);
assertEquals(HttpStatus.OK.value(), response.getCode());
}
} }
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