mirror of https://github.com/shred/acme4j
Directory does not provide a nonce any more
parent
1e28356116
commit
3abf56e325
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue