Search in sources :

Example 1 with FreeIpaUserSyncDurationLessThan

use of com.sequenceiq.it.cloudbreak.assertion.freeipa.FreeIpaUserSyncDurationLessThan in project cloudbreak by hortonworks.

the class UserSyncTest method testUserSyncDuration.

@Test(dataProvider = TEST_CONTEXT)
@Description(given = "there is a running default environment with no freeIpa", when = "freeIpa should be successfully created", then = "all users should be synced successfully with no failure " + "and finished in given (5) minutes")
public void testUserSyncDuration(TestContext testContext) {
    String freeIpa = resourcePropertyProvider().getName();
    testContext.given(freeIpa, FreeIpaTestDto.class).when(freeIpaTestClient.create(), key(freeIpa)).await(Status.AVAILABLE).given(FreeIpaUserSyncTestDto.class).when(freeIpaTestClient.getLastSyncOperationStatus()).await(OperationState.COMPLETED).then(new FreeIpaUserSyncDurationLessThan(5)).then(new FreeIpaUserSyncDoneWithNoFailures()).validate();
}
Also used : FreeIpaUserSyncDoneWithNoFailures(com.sequenceiq.it.cloudbreak.assertion.freeipa.FreeIpaUserSyncDoneWithNoFailures) FreeIpaUserSyncTestDto(com.sequenceiq.it.cloudbreak.dto.freeipa.FreeIpaUserSyncTestDto) FreeIpaUserSyncDurationLessThan(com.sequenceiq.it.cloudbreak.assertion.freeipa.FreeIpaUserSyncDurationLessThan) Description(com.sequenceiq.it.cloudbreak.context.Description) Test(org.testng.annotations.Test) AbstractE2ETest(com.sequenceiq.it.cloudbreak.testcase.e2e.AbstractE2ETest)

Aggregations

FreeIpaUserSyncDoneWithNoFailures (com.sequenceiq.it.cloudbreak.assertion.freeipa.FreeIpaUserSyncDoneWithNoFailures)1 FreeIpaUserSyncDurationLessThan (com.sequenceiq.it.cloudbreak.assertion.freeipa.FreeIpaUserSyncDurationLessThan)1 Description (com.sequenceiq.it.cloudbreak.context.Description)1 FreeIpaUserSyncTestDto (com.sequenceiq.it.cloudbreak.dto.freeipa.FreeIpaUserSyncTestDto)1 AbstractE2ETest (com.sequenceiq.it.cloudbreak.testcase.e2e.AbstractE2ETest)1 Test (org.testng.annotations.Test)1