Skip to content

Commit

Permalink
Merge pull request #33 from varyvol/JENKINS-41752
Browse files Browse the repository at this point in the history
[JENKINS-41752] Fix PCT for 2.32.2
  • Loading branch information
jglick committed Feb 7, 2017
2 parents 75925a8 + 3a3259d commit 252b1d5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions pom.xml
Expand Up @@ -68,6 +68,12 @@
<artifactId>structs</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-api</artifactId>
<version>2.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-cps</artifactId>
Expand Down Expand Up @@ -99,6 +105,13 @@
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-scm-step</artifactId>
<version>2.3</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-step-api</artifactId>
Expand Down
Expand Up @@ -32,6 +32,7 @@
import com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl;

import hudson.model.Fingerprint;
import hudson.model.User;
import jenkins.security.QueueItemAuthenticatorConfiguration;

import hudson.FilePath;
Expand Down Expand Up @@ -292,7 +293,7 @@ public void testGlobalBindingWithAuthorization() {
story.j.jenkins.setSecurityRealm(story.j.createDummySecurityRealm());
story.j.jenkins.setAuthorizationStrategy(new FullControlOnceLoggedInAuthorizationStrategy());
// create the user.
story.j.jenkins.getUser("dummy");
User.get("dummy", true);

// enable the run as user strategy for the AuthorizeProject plugin
Map<String, Boolean> strategies = new HashMap<String, Boolean>();
Expand Down

0 comments on commit 252b1d5

Please sign in to comment.