Pebble: test authz deactivation

pull/81/head
Richard Körber 2018-08-22 19:56:16 +02:00
parent 3b2b9256a4
commit 1462dcb98e
No known key found for this signature in database
GPG Key ID: AAB9FD19C78AA3E0
1 changed files with 6 additions and 0 deletions

View File

@ -225,6 +225,12 @@ public class OrderIT extends PebbleITBase {
assertThat(cert.getNotBefore(), not(nullValue()));
assertThat(cert.getSubjectX500Principal().getName(), containsString("CN=" + domain));
for (Authorization auth : order.getAuthorizations()) {
assertThat(auth.getStatus(), is(Status.VALID));
auth.deactivate();
assertThat(auth.getStatus(), is(Status.DEACTIVATED));
}
revoker.revoke(session, certificate, keyPair, domainKeyPair);
// Make sure certificate is revoked