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:
parent
5a02949bbe
commit
8460bcf2ec
|
@ -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 } }
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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 } }
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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 } }
|
||||
|
|
|
@ -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 } }
|
||||
|
|
|
@ -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 } }
|
||||
|
|
|
@ -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 } }
|
||||
|
|
|
@ -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 } }
|
||||
|
|
|
@ -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 } }
|
||||
|
|
|
@ -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 } }
|
||||
|
|
|
@ -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 } }
|
||||
|
|
|
@ -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 } }
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 } }
|
||||
|
|
|
@ -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 } }
|
||||
|
|
Loading…
Reference in New Issue