Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated test to verify @CircuitBreaker does not interfere with request scope #2387

Merged
merged 1 commit into from
Sep 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import javax.ws.rs.Path;

import io.helidon.webserver.ServerRequest;
import org.eclipse.microprofile.faulttolerance.CircuitBreaker;
import org.eclipse.microprofile.faulttolerance.Retry;

/**
Expand Down Expand Up @@ -52,6 +53,7 @@ public HelloResource(HelloBean helloBean) {
@GET
@Path("/hello")
@Retry
@CircuitBreaker
public String getHello() {
return helloBean.getHello();
}
Expand All @@ -64,6 +66,7 @@ public String getHello() {
@GET
@Path("/helloTimeout")
@Retry
@CircuitBreaker
public String getHelloTimeout() {
return helloBean.getHelloTimeout();
}
Expand All @@ -77,13 +80,15 @@ public String getHelloTimeout() {
@GET
@Path("/helloAsync")
@Retry
@CircuitBreaker
public String getHelloAsync() throws Exception {
return helloBean.getHelloAsync().toCompletableFuture().get();
}

@GET
@Path("/remoteAddress")
@Retry
@CircuitBreaker
public String getRemoteAddress() {
ServerRequest serverRequest = supplier.get();
return serverRequest.remoteAddress();
Expand Down