Skip to content

Commit

Permalink
Split testTransformUpdateRewrite into two parts: non-dryrun and dryrun.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemekwitek committed Dec 14, 2021
1 parent 86bebcb commit 19a20fd
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,11 @@ public void testTransformUpdateRewrite() throws InterruptedException {
assertEquals(stateDoc.getTransformStats(), storedDocAndVersion.v1().getTransformStats());
}
);
}

public void testTransformUpdateDryRun() throws InterruptedException {
InMemoryTransformConfigManager transformConfigManager = new InMemoryTransformConfigManager();

// same as dry run
TransformConfig oldConfigForDryRunUpdate = TransformConfigTests.randomTransformConfig(
randomAlphaOfLengthBetween(1, 10),
VersionUtils.randomVersionBetween(
Expand All @@ -277,6 +280,7 @@ public void testTransformUpdateRewrite() throws InterruptedException {
config -> {}
);

TransformConfigUpdate update = TransformConfigUpdate.EMPTY;
assertUpdate(
listener -> TransformUpdater.updateTransform(
securityContext,
Expand Down

0 comments on commit 19a20fd

Please sign in to comment.