Skip to content

Conversation

MarkEWaite
Copy link
Contributor

@MarkEWaite MarkEWaite commented Jul 8, 2023

Adapt DockerServerCredentialsTest for 2.413 UI improvement

Jenkins 2.412 and earlier use a text area for the client key data entry on the credentials page.

Jenkins 2.413 and newer use an input field for the client key data entry on the credentials page.

Jenkins 2.413 looks much nicer with a button that is consistent with the other buttons used in the Jenkins pages.

jenkinsci/jenkins#8179 is the Jenkins core pull request that implemented the change in Jenkins 2.413. Other plugins that use HTMLUnit to enter a value for the secret text may need a similar change. Special thanks to @mawinter69 for implementing that improvement in Jenkins 2.413.

Testing done

Compared the HTML pages generated by 2.412 and 2.413 and confirmed that 2.412 uses a textarea and 2.413 uses an input field. The 2.413 layout looks much nicer.

Automated test passes on both Jenkins 2.412 and 2.413 with this change.

### Submitter checklist
- [x] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [x] Ensure that the pull request title represents the desired changelog entry
- [x] Please describe what you did
- [x] Link to relevant issues in GitHub or Jira
- [x] Link to relevant pull requests, esp. upstream and downstream changes
- [x] Ensure you have provided tests - that demonstrates feature works or fixes the issue

Jenkins 2.412 and earlier use a text area for the client key.

Jenkins 2.413 and newer use an input field for the client key.

Jenkins 2.413 looks much nicer with a button that is consistent with
the other buttons used in the Jenkins pages.

jenkinsci/jenkins#8179 is the Jenkins core pull
request that implemented the change in Jenkins 2.413.  Other plugins
that use HTMLUnit to enter a value for the secret text may need a
similar change.
@MarkEWaite
Copy link
Contributor Author

@jglick this is the fix for the test failure detected in:

jenkinsci#140 (comment)
notes that the same change was used in core so that the HTMLUnit code
does not care about the type of the element being clicked.
@MarkEWaite
Copy link
Contributor Author

Build 2 passed with the most recent changes in c30a5a8 . I started build 3 to test Jenkins 2.412 and 2.413 explicitly.

@MarkEWaite MarkEWaite changed the title Adapt DockerServerCredentialsTest for 2.413 credentials page Adapt DockerServerCredentialsTest for 2.413+ credentials page Jul 8, 2023
MarkEWaite added a commit to MarkEWaite/bom that referenced this pull request Jul 9, 2023
jenkinsci/docker-commons-plugin#140 adapts the
docker-commons test to the UI improvement in Jenkins 2.413 and makes
it more resilient in case there are future changes in that area.
@MarkEWaite
Copy link
Contributor Author

jenkinsci/bom#2220 shows passing tests. Once this is merged and released, the BOM pull request can be updated to include docker-commons in the plugin bill of materials

MarkEWaite added a commit to MarkEWaite/bom that referenced this pull request Jul 10, 2023
The release does not include the test fix that is proposed in
jenkinsci/docker-commons-plugin#140

This reverts commit 077a294.
@jglick jglick merged commit a3cb0a6 into jenkinsci:master Jul 10, 2023
MarkEWaite added a commit to MarkEWaite/bom that referenced this pull request Jul 10, 2023
jenkinsci/docker-commons-plugin#140 fixes the
test issue on Jenkins 2.413 and later.
jglick pushed a commit to jenkinsci/bom that referenced this pull request Jul 10, 2023
* Add authentication-tokens plugin to managed set

Pin version 1.4 for 2.375.x

* Add docker-commons to managed set

* Test sample plugin with docker-commons

* Test with incremental 431.vef5777319e6b_

* Use docker commons 434.v3dc53576ec32

Thanks @jglick!

* Test docker-commons incremetal with test fix

jenkinsci/docker-commons-plugin#140 adapts the
docker-commons test to the UI improvement in Jenkins 2.413 and makes
it more resilient in case there are future changes in that area.

* Use docker commons 434.v3dc53576ec32 release

* Revert "Use docker commons 434.v3dc53576ec32 release"

The release does not include the test fix that is proposed in
jenkinsci/docker-commons-plugin#140

This reverts commit 077a294.

* Use docker-commons 439.va_3cb_0a_6a_fb_29

jenkinsci/docker-commons-plugin#140 fixes the
test issue on Jenkins 2.413 and later.

---------

Co-authored-by: Basil Crow <me@basilcrow.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants