@@ -65,7 +65,7 @@ public void testSerialization() throws Exception {
6565 public void testBwcSerialization () throws Exception {
6666 for (int runs = 0 ; runs < randomIntBetween (5 , 20 ); runs ++) {
6767 // Generate a random cluster block in version < 7.0.0
68- final Version version = randomVersionBetween (random (), Version .V_6_0_0 , getPreviousVersion (Version .V_7_0_0 ));
68+ final Version version = randomVersionBetween (random (), Version .V_6_0_0 , getPreviousVersion (Version .V_6_7_0 ));
6969 final ClusterBlock expected = randomClusterBlock (version );
7070 assertNull (expected .uuid ());
7171
@@ -84,7 +84,7 @@ public void testBwcSerialization() throws Exception {
8484
8585 // Serialize to node in version < 7.0.0
8686 final BytesStreamOutput out = new BytesStreamOutput ();
87- out .setVersion (randomVersionBetween (random (), Version .V_6_0_0 , getPreviousVersion (Version .V_7_0_0 )));
87+ out .setVersion (randomVersionBetween (random (), Version .V_6_0_0 , getPreviousVersion (Version .V_6_7_0 )));
8888 expected .writeTo (out );
8989
9090 // Deserialize and check the cluster block
@@ -171,7 +171,7 @@ private ClusterBlock randomClusterBlock() {
171171 }
172172
173173 private ClusterBlock randomClusterBlock (final Version version ) {
174- final String uuid = (version .onOrAfter (Version .V_7_0_0 ) && randomBoolean ()) ? UUIDs .randomBase64UUID () : null ;
174+ final String uuid = (version .onOrAfter (Version .V_6_7_0 ) && randomBoolean ()) ? UUIDs .randomBase64UUID () : null ;
175175 final List <ClusterBlockLevel > levels = Arrays .asList (ClusterBlockLevel .values ());
176176 return new ClusterBlock (randomInt (), uuid , "cluster block #" + randomInt (), randomBoolean (), randomBoolean (), randomBoolean (),
177177 randomFrom (RestStatus .values ()), copyOf (randomSubsetOf (randomIntBetween (1 , levels .size ()), levels )));
0 commit comments