Polish
Closes gh-27431
This commit is contained in:
@@ -48,8 +48,8 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
|
||||
properties = { "server.http2.enabled=true", "server.ssl.enabled=true",
|
||||
"server.ssl.keystore=classpath:sample.jks", "server.ssl.key-store-password=secret",
|
||||
"server.ssl.key-password=password", "logging.level.org.eclipse.jetty=debug" })
|
||||
public class Jetty10Http2OverTlsTests {
|
||||
"server.ssl.key-password=password" })
|
||||
class Jetty10Http2OverTlsTests {
|
||||
|
||||
@LocalServerPort
|
||||
private int port;
|
||||
|
||||
@@ -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 {
|
||||
@Autowired
|
||||
private WebTestClient webClient;
|
||||
|
||||
@Autowired
|
||||
private ApplicationContext applicationContext;
|
||||
|
||||
@Test
|
||||
void endpointShouldReturnUnauthorized() {
|
||||
this.webClient.get().uri("/actuator/env").exchange().expectStatus().isUnauthorized();
|
||||
|
||||
Reference in New Issue
Block a user