Skip to content

Commit 6ebe0d8

Browse files
author
nick
committed
Fix integration tests
C* 3.11 does not exist, changed to 3.11.4 ccm_options['version'] can somehow get messed up and be str instead of Version object
1 parent 9ee9331 commit 6ebe0d8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

tests/integration/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _get_dse_version_from_cass(cass_version):
126126
CASSANDRA_IP = os.getenv('CASSANDRA_IP', '127.0.0.1')
127127
CASSANDRA_DIR = os.getenv('CASSANDRA_DIR', None)
128128

129-
default_cassandra_version = '3.11'
129+
default_cassandra_version = '3.11.4'
130130
cv_string = os.getenv('CASSANDRA_VERSION', default_cassandra_version)
131131
mcv_string = os.getenv('MAPPED_CASSANDRA_VERSION', None)
132132
try:
@@ -366,6 +366,9 @@ def use_cluster(cluster_name, nodes, ipformat=None, start=True, workloads=None,
366366
elif ccm_options is None:
367367
ccm_options = CCM_KWARGS.copy()
368368

369+
if 'version' in ccm_options and not isinstance(ccm_options['version'], Version):
370+
ccm_options['version'] = Version(ccm_options['version'])
371+
369372
cassandra_version = ccm_options.get('version', CCM_VERSION)
370373
dse_version = ccm_options.get('version', DSE_VERSION)
371374

tests/integration/upgrade/test_upgrade.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828

2929
two_to_three_path = upgrade_paths([
30-
UpgradePath("2.2.9-3.11", {"version": "2.2.9"}, {"version": "3.11"}, {}),
30+
UpgradePath("2.2.9-3.11", {"version": "2.2.9"}, {"version": "3.11.4"}, {}),
3131
])
3232
class UpgradeTests(UpgradeBase):
3333
@two_to_three_path
@@ -176,7 +176,7 @@ def _assert_same_token_map(self, original, new):
176176

177177

178178
two_to_three_with_auth_path = upgrade_paths([
179-
UpgradePath("2.2.9-3.11-auth", {"version": "2.2.9"}, {"version": "3.11"},
179+
UpgradePath("2.2.9-3.11-auth", {"version": "2.2.9"}, {"version": "3.11.4"},
180180
{'authenticator': 'PasswordAuthenticator',
181181
'authorizer': 'CassandraAuthorizer'}),
182182
])

0 commit comments

Comments
 (0)