diff --git a/test/src/test/groovy/hudson/cli/CLIActionTest.groovy b/test/src/test/groovy/hudson/cli/CLIActionTest.groovy index 3a304aa4e0ebfce270080ff5e6f7bc99a9c715f1..e3c61e14a315e47e9316dd80739e8621548939b1 100644 --- a/test/src/test/groovy/hudson/cli/CLIActionTest.groovy +++ b/test/src/test/groovy/hudson/cli/CLIActionTest.groovy @@ -41,6 +41,7 @@ class CLIActionTest { @PresetData(DataSet.NO_ANONYMOUS_READACCESS) public void serveCliActionToAnonymousUser() throws Exception { def wc = j.createWebClient(); - wc.goTo("cli"); + // The behavior changed due to SECURITY-192. index page is no longer accessible to anonymous + wc.assertFails(new URL(j.URL,"cli").toString(), HttpURLConnection.HTTP_FORBIDDEN); } }