.executionStatus(PendingOperationExecutionStatusType.COMPLETED) .find() .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .assertResultStatus(OperationResultStatusType.SUCCESS) .assertAsynchronousOperationReference(jackLastTicketIdentifier) .delta() .assertAdd() .end() .assertId() .assertType(PendingOperationTypeType.MANUAL) .end() .by() .executionStatus(PendingOperationExecutionStatusType.EXECUTING) .find() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.FATAL_ERROR) .assertAttemptNumber(1) .delta() .assertDelete() .end() .assertId() .assertType(PendingOperationTypeType.RETRY) .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(); }
protected void assertWillRepoShadowAfterCreate(PrismObject<ShadowType> repoShadow) { ShadowAsserter.forShadow(repoShadow, "repo") .assertActiveLifecycleState() .pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .delta() .assertAdd(); }
.pendingOperations() .singleOperation() .display() .assertType(PendingOperationTypeType.RETRY) .assertRequestTimestamp(lastRequestStartTs, lastRequestEndTs) .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.FATAL_ERROR) .assertOperationStartTimestamp(lastRequestStartTs, lastRequestEndTs) .assertAttemptNumber(expectedAttemptNumber) .assertLastAttemptTimestamp(lastAttemptStartTs, lastAttemptEndTs) .delta() .display() .assertAdd(); .pendingOperations() .singleOperation() .assertType(PendingOperationTypeType.RETRY) .assertRequestTimestamp(lastRequestStartTs, lastRequestEndTs) .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.FATAL_ERROR) .assertOperationStartTimestamp(lastRequestStartTs, lastRequestEndTs) .assertAttemptNumber(expectedAttemptNumber) .assertLastAttemptTimestamp(lastAttemptStartTs, lastAttemptEndTs) .delta() .assertAdd();
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .assertResultStatus(OperationResultStatusType.SUCCESS) .assertAsynchronousOperationReference(jackLastTicketIdentifier) .delta() .assertAdd() .end() .assertId() .assertType(PendingOperationTypeType.MANUAL);
.pendingOperations() .singleOperation() .assertId() .assertRequestTimestamp(accountWillReqestTimestampStart, accountWillReqestTimestampEnd) .assertExecutionStatus(getExpectedExecutionStatus(propagationExecutionStage)) .delta() .display() .end() .end() .end() .attributes() .pendingOperations() .singleOperation() .assertRequestTimestamp(accountWillReqestTimestampStart, accountWillReqestTimestampEnd) .assertExecutionStatus(getExpectedExecutionStatus(propagationExecutionStage)) .end() .end(); assertAttributeFromCache(shadowModelAsserter, ATTR_FULLNAME_QNAME, expectedFullName); shadowModelAsserter.pendingOperations().singleOperation().getOperation(), propagationExecutionStage);
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.FATAL_ERROR) .delta() .assertDelete(); .pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.FATAL_ERROR) .delta() .assertDelete();
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTION_PENDING); .pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .assertResultStatus(OperationResultStatusType.FATAL_ERROR) .assertHasCompletionTimestamp() .delta() .assertAdd() .end() .end() .end() .end() .pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTION_PENDING) .delta() .assertModify() .assertHasModification(ItemPath.create(ShadowType.F_ATTRIBUTES, new QName(MidPointConstants.NS_RI, "fullname"))) .end() .end() .end() .end() .pendingOperations()
.pendingOperations() .singleOperation() .assertId() .assertType(PendingOperationTypeType.MANUAL) .assertRequestTimestamp(accountWillReqestTimestampStart, accountWillReqestTimestampEnd) .end() .end() .attributes() .pendingOperations() .singleOperation() .assertId() .assertType(PendingOperationTypeType.MANUAL) .assertRequestTimestamp(accountWillReqestTimestampStart, accountWillReqestTimestampEnd) .end() .end() .attributes()
.changeType(ChangeTypeType.ADD) .find() .delta() .display() .end() .end() .by() .changeType(ChangeTypeType.MODIFY) .find() .assertAsynchronousOperationReference(willSecondLastCaseOid) .end() .end() .attributes()
.changeType(ChangeTypeType.DELETE) .find() .display() .assertRequestTimestamp(lastRequestStartTs, lastRequestEndTs) .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .assertResultStatus(OperationResultStatusType.SUCCESS) .assertOperationStartTimestamp(lastRequestStartTs, lastRequestEndTs) .assertAttemptNumber(expectedAttemptNumber) .assertLastAttemptTimestamp(lastAttemptStartTs, lastAttemptEndTs) .delta() .display() .assertDelete(); .changeType(ChangeTypeType.DELETE) .find() .assertRequestTimestamp(lastRequestStartTs, lastRequestEndTs) .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .assertResultStatus(OperationResultStatusType.SUCCESS) .assertOperationStartTimestamp(lastRequestStartTs, lastRequestEndTs) .assertAttemptNumber(expectedAttemptNumber) .assertLastAttemptTimestamp(lastAttemptStartTs, lastAttemptEndTs) .delta() .assertDelete();
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.FATAL_ERROR) .assertAttemptNumber(1) .delta() .assertAdd() .end() .assertId() .assertType(PendingOperationTypeType.RETRY);
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.FATAL_ERROR) .delta() .assertModify(); .pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.FATAL_ERROR) .delta() .assertModify();
@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(); }
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(); }
.pendingOperations() .singleOperation() .display() .assertType(PendingOperationTypeType.RETRY) .assertRequestTimestamp(lastRequestStartTs, lastRequestEndTs) .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .assertResultStatus(OperationResultStatusType.SUCCESS) .assertOperationStartTimestamp(lastRequestStartTs, lastRequestEndTs) .assertAttemptNumber(expectedAttemptNumber) .assertLastAttemptTimestamp(lastAttemptStartTs, lastAttemptEndTs) .assertCompletionTimestamp(lastAttemptStartTs, lastAttemptEndTs) .delta() .display() .assertAdd(); .pendingOperations() .singleOperation() .assertType(PendingOperationTypeType.RETRY) .assertRequestTimestamp(lastRequestStartTs, lastRequestEndTs) .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .assertResultStatus(OperationResultStatusType.SUCCESS) .assertOperationStartTimestamp(lastRequestStartTs, lastRequestEndTs) .assertAttemptNumber(expectedAttemptNumber) .assertLastAttemptTimestamp(lastAttemptStartTs, lastAttemptEndTs) .assertCompletionTimestamp(lastAttemptStartTs, lastAttemptEndTs) .delta() .assertAdd();
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.IN_PROGRESS) .delta() .assertDelete() .end() .assertId() .assertType(PendingOperationTypeType.MANUAL) .end();
.pendingOperations() .singleOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.EXECUTING) .assertResultStatus(OperationResultStatusType.FATAL_ERROR) .delta() .assertAdd();
.assertOperations(2) .modifyOperation() .assertExecutionStatus(PendingOperationExecutionStatusType.COMPLETED) .delta() .assertModify();