提交 9e459755 编写于 作者: J Jesse Glick

CLI help command can run even against an instance with no anonymous read access, so use that.

上级 bc69f8c1
......@@ -46,7 +46,7 @@ public class Security218BlackBoxTest {
@Rule
public JenkinsRule r = new JenkinsRule();
@PresetData(PresetData.DataSet.ANONYMOUS_READONLY) // allow who-am-i to run all the way to completion
@PresetData(PresetData.DataSet.NO_ANONYMOUS_READACCESS)
@Test
public void probe() throws Exception {
final ServerSocket proxySocket = new ServerSocket(0);
......@@ -135,7 +135,7 @@ public class Security218BlackBoxTest {
protected CliPort getCliTcpPort(String url) throws IOException {
return new CliPort(new InetSocketAddress(localhost, proxySocket.getLocalPort()), /* ignore identity */null, 1);
}
}.execute("who-am-i");
}.execute("help");
fail("TODO assert that payloads did not work");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册