Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-41511] Add a test showing the problem
  • Loading branch information
Vlatombe committed Jan 27, 2017
1 parent 9fb6ccf commit a26d711
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions test/src/test/groovy/jenkins/bugs/Jenkins41511Test.java
@@ -0,0 +1,27 @@
package jenkins.bugs;

import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;

import hudson.security.HudsonPrivateSecurityRealm;
import jenkins.model.Jenkins;

public class Jenkins41511Test {

@BeforeClass
public static void setUpClass() {
System.setProperty(Jenkins.class.getName()+".slaveAgentPort", "10000");
System.setProperty(Jenkins.class.getName()+".slaveAgentPortEnforce", "true");
}

@Rule
public JenkinsRule j = new JenkinsRule();

@Test
public void configRoundTrip() throws Exception {
Jenkins.getInstance().setSecurityRealm(new HudsonPrivateSecurityRealm(true, false, null));
j.submit(j.createWebClient().goTo("configureSecurity").getFormByName("config"));
}
}

0 comments on commit a26d711

Please sign in to comment.