Fix dns-01 challenge IT

pull/55/head
Richard Körber 2017-05-03 12:27:59 +02:00
parent 8e1563a410
commit 8ad616da79
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ import org.xbill.DNS.Type;
public class DnsServer { public class DnsServer {
private static final Logger LOG = LoggerFactory.getLogger(DnsServer.class); private static final Logger LOG = LoggerFactory.getLogger(DnsServer.class);
private static final int UDP_SIZE = 512; private static final int UDP_SIZE = 512;
private static final long TTL = 86321L; private static final long TTL = 300L;
private final Map<String, String> txtRecords = synchronizedMap(new HashMap<>()); private final Map<String, String> txtRecords = synchronizedMap(new HashMap<>());
private Thread thread = null; private Thread thread = null;

View File

@ -127,7 +127,7 @@ public class OrderIT extends PebbleITBase {
Dns01Challenge challenge = auth.findChallenge(Dns01Challenge.TYPE); Dns01Challenge challenge = auth.findChallenge(Dns01Challenge.TYPE);
assertThat(challenge, is(notNullValue())); assertThat(challenge, is(notNullValue()));
dnsServer.addTxtRecord(TEST_DOMAIN, challenge.getDigest()); dnsServer.addTxtRecord("_acme-challenge." + TEST_DOMAIN, challenge.getDigest());
return challenge; return challenge;
}); });
} }