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() .assertNone() .end(); assertUnassignedShadow(shadowRepoAsserter, true, null);
.assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd) .end() .end(); assertUnassignedShadow(shadowRepoAsserter, false, null); .assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd) .end() .end(); assertUnassignedShadow(shadowModelAsserter, false, ActivationStatusType.ENABLED); // backing store not yet updated assertShadowPassword(shadowModelAsserter);
.assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd) .end() .end(); assertUnassignedShadow(shadowRepoAsserter, true, null);
.assertCompletionTimestamp(accountJackCompletionTimestampStart, accountJackCompletionTimestampEnd) .end() .end(); assertUnassignedShadow(shadowRepoAsserter, true, null); .assertCompletionTimestamp(accountJackCompletionTimestampStart, accountJackCompletionTimestampEnd) .end() .end(); assertUnassignedShadow(shadowModelAsserter, true, ActivationStatusType.DISABLED);
.assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd) .end() .end(); assertUnassignedShadow(shadowRepoAsserter, true, null); .assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd) .end() .end(); assertUnassignedShadow(shadowModelAsserterNoFetch, true, null);
.assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd) .end() .end(); assertUnassignedShadow(shadowRepoAsserter, false, null); .assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd) .end() .end(); assertUnassignedShadow(shadowModelAsserter, false, ActivationStatusType.ENABLED); // backing store not yet updated assertShadowPassword(shadowModelAsserter);
.end() .end() .end() .attributes() .assertValue(ATTR_USERNAME_QNAME, USER_WILL_NAME) .assertExecutionStatus(getExpectedExecutionStatus(propagationExecutionStage)) .end() .end(); assertAttributeFromCache(shadowModelAsserter, ATTR_FULLNAME_QNAME, expectedFullName); assertShadowActivationAdministrativeStatusFromCache(shadowModelAsserter.getObject(), ActivationStatusType.ENABLED);
.assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd) .end() .end() .attributes() .assertValue(ATTR_USERNAME_QNAME, USER_WILL_NAME) .assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd) .end() .end(); assertAttributeFromBackingStore(shadowModelAsserter, ATTR_DESCRIPTION_QNAME, ACCOUNT_WILL_DESCRIPTION_MANUAL); assertShadowPassword(shadowModelAsserter);
.pendingOperations() .assertOperations(2) .end(); assertAttributeFromBackingStore(shadowModelAsserter, ATTR_DESCRIPTION_QNAME, ACCOUNT_WILL_DESCRIPTION_MANUAL); assertShadowPassword(shadowModelAsserter);
.pendingOperations() .assertOperations(3) .end(); assertAttributeFromBackingStore(shadowModelAsserter, ATTR_DESCRIPTION_QNAME, ACCOUNT_WILL_DESCRIPTION_MANUAL); assertShadowPassword(shadowModelAsserter);
.assertCompletionTimestamp(accountWillCompletionTimestampStart, accountWillCompletionTimestampEnd) .end() .end() .attributes() .assertValue(ATTR_USERNAME_QNAME, USER_WILL_NAME)
.assertId() .end() .end(); assertWillUnassignPendingOperationCompleted(shadowRepoAsserter); assertUnassignedShadow(shadowRepoAsserter, true, null);
.assertId() .end() .end() .attributes() .assertValue(ATTR_USERNAME_QNAME, USER_WILL_NAME)
.pendingOperations() .assertNone() .end() .end() .currentShadow()
.pendingOperations() .assertNone() .end() .end() .currentShadow()
.assertAsynchronousOperationReference(willSecondLastCaseOid) .end() .end() .attributes() .assertValue(ATTR_USERNAME_QNAME, USER_WILL_NAME)