Skip to content

Commit

Permalink
496: Removed unused map property in metada alias rollover tests
Browse files Browse the repository at this point in the history
Signed-off-by: Stevan Buzejic <[email protected]>
  • Loading branch information
stevanbuzejic committed Sep 13, 2022
1 parent 3b5f890 commit ca21dc5
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,9 @@ public void testRolloverAliasActionsWithFilterAndExplicitWriteIndex() {
String sourceAlias = randomAlphaOfLength(10);
String sourceIndex = randomAlphaOfLength(10);
String targetIndex = randomAlphaOfLength(10);
Map filter = Collections.singletonMap(randomAlphaOfLength(2), randomAlphaOfLength(2));
String indexRouting = randomAlphaOfLength(10);
String sourceRouting = randomAlphaOfLength(10);
AliasMetadata aliasMetadata = createAliasMetadata(sourceAlias, filter, indexRouting, sourceRouting, true);
AliasMetadata aliasMetadata = createAliasMetadata(sourceAlias, Collections.singletonMap(randomAlphaOfLength(2), randomAlphaOfLength(2)), indexRouting, sourceRouting, true);

List<AliasAction> actions = MetadataRolloverService.rolloverAliasToNewIndex(sourceIndex, targetIndex, true, aliasMetadata, sourceAlias);

Expand Down Expand Up @@ -244,10 +243,9 @@ public void testRolloverAliasActionsWithFilterAndHiddenAliasAndImplicitWriteInde
String sourceAlias = randomAlphaOfLength(10);
String sourceIndex = randomAlphaOfLength(10);
String targetIndex = randomAlphaOfLength(10);
Map filter = Collections.singletonMap(randomAlphaOfLength(2), randomAlphaOfLength(2));
String indexRouting = randomAlphaOfLength(10);
String sourceRouting = randomAlphaOfLength(10);
AliasMetadata aliasMetadata = createAliasMetadata(sourceAlias, filter, indexRouting, sourceRouting, true);
AliasMetadata aliasMetadata = createAliasMetadata(sourceAlias, Collections.singletonMap(randomAlphaOfLength(2), randomAlphaOfLength(2)), indexRouting, sourceRouting, true);

List<AliasAction> actions = MetadataRolloverService.rolloverAliasToNewIndex(sourceIndex, targetIndex, false, aliasMetadata, sourceAlias);

Expand Down

0 comments on commit ca21dc5

Please sign in to comment.