Skip to content

Commit 704f00c

Browse files
author
Tianli Feng
committed
Replace NoMasterBlock with NoClusterManagerBlock in test method names in server/src/test
Signed-off-by: Tianli Feng <[email protected]>
1 parent 51d5007 commit 704f00c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

server/src/test/java/org/opensearch/cluster/coordination/CoordinatorTests.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,31 +1121,31 @@ public void testStayCandidateAfterReceivingFollowerCheckFromKnownClusterManager(
11211121
}
11221122
}
11231123

1124-
public void testAppliesNoMasterBlockWritesByDefault() {
1125-
testAppliesNoMasterBlock(null, NO_MASTER_BLOCK_WRITES);
1124+
public void testAppliesNoClusterManagerBlockWritesByDefault() {
1125+
testAppliesNoClusterManagerBlock(null, NO_MASTER_BLOCK_WRITES);
11261126
}
11271127

1128-
public void testAppliesNoMasterBlockWritesIfConfigured() {
1129-
testAppliesNoMasterBlock("write", NO_MASTER_BLOCK_WRITES);
1128+
public void testAppliesNoClusterManagerBlockWritesIfConfigured() {
1129+
testAppliesNoClusterManagerBlock("write", NO_MASTER_BLOCK_WRITES);
11301130
}
11311131

1132-
public void testAppliesNoMasterBlockAllIfConfigured() {
1133-
testAppliesNoMasterBlock("all", NO_MASTER_BLOCK_ALL);
1132+
public void testAppliesNoClusterManagerBlockAllIfConfigured() {
1133+
testAppliesNoClusterManagerBlock("all", NO_MASTER_BLOCK_ALL);
11341134
}
11351135

1136-
public void testAppliesNoMasterBlockMetadataWritesIfConfigured() {
1137-
testAppliesNoMasterBlock("metadata_write", NO_MASTER_BLOCK_METADATA_WRITES);
1136+
public void testAppliesNoClusterManagerBlockMetadataWritesIfConfigured() {
1137+
testAppliesNoClusterManagerBlock("metadata_write", NO_MASTER_BLOCK_METADATA_WRITES);
11381138
}
11391139

1140-
private void testAppliesNoMasterBlock(String noMasterBlockSetting, ClusterBlock expectedBlock) {
1140+
private void testAppliesNoClusterManagerBlock(String noClusterManagerBlockSetting, ClusterBlock expectedBlock) {
11411141
try (Cluster cluster = new Cluster(3)) {
11421142
cluster.runRandomly();
11431143
cluster.stabilise();
11441144

11451145
final ClusterNode leader = cluster.getAnyLeader();
11461146
leader.submitUpdateTask("update NO_CLUSTER_MANAGER_BLOCK_SETTING", cs -> {
11471147
final Builder settingsBuilder = Settings.builder().put(cs.metadata().persistentSettings());
1148-
settingsBuilder.put(NO_CLUSTER_MANAGER_BLOCK_SETTING.getKey(), noMasterBlockSetting);
1148+
settingsBuilder.put(NO_CLUSTER_MANAGER_BLOCK_SETTING.getKey(), noClusterManagerBlockSetting);
11491149
return ClusterState.builder(cs)
11501150
.metadata(Metadata.builder(cs.metadata()).persistentSettings(settingsBuilder.build()))
11511151
.build();

0 commit comments

Comments
 (0)