Skip to content

Commit

Permalink
Fix the code after recent changes
Browse files Browse the repository at this point in the history
(and adapt failing test)
  • Loading branch information
mederly committed Mar 13, 2019
1 parent b2ff7f1 commit 8e69471
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Expand Up @@ -724,6 +724,7 @@ private <F extends FocusType> void reactToChange(SynchronizationContext<F> syncC
if (syncCtx.getReaction() == null) {
LOGGER.trace("No reaction is defined for situation {} in {}", syncCtx.getSituation(), syncCtx.getResource());
eventInfo.setNewSituation(newSituation);
return;
}

Boolean doReconciliation = syncCtx.isDoReconciliation();
Expand Down
Expand Up @@ -109,7 +109,7 @@ public void test010ListConnectors() throws Exception {
result.computeStatus();
TestUtil.assertSuccess("getObject result", result);

assertEquals("Unexpected number of connectors", 10, connectors.size());
assertEquals("Unexpected number of connectors", 11, connectors.size());
for(PrismObject<ConnectorType> connector: connectors) {
display("Connector", connector);
ConnectorType connectorType = connector.asObjectable();
Expand Down
Expand Up @@ -2688,8 +2688,8 @@ private void preProcessChange(ProvisioningContext ctx, Change change, OperationR

if (change.getOldShadow() == null) {
PrismObject<ShadowType> repoShadow = shadowManager.findOrAddShadowFromChange(ctx, change, parentResult);
shadowCaretaker.applyAttributesDefinition(ctx, repoShadow);
if (repoShadow != null) {
shadowCaretaker.applyAttributesDefinition(ctx, repoShadow);
change.setOldShadow(repoShadow);
} else {
assert change.isDelete();
Expand Down

0 comments on commit 8e69471

Please sign in to comment.