Skip to content
Permalink
Browse files
[JENKINS-39470] Avoid extra diff.
  • Loading branch information
Evaristo Gutiérrez committed Nov 7, 2016
1 parent 5cab126 commit ec5d4353fea53b986057eff50942009e7bb4dbfe
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/test/java/org/jenkinsci/plugins/secure_requester_whitelist/SecureRequesterImplTest.java
@@ -39,13 +39,10 @@ public class SecureRequesterImplTest {
@Rule public JenkinsRule r = new JenkinsRule();

@PresetData(PresetData.DataSet.NO_ANONYMOUS_READACCESS)
@Test
public void authorizing() throws Exception {
@Test public void authorizing() throws Exception {
assertJSONP(null, 403);
assertJSONP("http://apache.org/", 403);

Whitelist.get().configure(null, new JSONObject().accumulate("allowNoReferer", true).accumulate("domains", "apache.org jenkins-ci.org"));

assertJSONP(null, 200);
assertJSONP("http://apache.org/", 200);
assertJSONP("http://jenkins-ci.org/", 200);

0 comments on commit ec5d435

Please sign in to comment.