diff --git a/grpc-spring-boot-starter-demo/src/test/java/org/lognet/springboot/grpc/MetricWithSecurityTest.java b/grpc-spring-boot-starter-demo/src/test/java/org/lognet/springboot/grpc/MetricWithSecurityTest.java index c4117a65..8a169b89 100644 --- a/grpc-spring-boot-starter-demo/src/test/java/org/lognet/springboot/grpc/MetricWithSecurityTest.java +++ b/grpc-spring-boot-starter-demo/src/test/java/org/lognet/springboot/grpc/MetricWithSecurityTest.java @@ -12,6 +12,7 @@ import io.micrometer.prometheus.PrometheusConfig; import org.awaitility.Awaitility; import org.hamcrest.Matchers; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.lognet.springboot.grpc.demo.DemoApp; @@ -98,8 +99,8 @@ public boolean supports(Class authentication) { } - // @Test - public void validationShouldInvokedBeforeAuthTest() { + @Test + public void validationShouldInvokedBeforeAuthTest() { final GreeterGrpc.GreeterBlockingStub stub = GreeterGrpc.newBlockingStub(super.getChannel()); StatusRuntimeException e = assertThrows(StatusRuntimeException.class, () -> { stub.helloPersonValidResponse(GreeterOuterClass.Person.newBuilder() @@ -114,7 +115,7 @@ public void validationShouldInvokedBeforeAuthTest() { } @Override - public void simpleGreeting() throws ExecutionException, InterruptedException { + public void simpleGreeting() throws Exception { AuthCallCredentials callCredentials = new AuthCallCredentials( AuthHeader.builder().basic("user","pwd".getBytes()) );