Skip to content

User needs ability to specify app version when creating schedule #5830

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

Closed
wants to merge 1 commit into from

Conversation

cppwfs
Copy link
Contributor

@cppwfs cppwfs commented May 29, 2024

This update allows user to specify version.label=<version.number>.

Previously the version number specified was not used when searching the registry for the resource, thus the default version was used.

Tests were also updated because the original settings assumed that the AppRegistration was a real instance instead of being mocked. Thus the find would always return null.
And in this case the tests returned a false positive. Now that the mocks are in place it exercises all the code.
Also added explicit test if user does not set the version number. Some of the tests do this, but wanted an explicit test to verify this.

resolves #5705

This update allows user to specify version.label=<version.number>
Tests were also updated because the original settings assumed that the
 appregistry was real instance instead of being mocked. Thus the find would always return null.
And in this case the tests returned a false positive.
Now that the mocks are in place it excercises all the code.
Also added explicit test if user does not set the version number.  Some of the tests do this,
but wanted an explicit test to verify this.

resolves spring-cloud#5705
@cppwfs cppwfs requested review from corneil and onobc May 29, 2024 15:35
Copy link
Contributor

@corneil corneil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cppwfs
Copy link
Contributor Author

cppwfs commented Jun 6, 2024

Squashed Merged. @corneil Thanks for the review!

@cppwfs cppwfs closed this Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Task schedule is not using the version defined in the properties file
2 participants