Skip to content

Commit

Permalink
Update Task Thin Executions list function for parity with 2.11.x
Browse files Browse the repository at this point in the history
Updated task thin executions link handing and added extra test for parity with 2.11.x.
Update minimum supported version of client.

See spring-cloud#6062
  • Loading branch information
corneil committed Nov 12, 2024
1 parent 3f80045 commit 2e8f708
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,12 @@ public class TaskTemplate implements TaskOperations {
this.restTemplate = restTemplate;

String version = VersionUtils.getThreePartVersion(dataFlowServerVersion);
Assert.isTrue(VersionUtils.isDataFlowServerVersionGreaterThanOrEqualToRequiredVersion(version, VALIDATION_MIN_VERSION), () -> "Minimum Data Flow version required is " + VALIDATION_MIN_VERSION + " but got " + version);
if (StringUtils.hasText(version)) {
Assert.isTrue(
VersionUtils.isDataFlowServerVersionGreaterThanOrEqualToRequiredVersion(version,
VALIDATION_MIN_VERSION),
() -> "Minimum Data Flow version required is " + VALIDATION_MIN_VERSION + " but got " + version);
}

this.aboutLink = resources.getLink("about").get();

Expand Down

0 comments on commit 2e8f708

Please sign in to comment.