Skip to content

Commit

Permalink
Fix for MID-4198, second round.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Oct 20, 2017
1 parent 90a7dea commit 2018242
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Expand Up @@ -374,12 +374,10 @@ public void onUnchangedInvalid(ResourceShadowDiscriminator rat, String desc) {
if (projectionContext == null) {
if (processOnlyExistingProjCxts) {
LOGGER.trace("Projection {} skip: unchanged (invalid), processOnlyExistingProjCxts", desc);
return;
} else {
LOGGER.trace("Projection {} skip: unchanged (invalid) and does not exist in current lens context", desc);
}
// The projection should exist before the change but it does not
// This happens during reconciliation if there is an inconsistency.
// Pretend that the assignment was just added. That should do.
projectionContext = LensUtil.getOrCreateProjectionContext(context, rat);
return;
}
LOGGER.trace("Projection {} illegal: unchanged (invalid)", desc);
projectionContext.setLegal(false);
Expand Down
Expand Up @@ -1806,7 +1806,7 @@ public void test250JackAssignFocusExistsResource() throws Exception {
/**
* MID-4198 "Disabled assignments project value in certain cases"
*/
@Test(enabled = false)
@Test
public void test252RecomputeJack() throws Exception {
final String TEST_NAME = "test252RecomputeJack";
displayTestTitle(TEST_NAME);
Expand Down Expand Up @@ -1836,7 +1836,7 @@ public void test252RecomputeJack() throws Exception {
/**
* MID-4198 "Disabled assignments project value in certain cases"
*/
@Test(enabled = false)
@Test
public void test254ReconcileJack() throws Exception {
final String TEST_NAME = "test254ReconcileJack";
displayTestTitle(TEST_NAME);
Expand Down

0 comments on commit 2018242

Please sign in to comment.