Skip to content

Commit

Permalink
Use appropriate variable names
Browse files Browse the repository at this point in the history
Signed-off-by: Suraj Singh <[email protected]>
  • Loading branch information
dreamer-89 committed Dec 20, 2023
1 parent 81d63ba commit 46c530d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1250,11 +1250,11 @@ public void testClusterForceReplicationTypeInAggregateSettings() {
.put(CLUSTER_INDEX_RESTRICT_REPLICATION_TYPE_SETTING.getKey(), true)
.build();
ClusterSettings clusterSettings = new ClusterSettings(settings, ClusterSettings.BUILT_IN_CLUSTER_SETTINGS);
Settings matchingReplicationIndexSettings = Settings.builder()
Settings nonMatchingReplicationIndexSettings = Settings.builder()
.put(INDEX_REPLICATION_TYPE_SETTING.getKey(), ReplicationType.DOCUMENT)
.build();
request = new CreateIndexClusterStateUpdateRequest("create index", "test", "test");
request.settings(matchingReplicationIndexSettings);
request.settings(nonMatchingReplicationIndexSettings);
IndexCreationException exception = expectThrows(
IndexCreationException.class,
() -> aggregateIndexSettings(
Expand All @@ -1271,10 +1271,10 @@ public void testClusterForceReplicationTypeInAggregateSettings() {
);
assertEquals(REPLICATION_MISMATCH_VALIDATION_ERROR, exception.getCause().getMessage());

Settings nonMatchingReplicationIndexSettings = Settings.builder()
Settings matchingReplicationIndexSettings = Settings.builder()
.put(INDEX_REPLICATION_TYPE_SETTING.getKey(), ReplicationType.SEGMENT)
.build();
request.settings(nonMatchingReplicationIndexSettings);
request.settings(matchingReplicationIndexSettings);
Settings aggregateIndexSettings = aggregateIndexSettings(
ClusterState.EMPTY_STATE,
request,
Expand Down

0 comments on commit 46c530d

Please sign in to comment.