+
+ if (successHTTP) { // give it a second try
+ int id = Integer.parseInt(p2.replaceFirst("^.*/([0-9]+)$", "$1"));
+ Domain d = Domain.getById(id);
+ DomainPingConfiguration dpc = null;
+ for (DomainPingConfiguration conf : d.getConfiguredPings()) {
+ if (conf.getType() == DomainPingType.HTTP) {
+ dpc = conf;
+ break;
+ }
+ }
+ if (dpc == null) {
+ fail("Http config not found");
+ }
+ String res = executeBasicWebInteraction(cookie, p2, "configId=" + dpc.getId());
+ assertThat(res, containsString("only allowed after"));
+ }