Revert to snapshots
This commit is contained in:
@@ -11,5 +11,5 @@ exclusions.spring-boot-starter-actuator: org.springframework.boot:spring-boot-st
|
||||
dependencies.spring-web: org.springframework:spring-web
|
||||
dependencies.jackson-databind: com.fasterxml.jackson.core:jackson-databind
|
||||
dependencies.spring-boot-starter: org.springframework.boot:spring-boot-starter
|
||||
dependencies.spring-cloud-function-context: org.springframework.cloud:spring-cloud-function-context:1.0.0.M6
|
||||
dependencies.spring-cloud-function-context: org.springframework.cloud:spring-cloud-function-context:1.0.0.BUILD-SNAPSHOT
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ public class FunctionAppDeployerTests {
|
||||
public static void skip() {
|
||||
try {
|
||||
ArchiveUtils.getArchiveRoot(ArchiveUtils
|
||||
.getArchive("maven://io.spring.sample:function-sample:1.0.0.M6"));
|
||||
.getArchive("maven://io.spring.sample:function-sample:1.0.0.BUILD-SNAPSHOT"));
|
||||
}
|
||||
catch (Exception e) {
|
||||
Assume.assumeNoException(
|
||||
@@ -84,7 +84,7 @@ public class FunctionAppDeployerTests {
|
||||
|
||||
@Test
|
||||
public void web() throws Exception {
|
||||
String first = deploy("maven://io.spring.sample:function-sample:1.0.0.M6", "",
|
||||
String first = deploy("maven://io.spring.sample:function-sample:1.0.0.BUILD-SNAPSHOT", "",
|
||||
"--spring.cloud.function.stream.supplier.enabled=false");
|
||||
// Deployment is blocking so it either failed or succeeded.
|
||||
assertThat(deployer.status(first).getState()).isEqualTo(DeploymentState.deployed);
|
||||
@@ -93,7 +93,7 @@ public class FunctionAppDeployerTests {
|
||||
|
||||
@Test
|
||||
public void stream() throws Exception {
|
||||
String first = deploy("maven://io.spring.sample:function-sample:1.0.0.M6",
|
||||
String first = deploy("maven://io.spring.sample:function-sample:1.0.0.BUILD-SNAPSHOT",
|
||||
"spring.cloud.deployer.thin.profile=rabbit",
|
||||
"--spring.cloud.function.stream.supplier.enabled=false", "--debug=true");
|
||||
// Deployment is blocking so it either failed or succeeded.
|
||||
|
||||
@@ -46,7 +46,7 @@ public class FunctionExtractingFunctionCatalogIntegrationTests {
|
||||
// System.setProperty("debug", "true");
|
||||
context = new ApplicationRunner().start("--server.port=" + port, "--debug",
|
||||
"--logging.level.org.springframework.cloud.function=DEBUG");
|
||||
deploy("sample", "maven://io.spring.sample:function-sample:1.0.0.M6");
|
||||
deploy("sample", "maven://io.spring.sample:function-sample:1.0.0.BUILD-SNAPSHOT");
|
||||
}
|
||||
|
||||
private static void deploy(String name, String path) throws Exception {
|
||||
@@ -105,7 +105,7 @@ public class FunctionExtractingFunctionCatalogIntegrationTests {
|
||||
@Test
|
||||
public void another() throws Exception {
|
||||
deploy("pof",
|
||||
"maven://io.spring.sample:function-sample-pof:jar:exec:1.0.0.M6");
|
||||
"maven://io.spring.sample:function-sample-pof:jar:exec:1.0.0.BUILD-SNAPSHOT");
|
||||
assertThat(new TestRestTemplate().postForObject(
|
||||
"http://localhost:" + port + "/stream/pof/greeter", "Foo",
|
||||
String.class)).isEqualTo("Hello Foo");
|
||||
@@ -116,12 +116,12 @@ public class FunctionExtractingFunctionCatalogIntegrationTests {
|
||||
String undeploy = undeploy("sample");
|
||||
assertThat(undeploy.contains("\"name\":\"sample\""));
|
||||
assertThat(undeploy.contains(
|
||||
"\"path\":\"maven://io.spring.sample:function-sample:1.0.0.M6\""));
|
||||
"\"path\":\"maven://io.spring.sample:function-sample:1.0.0.BUILD-SNAPSHOT\""));
|
||||
ResponseEntity<String> result = new TestRestTemplate().exchange(RequestEntity
|
||||
.get(new URI("http://localhost:" + port + "/stream/sample/words"))
|
||||
.build(), String.class);
|
||||
assertThat(result.getStatusCode()).isEqualTo(HttpStatus.NOT_FOUND);
|
||||
deploy("sample", "maven://io.spring.sample:function-sample:1.0.0.M6");
|
||||
deploy("sample", "maven://io.spring.sample:function-sample:1.0.0.BUILD-SNAPSHOT");
|
||||
assertThat(new TestRestTemplate().postForObject(
|
||||
"http://localhost:" + port + "/stream/sample/uppercase", "foo",
|
||||
String.class)).isEqualTo("FOO");
|
||||
|
||||
@@ -52,10 +52,10 @@ public class FunctionExtractingFunctionCatalogTests {
|
||||
public void init() throws Exception {
|
||||
if (id == null) {
|
||||
deploy("sample",
|
||||
"maven://io.spring.sample:function-sample:1.0.0.M6");
|
||||
"maven://io.spring.sample:function-sample:1.0.0.BUILD-SNAPSHOT");
|
||||
// "--debug");
|
||||
id = deploy("pojos",
|
||||
"maven://io.spring.sample:function-sample-pojo:1.0.0.M6");
|
||||
"maven://io.spring.sample:function-sample-pojo:1.0.0.BUILD-SNAPSHOT");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user