GH-630, GH-530 Additional improvements in AWS Custom Runtime

Ensured we have Custom Runtime examples for functional and '@Bean' style
Improve AWSLambdaUtils to ensure it works without APIGatewayProxyRequestEvent on classpath
This commit is contained in:
Oleg Zhurakousky
2021-01-22 12:31:31 +01:00
parent 648c4b165a
commit 1f518a0287
9 changed files with 71 additions and 104 deletions

View File

@@ -1,4 +1,4 @@
spring.cloud.function.web.export.enabled=true
spring.cloud.function.web.export.debug=true
#spring.cloud.function.web.export.enabled=true
#spring.cloud.function.web.export.debug=true
spring.main.web-application-type=none
logging.level.org.springframework.cloud=DEBUG

View File

@@ -18,6 +18,7 @@ package com.example;
import java.util.concurrent.TimeUnit;
import org.awaitility.Awaitility;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.output.ToStringConsumer;
@@ -35,6 +36,7 @@ import static org.assertj.core.api.Assertions.assertThat;
public class ContainerTests {
@Test
@Disabled
void test() throws Exception {
ToStringConsumer consumer = new ToStringConsumer();
try (@SuppressWarnings("resource")

View File

@@ -1,15 +0,0 @@
package com.example;
import org.junit.jupiter.api.Test;
import org.springframework.cloud.function.context.test.FunctionalSpringBootTest;
@FunctionalSpringBootTest
public class LambdaApplicationTests {
@Test
public void contextLoads() {
}
}