protected void assertWillRepoShadowAfterCreate(PrismObject<ShadowType> repoShadow) { ShadowAsserter.forShadow(repoShadow, "repo") .assertActiveLifecycleState() .pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .delta() .assertAdd(); }
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(); }
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.FATAL_ERROR) .delta() .pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.FATAL_ERROR) .delta()
.singleOperation() .assertRequestTimestamp(accountWillReqestTimestampStart, accountWillReqestTimestampEnd) .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .assertResultStatus(OperationResultStatusType.SUCCESS) .assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd); .singleOperation() .assertRequestTimestamp(accountWillReqestTimestampStart, accountWillReqestTimestampEnd) .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .assertResultStatus(OperationResultStatusType.SUCCESS) .assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd);
.singleOperation() .assertRequestTimestamp(accountWillReqestTimestampStart, accountWillReqestTimestampEnd) .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .assertResultStatus(OperationResultStatusType.SUCCESS) .assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd); .singleOperation() .assertRequestTimestamp(accountWillReqestTimestampStart, accountWillReqestTimestampEnd) .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .assertResultStatus(OperationResultStatusType.SUCCESS) .assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd);
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.FATAL_ERROR) .delta() .pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.FATAL_ERROR) .delta()
.singleOperation() .assertRequestTimestamp(accountWillReqestTimestampStart, accountWillReqestTimestampEnd) .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .assertResultStatus(OperationResultStatusType.SUCCESS) .assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd); .singleOperation() .assertRequestTimestamp(accountWillReqestTimestampStart, accountWillReqestTimestampEnd) .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .assertResultStatus(OperationResultStatusType.SUCCESS) .assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd);
@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) .assertResultStatus(OperationResultStatusType.SUCCESS) .assertAsynchronousOperationReference(jackLastTicketIdentifier)
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .assertResultStatus(OperationResultStatusType.SUCCESS) .delta()
.singleOperation() .assertRequestTimestamp(accountWillReqestTimestampStart, accountWillReqestTimestampEnd) .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .assertResultStatus(OperationResultStatusType.SUCCESS) .assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd)
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.FATAL_ERROR) .assertAttemptNumber(1)
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.IN_PROGRESS) .assertAsynchronousOperationReference(jackLastTicketIdentifier)
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.IN_PROGRESS) .delta()
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.IN_PROGRESS) .assertAsynchronousOperationReference(jackLastTicketIdentifier)
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.IN_PROGRESS) .delta()
.assertOperations(2) .modifyOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .delta() .assertModify();