File tree Expand file tree Collapse file tree
plugin/src/test/java/io/jenkins/plugins/casc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,15 +79,6 @@ public void testDoConfigure_InvalidYaml() throws Exception {
7979
8080 @ Test
8181 public void testDoConfigure_NonAdminForbidden () throws Exception {
82- j .jenkins .setSecurityRealm (j .createDummySecurityRealm ());
83- j .jenkins .setAuthorizationStrategy (new MockAuthorizationStrategy ()
84- .grant (Jenkins .READ )
85- .everywhere ()
86- .to ("user" )
87- .grant (jenkins .model .Jenkins .ADMINISTER )
88- .everywhere ()
89- .to ("admin" ));
90-
9182 WebClient wc = j .createWebClient ();
9283 wc .setThrowExceptionOnFailingStatusCode (false );
9384
@@ -104,7 +95,7 @@ public void testDoConfigure_NonAdminForbidden() throws Exception {
10495 @ Test
10596 public void testDoConfigure_Unauthenticated () throws Exception {
10697 j .jenkins .setSecurityRealm (j .createDummySecurityRealm ());
107- j .jenkins .setAuthorizationStrategy (new org . jvnet . hudson . test . MockAuthorizationStrategy ()
98+ j .jenkins .setAuthorizationStrategy (new MockAuthorizationStrategy ()
10899 .grant (Jenkins .READ )
109100 .everywhere ()
110101 .toEveryone ());
You can’t perform that action at this time.
0 commit comments