Skip to content

Commit fb669f3

Browse files
committed
now that the repos are combined, they can be fixed together!
1 parent 64f49f5 commit fb669f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

x-pack/plugin/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/collector/cluster/ClusterStatsMonitoringDocTests.java

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import org.elasticsearch.cluster.ClusterName;
1818
import org.elasticsearch.cluster.ClusterState;
1919
import org.elasticsearch.cluster.health.ClusterHealthStatus;
20+
import org.elasticsearch.cluster.metadata.MetaData;
2021
import org.elasticsearch.cluster.node.DiscoveryNode;
2122
import org.elasticsearch.cluster.node.DiscoveryNodes;
2223
import org.elasticsearch.cluster.routing.ShardRouting;
@@ -188,6 +189,7 @@ public void testNodesHash() {
188189

189190
@Override
190191
public void testToXContent() throws IOException {
192+
final String clusterUuid = "_cluster";
191193
final ClusterName clusterName = new ClusterName("_cluster_name");
192194
final TransportAddress transportAddress = new TransportAddress(TransportAddress.META_ADDRESS, 9300);
193195
final DiscoveryNode discoveryNode = new DiscoveryNode("_node_name",
@@ -201,6 +203,7 @@ public void testToXContent() throws IOException {
201203
Version.V_6_0_0_beta1);
202204

203205
final ClusterState clusterState = ClusterState.builder(clusterName)
206+
.metaData(MetaData.builder().clusterUUID(clusterUuid).build())
204207
.stateUUID("_state_uuid")
205208
.version(12L)
206209
.nodes(DiscoveryNodes.builder()
@@ -500,6 +503,7 @@ public void testToXContent() throws IOException {
500503
+ "\"cluster_state\":{"
501504
+ "\"nodes_hash\":1314980060,"
502505
+ "\"status\":\"green\","
506+
+ "\"cluster_uuid\":\"_cluster\","
503507
+ "\"version\":12,"
504508
+ "\"state_uuid\":\"_state_uuid\","
505509
+ "\"master_node\":\"_node\","

0 commit comments

Comments
 (0)