Search in sources :

Example 1 with IntegrationOverviewEndpoint

use of io.syndesis.qe.endpoint.IntegrationOverviewEndpoint in project syndesis-qe by syndesisio.

the class CommonValidationSteps method verifyIntegrationState.

@Then("verify integration {string} has current state {string}")
public void verifyIntegrationState(String integrationName, String integrationState) {
    String integrationId = integrationsEndpoint.getIntegrationId(integrationName).get();
    integrationOverviewEndpoint = new IntegrationOverviewEndpoint();
    final IntegrationOverview integrationOverview = integrationOverviewEndpoint.getOverview(integrationId);
    log.debug("Actual state: {} and desired state: {}", integrationOverview.getCurrentState().name(), integrationState);
    Assertions.assertThat(integrationOverview.getCurrentState().name()).isEqualTo(integrationState);
}
Also used : IntegrationOverviewEndpoint(io.syndesis.qe.endpoint.IntegrationOverviewEndpoint) IntegrationOverview(io.syndesis.qe.endpoint.model.IntegrationOverview) Then(io.cucumber.java.en.Then)

Aggregations

Then (io.cucumber.java.en.Then)1 IntegrationOverviewEndpoint (io.syndesis.qe.endpoint.IntegrationOverviewEndpoint)1 IntegrationOverview (io.syndesis.qe.endpoint.model.IntegrationOverview)1