File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
integration-tests/src/test/java/com/datastax/oss/driver/core Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ public void should_downgrade_to_v3_dse() {
66
66
67
67
@ CassandraRequirement (
68
68
min = "2.2" ,
69
- max = "4.0" ,
70
- description = "Only C* in [2.2,4.0[ has V4 as its highest version" )
69
+ max = "4.0-rc1 " ,
70
+ description = "Only C* in [2.2,4.0-rc1 [ has V4 as its highest version" )
71
71
@ Test
72
72
public void should_downgrade_to_v4_oss () {
73
73
Assume .assumeFalse ("This test is only for OSS C*" , ccm .getDseVersion ().isPresent ());
@@ -77,6 +77,18 @@ public void should_downgrade_to_v4_oss() {
77
77
}
78
78
}
79
79
80
+ @ CassandraRequirement (
81
+ min = "4.0-rc1" ,
82
+ description = "Only C* in [4.0-rc1,*[ has V5 as its highest version" )
83
+ @ Test
84
+ public void should_downgrade_to_v5_oss () {
85
+ Assume .assumeFalse ("This test is only for OSS C*" , ccm .getDseVersion ().isPresent ());
86
+ try (CqlSession session = SessionUtils .newSession (ccm )) {
87
+ assertThat (session .getContext ().getProtocolVersion ().getCode ()).isEqualTo (5 );
88
+ session .execute ("select * from system.local" );
89
+ }
90
+ }
91
+
80
92
@ DseRequirement (
81
93
min = "5.0" ,
82
94
max = "5.1" ,
@@ -142,8 +154,8 @@ public void should_fail_if_provided_v4_is_not_supported_dse() {
142
154
143
155
@ CassandraRequirement (
144
156
min = "2.1" ,
145
- max = "4.0" ,
146
- description = "Only C* in [2.1,4.0[ has V5 unsupported or supported as beta" )
157
+ max = "4.0-rc1 " ,
158
+ description = "Only C* in [2.1,4.0-rc1 [ has V5 unsupported or supported as beta" )
147
159
@ Test
148
160
public void should_fail_if_provided_v5_is_not_supported_oss () {
149
161
Assume .assumeFalse ("This test is only for OSS C*" , ccm .getDseVersion ().isPresent ());
You can’t perform that action at this time.
0 commit comments