From a41fcd560d7104c495f48ae613ea303d7cc91d53 Mon Sep 17 00:00:00 2001 From: Oleg Nenashev Date: Mon, 21 Sep 2015 20:28:32 +0300 Subject: [PATCH] Fix the failing test (a new one for CLI access would be useful) --- test/src/test/groovy/hudson/cli/CLIActionTest.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/src/test/groovy/hudson/cli/CLIActionTest.groovy b/test/src/test/groovy/hudson/cli/CLIActionTest.groovy index 3a304aa4e0..e3c61e14a3 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); } } -- GitLab