Replace 'master' terminology with 'cluster manager' in 'plugins' directory (#3329)

* Replace 'master' terminology with 'cluster manager' in 'plugins' directory

Signed-off-by: Tianli Feng <ftianli@amazon.com>

* Replace master_node with cluster_manager_node in cluster.state API test

Signed-off-by: Tianli Feng <ftianli@amazon.com>
This commit is contained in:
Tianli Feng 2022-05-16 05:46:39 -07:00 committed by GitHub
parent 5a02949bbe
commit 8460bcf2ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 50 additions and 50 deletions

View File

@ -7,10 +7,10 @@
- do:
cluster.state: {}
# Get master node id
- set: { master_node: master }
# Get cluster-manager node id
- set: { cluster_manager_node: cluster_manager }
- do:
nodes.info: {}
- contains: { nodes.$master.plugins: { name: discovery-azure-classic } }
- contains: { nodes.$cluster_manager.plugins: { name: discovery-azure-classic } }

View File

@ -48,7 +48,7 @@ import static org.hamcrest.CoreMatchers.is;
*/
@ClusterScope(scope = Scope.TEST, numDataNodes = 0, numClientNodes = 0)
public class Ec2DiscoveryUpdateSettingsTests extends AbstractAwsTestCase {
public void testMinimumMasterNodesStart() {
public void testMinimumClusterManagerNodesStart() {
Settings nodeSettings = Settings.builder().put(DiscoveryModule.DISCOVERY_SEED_PROVIDERS_SETTING.getKey(), "ec2").build();
internalCluster().startNode(nodeSettings);

View File

@ -7,10 +7,10 @@
- do:
cluster.state: {}
# Get master node id
- set: { master_node: master }
# Get cluster-manager node id
- set: { cluster_manager_node: cluster_manager }
- do:
nodes.info: {}
- contains: { nodes.$master.plugins: { name: discovery-ec2 } }
- contains: { nodes.$cluster_manager.plugins: { name: discovery-ec2 } }

View File

@ -85,11 +85,11 @@ public class GceDiscoverTests extends OpenSearchIntegTestCase {
}
public void testJoin() {
// start master node
final String masterNode = internalCluster().startClusterManagerOnlyNode();
registerGceNode(masterNode);
// start cluster-manager node
final String clusterManagerNode = internalCluster().startClusterManagerOnlyNode();
registerGceNode(clusterManagerNode);
ClusterStateResponse clusterStateResponse = client(masterNode).admin()
ClusterStateResponse clusterStateResponse = client(clusterManagerNode).admin()
.cluster()
.prepareState()
.setMasterNodeTimeout("1s")

View File

@ -7,10 +7,10 @@
- do:
cluster.state: {}
# Get master node id
- set: { master_node: master }
# Get cluster-manager node id
- set: { cluster_manager_node: cluster_manager }
- do:
nodes.info: {}
- contains: { nodes.$master.plugins: { name: discovery-gce } }
- contains: { nodes.$cluster_manager.plugins: { name: discovery-gce } }

View File

@ -5,12 +5,12 @@
reason: "contains is a newly added assertion"
features: contains
# Get master node id
# Get cluster-manager node id
- do:
cluster.state: {}
- set: { master_node: master }
- set: { cluster_manager_node: cluster_manager }
- do:
nodes.info: {}
- contains: { nodes.$master.plugins: { name: custom-significance-heuristic } }
- contains: { nodes.$cluster_manager.plugins: { name: custom-significance-heuristic } }

View File

@ -7,10 +7,10 @@
- do:
cluster.state: {}
# Get master node id
- set: { master_node: master }
# Get cluster-manager node id
- set: { cluster_manager_node: cluster_manager }
- do:
nodes.info: {}
- contains: { nodes.$master.plugins: { name: custom-suggester } }
- contains: { nodes.$cluster_manager.plugins: { name: custom-suggester } }

View File

@ -7,10 +7,10 @@
- do:
cluster.state: {}
# Get master node id
- set: { master_node: master }
# Get cluster-manager node id
- set: { cluster_manager_node: cluster_manager }
- do:
nodes.info: {}
- contains: { nodes.$master.plugins: { name: painless-whitelist } }
- contains: { nodes.$cluster_manager.plugins: { name: painless-whitelist } }

View File

@ -7,10 +7,10 @@
- do:
cluster.state: {}
# Get master node id
- set: { master_node: master }
# Get cluster-manager node id
- set: { cluster_manager_node: cluster_manager }
- do:
nodes.info: {}
- contains: { nodes.$master.plugins: { name: example-rescore } }
- contains: { nodes.$cluster_manager.plugins: { name: example-rescore } }

View File

@ -7,10 +7,10 @@
- do:
cluster.state: {}
# Get master node id
- set: { master_node: master }
# Get cluster-manager node id
- set: { cluster_manager_node: cluster_manager }
- do:
nodes.info: {}
- contains: { nodes.$master.plugins: { name: script-expert-scoring } }
- contains: { nodes.$cluster_manager.plugins: { name: script-expert-scoring } }

View File

@ -5,10 +5,10 @@
- do:
cluster.state: {}
- set: {master_node: master}
- set: { cluster_manager_node: cluster_manager }
- do:
nodes.info: {}
- contains: { 'nodes.$master.plugins': { name: ingest-attachment } }
- contains: { 'nodes.$master.ingest.processors': { type: attachment } }
- contains: { 'nodes.$cluster_manager.plugins': { name: ingest-attachment } }
- contains: { 'nodes.$cluster_manager.ingest.processors': { type: attachment } }

View File

@ -7,10 +7,10 @@
- do:
cluster.state: {}
# Get master node id
- set: { master_node: master }
# Get cluster-manager node id
- set: { cluster_manager_node: cluster_manager }
- do:
nodes.info: {}
- contains: { nodes.$master.plugins: { name: repository-azure } }
- contains: { nodes.$cluster_manager.plugins: { name: repository-azure } }

View File

@ -7,10 +7,10 @@
- do:
cluster.state: {}
# Get master node id
- set: { master_node: master }
# Get cluster-manager node id
- set: { cluster_manager_node: cluster_manager }
- do:
nodes.info: {}
- contains: { nodes.$master.plugins: { name: repository-gcs } }
- contains: { nodes.$cluster_manager.plugins: { name: repository-gcs } }

View File

@ -9,13 +9,13 @@
- do:
cluster.state: {}
# Get master node id
- set: { master_node: master }
# Get cluster-manager node id
- set: { cluster_manager_node: cluster_manager }
- do:
nodes.info: {}
- contains: { nodes.$master.plugins: { name: repository-hdfs } }
- contains: { nodes.$cluster_manager.plugins: { name: repository-hdfs } }
---
#
# Check that we can't use file:// repositories or anything like that

View File

@ -9,13 +9,13 @@
- do:
cluster.state: {}
# Get master node id
- set: { master_node: master }
# Get cluster-manager node id
- set: { cluster_manager_node: cluster_manager }
- do:
nodes.info: {}
- contains: { nodes.$master.plugins: { name: repository-hdfs } }
- contains: { nodes.$cluster_manager.plugins: { name: repository-hdfs } }
---
#
# Check that we can't use file:// repositories or anything like that

View File

@ -7,10 +7,10 @@
- do:
cluster.state: {}
# Get master node id
- set: { master_node: master }
# Get cluster-manager node id
- set: { cluster_manager_node: cluster_manager }
- do:
nodes.info: {}
- contains: { nodes.$master.plugins: { name: repository-s3 } }
- contains: { nodes.$cluster_manager.plugins: { name: repository-s3 } }

View File

@ -7,10 +7,10 @@
- do:
cluster.state: {}
# Get master node id
- set: { master_node: master }
# Get cluster-manager node id
- set: { cluster_manager_node: cluster_manager }
- do:
nodes.info: {}
- contains: { nodes.$master.plugins: { name: store-smb } }
- contains: { nodes.$cluster_manager.plugins: { name: store-smb } }