-
Notifications
You must be signed in to change notification settings - Fork 721
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
Fix tests with Jenkins 2.395 #431
Fix tests with Jenkins 2.395 #431
Conversation
Jenkins 2.395 includes jenkinsci/jenkins#7661 that simplifies the names of the settings on the "Configure System" page. That simplification breaks email-ext tests in the Jenkins plugin bill of materials and any time they are run with Jenkins 2.395 or later. We can temporarily exclude the tests from the plugin bill of materials, but it is much better to have the tests pass. This pull request adapts the tests to the change so that they pass with the current weekly and past LTS releases. jenkinsci/bom#1857 shows the failing tests with Jenkins 2.395. The failures can also be seen with the command: ``` $ mvn clean -Dtest=ExtendedEmailPublisherDescriptorTest verify ```
Jenkins 2.395 simplified the page title but the plugin needs to be updated to test for the correct page title. jenkinsci/jenkins#7661 is the change in Jenkins core. jenkinsci/email-ext-plugin#431 provides more details on the issue
@slide could you review and merge this change when convenient for you? The test failure has been excluded from the plugin bill of materials pull request, but I'd much rather have the test updated than need to exclude the failure in the plugin BOM. |
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.
Thanks for the PR!
* chore: ran shell command "pwsh -NoProfile -File /home/runner/work/bom... ... /bom/updatecli/update-jenkins.ps1 weekly 2.395" Made with ❤️️ by updatecli * Exclude an email-ext test dependent on system config page title Jenkins 2.395 simplified the page title but the plugin needs to be updated to test for the correct page title. jenkinsci/jenkins#7661 is the change in Jenkins core. jenkinsci/email-ext-plugin#431 provides more details on the issue --------- Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
Released in 2.95. |
* chore: ran shell command "pwsh -NoProfile -File /home/runner/work/bom... ... /bom/updatecli/update-jenkins.ps1 weekly 2.395" Made with ❤️️ by updatecli * Exclude an email-ext test dependent on system config page title Jenkins 2.395 simplified the page title but the plugin needs to be updated to test for the correct page title. jenkinsci/jenkins#7661 is the change in Jenkins core. jenkinsci/email-ext-plugin#431 provides more details on the issue --------- Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
Fix assertions for configure system page on 2.395
Jenkins 2.395 includes jenkinsci/jenkins#7661 that simplifies the names of the settings on the "Configure System" page.
That simplification breaks email-ext tests in the Jenkins plugin bill of materials and any time they are run with Jenkins 2.395 or later. We can temporarily exclude the tests from the plugin bill of materials, but it is much better to have the tests pass.
This pull request adapts the tests to the change so that they pass with the current weekly and past LTS releases.
jenkinsci/bom#1857 shows the failing tests with Jenkins 2.395.
The failures can also be seen with the command: