From 46c530d673bff3470d6c137275604d4f86b78f0f Mon Sep 17 00:00:00 2001 From: Suraj Singh Date: Wed, 20 Dec 2023 11:26:08 -0800 Subject: [PATCH] Use appropriate variable names Signed-off-by: Suraj Singh --- .../cluster/metadata/MetadataCreateIndexServiceTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/test/java/org/opensearch/cluster/metadata/MetadataCreateIndexServiceTests.java b/server/src/test/java/org/opensearch/cluster/metadata/MetadataCreateIndexServiceTests.java index d48eb62f0697b..cea151748bfb6 100644 --- a/server/src/test/java/org/opensearch/cluster/metadata/MetadataCreateIndexServiceTests.java +++ b/server/src/test/java/org/opensearch/cluster/metadata/MetadataCreateIndexServiceTests.java @@ -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( @@ -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,