mirror of
https://github.com/shred/acme4j.git
synced 2025-12-13 11:14:02 +08:00
Directory does not provide a nonce any more
This commit is contained in:
@@ -30,21 +30,6 @@ import org.shredzone.acme4j.exception.AcmeException;
|
||||
*/
|
||||
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
|
||||
public void testResources() throws AcmeException {
|
||||
Session session = new Session(pebbleURI());
|
||||
|
||||
Reference in New Issue
Block a user