From 3b2b9256a4255fd5d6334e48a68008e0a5795142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20K=C3=B6rber?= Date: Wed, 22 Aug 2018 19:34:50 +0200 Subject: [PATCH] Enable Pebble's key change IT --- .../test/java/org/shredzone/acme4j/it/pebble/AccountIT.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/acme4j-it/src/test/java/org/shredzone/acme4j/it/pebble/AccountIT.java b/acme4j-it/src/test/java/org/shredzone/acme4j/it/pebble/AccountIT.java index 76292ed7..81f98370 100644 --- a/acme4j-it/src/test/java/org/shredzone/acme4j/it/pebble/AccountIT.java +++ b/acme4j-it/src/test/java/org/shredzone/acme4j/it/pebble/AccountIT.java @@ -20,7 +20,6 @@ import java.net.URI; import java.net.URL; import java.security.KeyPair; -import org.junit.Ignore; import org.junit.Test; import org.shredzone.acme4j.Account; import org.shredzone.acme4j.AccountBuilder; @@ -179,7 +178,6 @@ public class AccountIT extends PebbleITBase { * Change the account key. */ @Test - @Ignore // TODO PEBBLE: missing public void testKeyChange() throws AcmeException { KeyPair keyPair = createKeyPair(); Session session = new Session(pebbleURI()); @@ -197,7 +195,8 @@ public class AccountIT extends PebbleITBase { Session sessionOldKey = new Session(pebbleURI()); Account oldAccount = sessionOldKey.login(location, keyPair).getAccount(); oldAccount.update(); - } catch (AcmeUnauthorizedException ex) { + fail("Old account key is still accessible"); + } catch (AcmeServerException ex) { // Expected }