use of io.dropwizard.client.JerseyClientBuilder in project verify-hub by alphagov.
the class MetadataConsumerTests method setUpClient.
@BeforeClass
public static void setUpClient() throws Exception {
JerseyClientConfiguration jerseyClientConfiguration = JerseyClientConfigurationBuilder.aJerseyClientConfiguration().withTimeout(Duration.seconds(10)).build();
client = new JerseyClientBuilder(samlProxyAppRule.getEnvironment()).using(jerseyClientConfiguration).build(SamlMessageReceiverApiResourceTest.class.getSimpleName());
}
use of io.dropwizard.client.JerseyClientBuilder in project verify-hub by alphagov.
the class ResourceNotFound404IntegrationTests method setUpClass.
@BeforeClass
public static void setUpClass() throws Exception {
JerseyClientConfiguration jerseyClientConfiguration = JerseyClientConfigurationBuilder.aJerseyClientConfiguration().withTimeout(Duration.seconds(10)).build();
client = new JerseyClientBuilder(samlProxyAppRule.getEnvironment()).using(jerseyClientConfiguration).build(SamlMessageReceiverApiResourceTest.class.getSimpleName());
}
use of io.dropwizard.client.JerseyClientBuilder in project verify-hub by alphagov.
the class SamlMessageReceiverApiResourceEidasEnabledTest method setUpClient.
@BeforeClass
public static void setUpClient() throws Exception {
JerseyClientConfiguration jerseyClientConfiguration = JerseyClientConfigurationBuilder.aJerseyClientConfiguration().withTimeout(Duration.seconds(10)).build();
client = new JerseyClientBuilder(samlProxyAppRule.getEnvironment()).using(jerseyClientConfiguration).build(SamlMessageReceiverApiResourceEidasEnabledTest.class.getSimpleName());
eventSinkStubRule.register(Urls.HubSupportUrls.HUB_SUPPORT_EVENT_SINK_RESOURCE, Response.Status.OK.getStatusCode());
}
use of io.dropwizard.client.JerseyClientBuilder in project verify-hub by alphagov.
the class EidasSessionResourceContractTest method beforeClass.
@BeforeClass
public static void beforeClass() throws Exception {
IdaSamlBootstrap.bootstrap();
JerseyClientConfiguration jerseyClientConfiguration = JerseyClientConfigurationBuilder.aJerseyClientConfiguration().withTimeout(Duration.seconds(10)).build();
client = new JerseyClientBuilder(policy.getEnvironment()).using(jerseyClientConfiguration).build(EidasSessionResourceContractTest.class.getSimpleName());
sessionId = SessionId.createNewSessionId();
samlAuthnResponseContainerDto = createAuthnResponseSignedByKeyPair(sessionId, TestCertificateStrings.STUB_IDP_PUBLIC_PRIMARY_CERT, TestCertificateStrings.STUB_IDP_PUBLIC_PRIMARY_PRIVATE_KEY);
encryptedIdentityAssertion = AssertionBuilder.anAssertion().withId(UUID.randomUUID().toString()).build();
encryptedIdentityAssertionString = XML_OBJECT_XML_OBJECT_TO_BASE_64_ENCODED_STRING_TRANSFORMER.apply(encryptedIdentityAssertion);
}
use of io.dropwizard.client.JerseyClientBuilder in project verify-hub by alphagov.
the class Cycle3DataResourceTest method beforeClass.
@BeforeClass
public static void beforeClass() {
JerseyClientConfiguration jerseyClientConfiguration = JerseyClientConfigurationBuilder.aJerseyClientConfiguration().withTimeout(Duration.seconds(10)).build();
client = new JerseyClientBuilder(policy.getEnvironment()).using(jerseyClientConfiguration).build(Cycle3DataResourceTest.class.getSimpleName());
}
Aggregations