Skip to content

Commit

Permalink
changes performed
Browse files Browse the repository at this point in the history
  • Loading branch information
escoem committed Oct 8, 2016
1 parent e2563fb commit cb5cca7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
@@ -1,3 +1,4 @@
<div>
User IDs and/or <em>external</em> group names of person or people permitted to respond to the input, splitted by ','.
User IDs and/or <em>external</em> group names of person or people permitted to respond to the input, separated by ','.
If you configure "alice, bob", will match with "alice" but not with "bob". You need to remove all the white spaces.
</div>
Expand Up @@ -128,12 +128,9 @@ public void test_cancel_run_by_input() throws Exception {
JenkinsRule.WebClient webClient = j.createWebClient();
j.jenkins.setSecurityRealm(j.createDummySecurityRealm());
j.jenkins.setAuthorizationStrategy(new MockAuthorizationStrategy().
// Only give "alice" basic privs. That's normally not enough to Job.CANCEL, only for the fact that "alice"
// is listed as the submitter.
grant(Jenkins.READ, Job.READ).everywhere().to("alice").
// Only give "bob" basic privs. That's normally not enough to Job.CANCEL and "bob" is not the submitter,
// so they should be rejected.
grant(Jenkins.READ, Job.READ).everywhere().to("bob").
// Only give "alice" and "bob" basic privs. That's normally not enough to Job.CANCEL, only for the fact that "alice"
// and "bob" are listed as the submitter.
grant(Jenkins.READ, Job.READ).everywhere().to("alice", "bob").
// Give "charlie" basic privs + Job.CANCEL. That should allow user3 cancel.
grant(Jenkins.READ, Job.READ, Job.CANCEL).everywhere().to("charlie"));

Expand Down

0 comments on commit cb5cca7

Please sign in to comment.