use of io.dropwizard.client.JerseyClientBuilder in project verify-hub by alphagov.
the class MatchingServiceHealthCheckIntegrationTests method setUp.
@BeforeClass
public static void setUp() throws Exception {
JerseyClientConfiguration jerseyClientConfiguration = JerseyClientConfigurationBuilder.aJerseyClientConfiguration().withTimeout(Duration.seconds(10)).build();
client = new JerseyClientBuilder(samlSoapProxyAppRule.getEnvironment()).using(jerseyClientConfiguration).build(MatchingServiceHealthCheckIntegrationTests.class.getSimpleName());
eventSinkStub.setupStubForLogging();
configStub.setupStubForCertificates(msaEntityId, TEST_RP_MS_PUBLIC_SIGNING_CERT, TEST_RP_MS_PUBLIC_ENCRYPTION_CERT);
configStub.setupStubForCertificates(msaEntityId2, TEST_RP_MS_PUBLIC_SIGNING_CERT, TEST_RP_MS_PUBLIC_ENCRYPTION_CERT);
}
use of io.dropwizard.client.JerseyClientBuilder in project verify-hub by alphagov.
the class MatchingServiceRequestSenderTest method setUpClass.
@BeforeClass
public static void setUpClass() throws Exception {
JerseyClientConfiguration jerseyClientConfiguration = JerseyClientConfigurationBuilder.aJerseyClientConfiguration().withTimeout(Duration.seconds(10)).build();
client = new JerseyClientBuilder(samlSoapProxyAppRule.getEnvironment()).using(jerseyClientConfiguration).build(MatchingServiceRequestSenderTest.class.getSimpleName());
eventSinkStubRule.setupStubForLogging();
configStub.setupStubForCertificates(TEST_RP_MS);
String soap = createMsaResponse();
final String attibute_query_resource = "/attribute-query-request";
RequestAndResponse requestAndResponse = ExpectedRequestBuilder.expectRequest().withPath(attibute_query_resource).andWillRespondWith().withStatus(200).withBody(soap).withContentType(MediaType.TEXT_XML_TYPE.toString()).build();
msaStubRule.register(requestAndResponse);
}
Aggregations