-
Notifications
You must be signed in to change notification settings - Fork 583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Task Thin Executions list function for parity with 2.11.x #6063
Conversation
Updated task thin executions link handing and added extra test for parity with 2.11.x See spring-cloud#6062
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
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
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good just a couple of nitpicks
Since you are bringing this class up to date can you remove the following since they are not being used:
- the AboutResource import
- actualDataFlowServerCoreVersion
- aboutLink
Thanks!
...t-client/src/test/java/org/springframework/cloud/dataflow/rest/client/TaskTemplateTests.java
Show resolved
Hide resolved
validateExecutionLinkPresent("1.8.0"); | ||
validateExecutionLinkPresent("1.9.0"); | ||
validateExecutionLinkPresent("2.0.0"); | ||
validateExecutionLinkPresent("3.0.0"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want to have negative test as well. i.e. test with an old version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the moment we don't have old versions we support with links missing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking of something like:
@Test
void invalidDataFlow() {
assertThatExceptionOfType(IllegalArgumentException.class).isThrownBy(() -> validateExecutionLinkPresent("2.11.5"));
}
```
WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
Updated task thin executions link handing and added extra test for parity with 2.11.x. Update minimum supported version of client. Added test for invalid old version. See spring-cloud#6062
Squashed, Rebased, Merged |
Updated task thin executions link handing and added extra test for parity with 2.11.x
See #6062