Directory does not provide a nonce any more

pull/81/head
Richard Körber 2019-01-12 15:28:10 +01:00
parent 1e28356116
commit 3abf56e325
No known key found for this signature in database
GPG Key ID: AAB9FD19C78AA3E0
1 changed files with 0 additions and 15 deletions

View File

@ -30,21 +30,6 @@ import org.shredzone.acme4j.exception.AcmeException;
*/ */
public class SessionIT extends PebbleITBase { public class SessionIT extends PebbleITBase {
@Test
public void testNonce() throws AcmeException {
Session session = new Session(pebbleURI());
// No nonce yet on a fresh session
assertThat(session.getNonce(), is(nullValue()));
// Request directory, also providing a nonce
session.getMetadata();
// A nonce must be set now
assertThat(session.getNonce(), not(nullValue()));
assertThat(session.provider(), not(nullValue()));
}
@Test @Test
public void testResources() throws AcmeException { public void testResources() throws AcmeException {
Session session = new Session(pebbleURI()); Session session = new Session(pebbleURI());