Search in sources :

Example 1 with GetDiscoveryParams

use of io.jans.ca.common.params.GetDiscoveryParams in project jans by JanssenProject.

the class GetDiscoveryTest method test.

@Parameters({ "host", "opHost", "opDiscoveryPath" })
@Test
public void test(String host, String opHost, String opDiscoveryPath) {
    ClientInterface client = Tester.newClient(host);
    final GetDiscoveryParams commandParams = new GetDiscoveryParams();
    commandParams.setOpHost(opHost);
    commandParams.setOpDiscoveryPath(opDiscoveryPath);
    final GetDiscoveryResponse resp = client.getDiscovery(commandParams);
    assertNotNull(resp);
    assertNotNull(resp.getIssuer());
}
Also used : GetDiscoveryResponse(io.jans.ca.common.response.GetDiscoveryResponse) ClientInterface(io.jans.ca.client.ClientInterface) GetDiscoveryParams(io.jans.ca.common.params.GetDiscoveryParams) Parameters(org.testng.annotations.Parameters) Test(org.testng.annotations.Test)

Example 2 with GetDiscoveryParams

use of io.jans.ca.common.params.GetDiscoveryParams in project jans by JanssenProject.

the class GetDiscoveryTest method test_withOpConfigurationEndpoint.

@Parameters({ "host", "opConfigurationEndpoint" })
@Test
public void test_withOpConfigurationEndpoint(String host, String opConfigurationEndpoint) {
    ClientInterface client = Tester.newClient(host);
    final GetDiscoveryParams commandParams = new GetDiscoveryParams();
    commandParams.setOpConfigurationEndpoint(opConfigurationEndpoint);
    final GetDiscoveryResponse resp = client.getDiscovery(commandParams);
    assertNotNull(resp);
    assertNotNull(resp.getIssuer());
}
Also used : GetDiscoveryResponse(io.jans.ca.common.response.GetDiscoveryResponse) ClientInterface(io.jans.ca.client.ClientInterface) GetDiscoveryParams(io.jans.ca.common.params.GetDiscoveryParams) Parameters(org.testng.annotations.Parameters) Test(org.testng.annotations.Test)

Aggregations

ClientInterface (io.jans.ca.client.ClientInterface)2 GetDiscoveryParams (io.jans.ca.common.params.GetDiscoveryParams)2 GetDiscoveryResponse (io.jans.ca.common.response.GetDiscoveryResponse)2 Parameters (org.testng.annotations.Parameters)2 Test (org.testng.annotations.Test)2