The following functions have been implemented in this RP:
get_master_node(): returns the master node.
get_worker_nodes(): returns a list of worker nodes
get_node_type(): returns node type
As the deployer used for these tests does not support more than one master (although in the future there could be environments with several masters), it has been assumed that there can only be one master node.
Also, it is not necessary to check if the environment is a cluster or not to obtain the master node, since if it is a single-node, it is also a master.
Description
The following functions have been implemented in this RP:
get_master_node()
: returns the master node.get_worker_nodes()
: returns a list of worker nodesget_node_type()
: returns node typeAs the deployer used for these tests does not support more than one master (although in the future there could be environments with several masters), it has been assumed that there can only be one master node.
Also, it is not necessary to check if the environment is a cluster or not to obtain the master node, since if it is a single-node, it is also a master.