public ShadowAsserter<RA> hasUnfinishedPendingOperations() { pendingOperations() .assertUnfinishedOperation(); return this; }
protected void assertWillRepoShadowAfterCreate(PrismObject<ShadowType> repoShadow) { ShadowAsserter.forShadow(repoShadow, "repo") .assertActiveLifecycleState() .pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .delta() .assertAdd(); }
/** * ff 7min, pending operation retention period is over. * Pending operations should be gone. */ @Test public void test132RecomputeWillAfter32min() throws Exception { final String TEST_NAME = "test132RecomputeWillAfter32min"; displayTestTitle(TEST_NAME); // GIVEN Task task = createTask(TEST_NAME); OperationResult result = task.getResult(); clockForward("PT7M"); // WHEN displayWhen(TEST_NAME); recomputeUser(userWillOid, task, result); // THEN displayThen(TEST_NAME); assertSuccess(result); assertRepoShadow(accountWillOid) .pendingOperations() .assertNone(); assertModelShadow(accountWillOid) .pendingOperations() .assertNone(); assertCase(willLastCaseOid, SchemaConstants.CASE_STATE_CLOSED); assertSteadyResources(); }
protected void assertWillUnassignPendingOperationExecuting(ShadowAsserter<Void> shadowRepoAsserter) { shadowRepoAsserter .pendingOperations() .by() .changeType(ChangeTypeType.DELETE) .find() .assertRequestTimestamp(accountWillSecondReqestTimestampStart, accountWillSecondReqestTimestampEnd) .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.IN_PROGRESS) .assertId() .end() .end(); }
protected void assertWillUnassignPendingOperationCompleted(ShadowAsserter<Void> shadowRepoAsserter) { shadowRepoAsserter .pendingOperations() .by() .changeType(ChangeTypeType.DELETE) .find() .assertRequestTimestamp(accountWillSecondReqestTimestampStart, accountWillSecondReqestTimestampEnd) .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .assertResultStatus(OperationResultStatusType.SUCCESS) .assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd) .assertId() .end() .end(); }
@Override protected void assertWillUnassignPendingOperationExecuting(ShadowAsserter<Void> shadowRepoAsserter) { shadowRepoAsserter .pendingOperations() .by() .changeType(ChangeTypeType.MODIFY) .item(SchemaConstants.PATH_ACTIVATION_ADMINISTRATIVE_STATUS) .find() .assertRequestTimestamp(accountWillSecondReqestTimestampStart, accountWillSecondReqestTimestampEnd) .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.IN_PROGRESS) .assertId() .end() .end(); }
@Override protected void assertWillUnassignPendingOperationCompleted(ShadowAsserter<Void> shadowRepoAsserter) { shadowRepoAsserter .pendingOperations() .by() .changeType(ChangeTypeType.MODIFY) .item(SchemaConstants.PATH_ACTIVATION_ADMINISTRATIVE_STATUS) .find() .assertRequestTimestamp(accountWillSecondReqestTimestampStart, accountWillSecondReqestTimestampEnd) .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .assertResultStatus(OperationResultStatusType.SUCCESS) .assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd) .assertId() .end() .end(); }
ShadowAsserter.forShadow(repoShadow, "repo") .display() .pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) ShadowAsserter.forShadow(provisioningAccount, "provisioning") .display() .pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING)
.assertOid(accountWillOid) .assertDead() .pendingOperations() .assertNone();
ShadowAsserter.forShadow(repoShadow, "repo") .display() .pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) ShadowAsserter.forShadow(provisioningAccount, "provisioning") .display() .pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING)
.pendingOperations() .assertNone() .end();
@Test public void test190DeleteWill() throws Exception { final String TEST_NAME = "test190DeleteWill"; displayTestTitle(TEST_NAME); Task task = createTask(TEST_NAME); OperationResult result = task.getResult(); syncServiceMock.reset(); // WHEN displayWhen(TEST_NAME); provisioningService.deleteObject(ShadowType.class, ACCOUNT_WILL_OID, null, null, task, result); // THEN displayThen(TEST_NAME); assertSuccess(result); syncServiceMock.assertNotifySuccessOnly(); assertNoDummyAccount(transformNameFromResource(ACCOUNT_WILL_USERNAME), willIcfUid); assertRepoShadow(ACCOUNT_WILL_OID) .assertDead() .assertIsNotExists() .pendingOperations() .assertOperations(3) .deleteOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .delta() .assertDelete(); assertShadowProvisioning(ACCOUNT_WILL_OID) .assertTombstone(); assertSteadyResource(); }
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED)
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED)
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING)
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING)
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING)
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING)
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING)
.pendingOperations() .assertOperations(2) .modifyOperation()