Skip to content

Commit 02faa6d

Browse files
aboudreaultTheRealFalcon
authored andcommitted
Add C* 4.0 testing
1 parent 2716214 commit 02faa6d

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

build.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ schedules:
4646
EXCLUDE_LONG=1
4747
matrix:
4848
exclude:
49-
- python: [2.7, 3.4, 3.7, 3.8]
50-
- cassandra: ['2.0', '2.1', '2.2', '3.0', 'test-dse', dse-4.8', 'dse-5.0']
49+
- python: [2.7, 3.4, 3.7, 3.6, 3.8]
50+
- cassandra: ['2.0', '2.1', '2.2', '3.0', '3.11', 'test-dse', 'dse-4.8', 'dse-5.0', 'dse-6.0', 'dse-6.7', 'dse-6.8']
5151

5252
release_test:
5353
schedule: per_commit
@@ -157,6 +157,7 @@ cassandra:
157157
- '2.2'
158158
- '3.0'
159159
- '3.11'
160+
- '4.0'
160161
- 'dse-4.8'
161162
- 'dse-5.0'
162163
- 'dse-5.1'

tests/integration/__init__.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def _get_dse_version_from_cass(cass_version):
178178
cassandra_version = Version(mcv_string)
179179

180180
CASSANDRA_VERSION = Version(mcv_string) if mcv_string else cassandra_version
181-
CCM_VERSION = cassandra_version if mcv_string else CASSANDRA_VERSION
181+
CCM_VERSION = mcv_string or cv_string
182182

183183
CASSANDRA_IP = os.getenv('CLUSTER_IP', '127.0.0.1')
184184
CASSANDRA_DIR = os.getenv('CASSANDRA_DIR', None)
@@ -476,15 +476,9 @@ def use_cluster(cluster_name, nodes, ipformat=None, start=True, workloads=None,
476476
elif ccm_options is None:
477477
ccm_options = CCM_KWARGS.copy()
478478

479-
if 'version' in ccm_options and not isinstance(ccm_options['version'], Version):
480-
ccm_options['version'] = Version(ccm_options['version'])
481-
482479
cassandra_version = ccm_options.get('version', CCM_VERSION)
483480
dse_version = ccm_options.get('version', DSE_VERSION)
484481

485-
if 'version' in ccm_options:
486-
ccm_options['version'] = ccm_options['version'].base_version
487-
488482
global CCM_CLUSTER
489483
if USE_CASS_EXTERNAL:
490484
if CCM_CLUSTER:
@@ -533,7 +527,7 @@ def use_cluster(cluster_name, nodes, ipformat=None, start=True, workloads=None,
533527
CCM_CLUSTER = DseCluster(path, cluster_name, **ccm_options)
534528
CCM_CLUSTER.set_configuration_options({'start_native_transport': True})
535529
CCM_CLUSTER.set_configuration_options({'batch_size_warn_threshold_in_kb': 5})
536-
if dse_version >= Version('5.0'):
530+
if Version(dse_version) >= Version('5.0'):
537531
CCM_CLUSTER.set_configuration_options({'enable_user_defined_functions': True})
538532
CCM_CLUSTER.set_configuration_options({'enable_scripted_user_defined_functions': True})
539533
if dse_version >= Version('5.1'):
@@ -555,7 +549,7 @@ def use_cluster(cluster_name, nodes, ipformat=None, start=True, workloads=None,
555549
})
556550
if 'spark' in workloads:
557551
config_options = {"initial_spark_worker_resources": 0.1}
558-
if dse_version >= Version('6.7'):
552+
if Version(dse_version) >= Version('6.7'):
559553
log.debug("Disabling AlwaysON SQL for a DSE 6.7 Cluster")
560554
config_options['alwayson_sql_options'] = {'enabled': False}
561555
CCM_CLUSTER.set_dse_configuration_options(config_options)
@@ -567,9 +561,9 @@ def use_cluster(cluster_name, nodes, ipformat=None, start=True, workloads=None,
567561
else:
568562
CCM_CLUSTER = CCMCluster(path, cluster_name, **ccm_options)
569563
CCM_CLUSTER.set_configuration_options({'start_native_transport': True})
570-
if cassandra_version >= Version('2.2'):
564+
if Version(cassandra_version) >= Version('2.2'):
571565
CCM_CLUSTER.set_configuration_options({'enable_user_defined_functions': True})
572-
if cassandra_version >= Version('3.0'):
566+
if Version(cassandra_version) >= Version('3.0'):
573567
CCM_CLUSTER.set_configuration_options({'enable_scripted_user_defined_functions': True})
574568
common.switch_cluster(path, cluster_name)
575569
CCM_CLUSTER.set_configuration_options(configuration_options)

0 commit comments

Comments
 (0)