-
Notifications
You must be signed in to change notification settings - Fork 104
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
[JENKINS-42950] Support more credential masking scenarios #59
Merged
Merged
Changes from 4 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
927eb26
[JENKINS-42950] Support more credential masking scenarios
jvz 3fb359e
Improve assertions
jvz ee51298
Move package and add link to relevant PR
jvz 2273356
Rename test
jvz 19fec43
Rename test
jvz 6dcc230
Rename tests and improve some
jvz cd94206
Improve help docs
daniel-beck c82bcc3
Simplify set class usage
jvz fa4ff53
Improve javadoc
jvz 5f55aca
Improve help docs
jvz a432974
Add batch test for fancier password
jvz 0dde12f
Fix assertion
jvz 30d0900
Improve tests to work with bash properly
jvz ad1b6aa
Move bash assumption to BeforeClass
jvz 9463aaf
Fix java 11 build issue
jvz c18e1ec
Add tests for /bin/sh
jvz 394a08e
Simplify batch pattern masker
jvz bd82279
Fix bash assumptions in tests and other test fixes
Wadeck ee00db0
Clarify character range
jvz f07204b
Refactor credentials registration in tests
jvz 5425b67
Add one more data point to bash test
jvz ebb4a53
Improve password generation readability
jvz 1512830
Fix test regressions
jvz c707d92
Remove unneeded TODO
jvz 7b05cd2
Clean up javadoc
jvz f7690e0
Apply suggestions from code review
jvz c9938de
Re-add docs on set +x
jvz 14f8c62
Fix imports
jvz 4ebbd28
Use @ClassRule JenkinsRule and improve comments
jvz 9bd38ca
Refactor masking API to use Pattern
jvz cf2178c
Remove redundant pattern
jvz 89d9c74
Remove redundant pattern
jvz c7d3cf6
Update log message to reflect masking improvements
jvz e2efe9a
Restrict API
jvz 717d5db
Update test for log message update
jvz 163fdba
Simplify API
jvz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,7 +146,7 @@ public static class Execution extends AbstractSynchronousStepExecution<Void> { | |
+ "}", true)); | ||
WorkflowRun b = p.scheduleBuild2(0).waitForStart(); | ||
SemaphoreStep.waitForStart("basics/1", b); | ||
story.j.assertLogContains(Functions.isWindows() ? "Masking only exact matches of %USERNAME% or %PASSWORD%" : "Masking only exact matches of $USERNAME or $PASSWORD", b); | ||
story.j.assertLogContains(Functions.isWindows() ? "Masking supported pattern matches of %USERNAME% or %PASSWORD%" : "Masking supported pattern matches of $USERNAME or $PASSWORD", b); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Feel free to introduce a package-private utility method for this message to be shared between |
||
} | ||
}); | ||
story.addStep(new Statement() { | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
or a bit more simply