Skip to content

Add unit test for SSHAgentBuildWrapper.description - #291

Merged
ogulcanaydogan merged 1 commit into
jenkinsci:masterfrom
ogulcanaydogan:test/build-wrapper-description-coverage
Jul 27, 2026
Merged

Add unit test for SSHAgentBuildWrapper.description#291
ogulcanaydogan merged 1 commit into
jenkinsci:masterfrom
ogulcanaydogan:test/build-wrapper-description-coverage

Conversation

@ogulcanaydogan

Copy link
Copy Markdown
Contributor

Adds a direct unit test for SSHAgentBuildWrapper.description(...), the helper that formats a credential as username (description) or just username when the description is blank. It was only exercised indirectly through the integration tests.

Testing

mvn test -Dtest=SSHAgentBuildWrapperDescriptionTest passes (2 tests, both branches).

The credential description helper (username with optional description
suffix) was only exercised indirectly through integration tests. Add a
direct unit test for both branches.

Signed-off-by: Ogulcan Aydogan <[email protected]>
@ogulcanaydogan
ogulcanaydogan requested a review from a team as a code owner July 27, 2026 20:22
@ogulcanaydogan
ogulcanaydogan merged commit 38fefc1 into jenkinsci:master Jul 27, 2026
18 checks passed
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.

1 participant