Upgrade Spring Cloud Stream to Horsham.SR6 and Spring Cloud Function to 3.0.8.RELEASE

This commit is contained in:
David Turanski
2020-06-22 15:29:01 -04:00
parent f07085992b
commit 9bf8dcc4e7
5 changed files with 9 additions and 47 deletions

View File

@@ -71,7 +71,7 @@ public class TimeSourceTests {
TestChannelBinderConfiguration
.getCompleteConfiguration(TimeSourceTestApplication.class))
.web(WebApplicationType.NONE)
.run("--spring.cloud.stream.function.definition=timeSupplier|toMessage|spelFunction",
.run("--spring.cloud.stream.function.definition=timeSupplier|spelFunction",
"--spel.function.expression=payload.length()")) {
OutputDestination target = context.getBean(OutputDestination.class);
@@ -88,7 +88,7 @@ public class TimeSourceTests {
TestChannelBinderConfiguration
.getCompleteConfiguration(TimeSourceTestApplication.class))
.web(WebApplicationType.NONE)
.run("--spring.cloud.stream.function.definition=timeSupplier|toMessage|spelFunction|headerEnricherFunction|taskLaunchRequestFunction",
.run("--spring.cloud.stream.function.definition=timeSupplier|spelFunction|headerEnricherFunction|taskLaunchRequestFunction",
"--spel.function.expression=payload.length()",
"--header.enricher.headers=task-id=payload*2",
"--spring.cloud.stream.bindings.output.destination=foo",
@@ -100,7 +100,7 @@ public class TimeSourceTests {
TaskLaunchRequest.class);
assertThat(taskLaunchRequest.getTaskName()).isEqualTo("task-34");
assertThat(context.getEnvironment().getProperty(
"spring.cloud.stream.function.bindings.timeSuppliertoMessagespelFunctionheaderEnricherFunctiontaskLaunchRequestFunction-out-0"))
"spring.cloud.stream.function.bindings.timeSupplierspelFunctionheaderEnricherFunctiontaskLaunchRequestFunction-out-0"))
.isEqualTo("output");
}
}