Skip to content

Commit 61c1f80

Browse files
authored
Use dataflow client props for IT server uri
- Also update version of task apps
1 parent 44b809c commit 61c1f80

File tree

1 file changed

+7
-3
lines changed
  • spring-cloud-dataflow-server/src/test/java/org/springframework/cloud/dataflow/integration/test

1 file changed

+7
-3
lines changed

spring-cloud-dataflow-server/src/test/java/org/springframework/cloud/dataflow/integration/test/DataFlowIT.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
import org.springframework.cloud.dataflow.rest.client.AppRegistryOperations;
7070
import org.springframework.cloud.dataflow.rest.client.DataFlowClientException;
7171
import org.springframework.cloud.dataflow.rest.client.DataFlowTemplate;
72+
import org.springframework.cloud.dataflow.rest.client.config.DataFlowClientProperties;
7273
import org.springframework.cloud.dataflow.rest.client.dsl.DeploymentPropertiesBuilder;
7374
import org.springframework.cloud.dataflow.rest.client.dsl.Stream;
7475
import org.springframework.cloud.dataflow.rest.client.dsl.StreamApplication;
@@ -203,6 +204,9 @@ public class DataFlowIT {
203204
@Autowired
204205
protected RuntimeApplicationHelper runtimeApps;
205206

207+
@Autowired
208+
protected DataFlowClientProperties dataFlowClientProperties;
209+
206210
/**
207211
* Folder that collects the external docker-compose YAML files such as coming from
208212
* external classpath, http/https or file locations. Note: Needs to be static, because as
@@ -839,7 +843,7 @@ public void dataflowTaskLauncherSink() {
839843
try (Stream stream = Stream.builder(dataFlowOperations).name("tasklauncher-test")
840844
.definition("http | " + dataflowTaskLauncherAppName
841845
+ " --trigger.initialDelay=100 --trigger.maxPeriod=1000 " +
842-
"--spring.cloud.dataflow.client.serverUri=http://dataflow-server:9393")
846+
"--spring.cloud.dataflow.client.serverUri=" + dataFlowClientProperties.getServerUri())
843847
.create()
844848
.deploy(testDeploymentProperties())) {
845849

@@ -1049,9 +1053,9 @@ protected StreamApplication app(String appName) {
10491053

10501054
public static final int EXIT_CODE_ERROR = 1;
10511055

1052-
public static final String TEST_VERSION_NUMBER = "2.1.0.RELEASE";
1056+
public static final String TEST_VERSION_NUMBER = "2.0.2";
10531057

1054-
public static final String CURRENT_VERSION_NUMBER = "2.1.1.RELEASE";
1058+
public static final String CURRENT_VERSION_NUMBER = "2.0.1";
10551059

10561060
private List<String> composedTaskLaunchArguments(String... additionalArguments) {
10571061
// the dataflow-server-use-user-access-token=true argument is required COMPOSED tasks in

0 commit comments

Comments
 (0)