Skip to content

Commit c9da056

Browse files
committed
Add C* 4.0 testing
1 parent 3a5bd85 commit c9da056

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
@@ -172,7 +172,7 @@ def _get_dse_version_from_cass(cass_version):
172172
cassandra_version = Version(mcv_string)
173173

174174
CASSANDRA_VERSION = Version(mcv_string) if mcv_string else cassandra_version
175-
CCM_VERSION = cassandra_version if mcv_string else CASSANDRA_VERSION
175+
CCM_VERSION = mcv_string or cv_string
176176

177177
CASSANDRA_IP = os.getenv('CLUSTER_IP', '127.0.0.1')
178178
CASSANDRA_DIR = os.getenv('CASSANDRA_DIR', None)
@@ -458,15 +458,9 @@ def use_cluster(cluster_name, nodes, ipformat=None, start=True, workloads=None,
458458
elif ccm_options is None:
459459
ccm_options = CCM_KWARGS.copy()
460460

461-
if 'version' in ccm_options and not isinstance(ccm_options['version'], Version):
462-
ccm_options['version'] = Version(ccm_options['version'])
463-
464461
cassandra_version = ccm_options.get('version', CCM_VERSION)
465462
dse_version = ccm_options.get('version', DSE_VERSION)
466463

467-
if 'version' in ccm_options:
468-
ccm_options['version'] = ccm_options['version'].base_version
469-
470464
global CCM_CLUSTER
471465
if USE_CASS_EXTERNAL:
472466
if CCM_CLUSTER:
@@ -515,12 +509,12 @@ def use_cluster(cluster_name, nodes, ipformat=None, start=True, workloads=None,
515509
CCM_CLUSTER = DseCluster(path, cluster_name, **ccm_options)
516510
CCM_CLUSTER.set_configuration_options({'start_native_transport': True})
517511
CCM_CLUSTER.set_configuration_options({'batch_size_warn_threshold_in_kb': 5})
518-
if dse_version >= Version('5.0'):
512+
if Version(dse_version) >= Version('5.0'):
519513
CCM_CLUSTER.set_configuration_options({'enable_user_defined_functions': True})
520514
CCM_CLUSTER.set_configuration_options({'enable_scripted_user_defined_functions': True})
521515
if 'spark' in workloads:
522516
config_options = {"initial_spark_worker_resources": 0.1}
523-
if dse_version >= Version('6.7'):
517+
if Version(dse_version) >= Version('6.7'):
524518
log.debug("Disabling AlwaysON SQL for a DSE 6.7 Cluster")
525519
config_options['alwayson_sql_options'] = {'enabled': False}
526520
CCM_CLUSTER.set_dse_configuration_options(config_options)
@@ -532,9 +526,9 @@ def use_cluster(cluster_name, nodes, ipformat=None, start=True, workloads=None,
532526
else:
533527
CCM_CLUSTER = CCMCluster(path, cluster_name, **ccm_options)
534528
CCM_CLUSTER.set_configuration_options({'start_native_transport': True})
535-
if cassandra_version >= Version('2.2'):
529+
if Version(cassandra_version) >= Version('2.2'):
536530
CCM_CLUSTER.set_configuration_options({'enable_user_defined_functions': True})
537-
if cassandra_version >= Version('3.0'):
531+
if Version(cassandra_version) >= Version('3.0'):
538532
CCM_CLUSTER.set_configuration_options({'enable_scripted_user_defined_functions': True})
539533
common.switch_cluster(path, cluster_name)
540534
CCM_CLUSTER.set_configuration_options(configuration_options)

0 commit comments

Comments
 (0)