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();
}
Aggregations