Skip to content

Commit

Permalink
Disable Servlet mapping tests of AwsAsyncContext
Browse files Browse the repository at this point in the history
*AwsAsyncContextTest
-Disabled servlet mapping tests as it no longer make servlet requests.
  • Loading branch information
2012160085 committed Sep 7, 2023
1 parent 4019c87 commit 14ae260
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.amazonaws.serverless.proxy.model.AwsProxyRequest;
import com.amazonaws.serverless.proxy.model.AwsProxyResponse;
import com.amazonaws.services.lambda.runtime.Context;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import jakarta.servlet.AsyncContext;
Expand All @@ -32,6 +33,7 @@ public class AwsAsyncContextTest {
private AwsServletContextTest.TestServlet srv2 = new AwsServletContextTest.TestServlet("srv2");
private AwsServletContext ctx = getCtx();

@Disabled //AwsAsyncContext does not sends to servlet anymore
@Test
void dispatch_sendsToCorrectServlet() {
AwsProxyHttpServletRequest req = new AwsProxyHttpServletRequest(new AwsProxyRequestBuilder("/srv1/hello", "GET").build(), lambdaCtx, null);
Expand All @@ -58,6 +60,7 @@ void dispatch_sendsToCorrectServlet() {
assertEquals(202, handler.getResponse().getStatus());
}

@Disabled //AwsAsyncContext does not sends to servlet anymore
@Test
void dispatchNewPath_sendsToCorrectServlet() throws InvalidRequestEventException {
AwsProxyHttpServletRequest req = (AwsProxyHttpServletRequest)reader.readRequest(new AwsProxyRequestBuilder("/srv1/hello", "GET").build(), null, lambdaCtx, LambdaContainerHandler.getContainerConfig());
Expand Down

0 comments on commit 14ae260

Please sign in to comment.