mirror of
https://github.com/shred/acme4j.git
synced 2025-12-13 11:14:02 +08:00
Use properties for pebble URI
This commit is contained in:
@@ -95,7 +95,10 @@ public class ProviderIT {
|
||||
*/
|
||||
@Test
|
||||
public void testPebble() throws AcmeException, MalformedURLException {
|
||||
var session = new Session("acme://pebble");
|
||||
var pebbleHost = System.getProperty("pebbleHost", "localhost");
|
||||
var pebblePort = System.getProperty("pebblePort", "14000");
|
||||
|
||||
var session = new Session("acme://pebble/" + pebbleHost + ":" + pebblePort);
|
||||
assertThat(session.getMetadata().getWebsite()).isEmpty();
|
||||
assertThatNoException().isThrownBy(() -> session.resourceUrl(Resource.NEW_ACCOUNT));
|
||||
assertThat(session.getMetadata().isExternalAccountRequired()).isFalse();
|
||||
|
||||
Reference in New Issue
Block a user