提交 6ea45340 编写于 作者: O Oleg Nenashev

Update the unit test

上级 251bdb00
......@@ -39,9 +39,15 @@ class CLIActionTest {
@Test
@PresetData(DataSet.NO_ANONYMOUS_READACCESS)
public void serveCliActionToAnonymousUser() throws Exception {
public void serveCliActionToAnonymousUserWithoutPermissions() throws Exception {
def wc = j.createWebClient();
// 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);
wc.assertFails("cli", HttpURLConnection.HTTP_FORBIDDEN);
}
@Test
public void serveCliActionToAnonymousUser() throws Exception {
def wc = j.createWebClient();
wc.goTo("cli");
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册