mirror of https://github.com/shred/acme4j
Enable Pebble's key change IT
parent
d0d93b855a
commit
3b2b9256a4
|
@ -20,7 +20,6 @@ import java.net.URI;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.security.KeyPair;
|
import java.security.KeyPair;
|
||||||
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.shredzone.acme4j.Account;
|
import org.shredzone.acme4j.Account;
|
||||||
import org.shredzone.acme4j.AccountBuilder;
|
import org.shredzone.acme4j.AccountBuilder;
|
||||||
|
@ -179,7 +178,6 @@ public class AccountIT extends PebbleITBase {
|
||||||
* Change the account key.
|
* Change the account key.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
@Ignore // TODO PEBBLE: missing
|
|
||||||
public void testKeyChange() throws AcmeException {
|
public void testKeyChange() throws AcmeException {
|
||||||
KeyPair keyPair = createKeyPair();
|
KeyPair keyPair = createKeyPair();
|
||||||
Session session = new Session(pebbleURI());
|
Session session = new Session(pebbleURI());
|
||||||
|
@ -197,7 +195,8 @@ public class AccountIT extends PebbleITBase {
|
||||||
Session sessionOldKey = new Session(pebbleURI());
|
Session sessionOldKey = new Session(pebbleURI());
|
||||||
Account oldAccount = sessionOldKey.login(location, keyPair).getAccount();
|
Account oldAccount = sessionOldKey.login(location, keyPair).getAccount();
|
||||||
oldAccount.update();
|
oldAccount.update();
|
||||||
} catch (AcmeUnauthorizedException ex) {
|
fail("Old account key is still accessible");
|
||||||
|
} catch (AcmeServerException ex) {
|
||||||
// Expected
|
// Expected
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue