|
|
|
|
@ -20,7 +20,6 @@ import org.junit.jupiter.api.Test;
@@ -20,7 +20,6 @@ import org.junit.jupiter.api.Test;
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.boot.test.context.SpringBootTest; |
|
|
|
|
import org.springframework.context.ApplicationContext; |
|
|
|
|
import org.springframework.test.context.ActiveProfiles; |
|
|
|
|
import org.springframework.test.web.reactive.server.WebTestClient; |
|
|
|
|
|
|
|
|
|
@ -36,9 +35,6 @@ class CorsSampleActuatorApplicationTests {
@@ -36,9 +35,6 @@ class CorsSampleActuatorApplicationTests {
|
|
|
|
|
@Autowired |
|
|
|
|
private WebTestClient webClient; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private ApplicationContext applicationContext; |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void endpointShouldReturnUnauthorized() { |
|
|
|
|
this.webClient.get().uri("/actuator/env").exchange().expectStatus().isUnauthorized(); |
|
|
|
|
|