Open
Description
Currently, several tests depend on the cluster state API to wait for a master node to be present in the cluster state - see this snippet in SpecificMasterNodesIT
for example.
To allow TransportClusterStateAction
to run on the local node (as part of #101805), we are removing the functionality of waiting for the master node. Therefore, we need to remove the dependency of these tests on that functionality. Addtionally, the cluster state API is not supposed to be used in production, meaning that these tests are the only real use case for waiting on the master node. We have different tools available in the test framework that allow us to wait for the master node.