Skip to content

Commit efa4e84

Browse files
committed
add new cell in test matrix for DSE 6.7 smoke test
1 parent 1d5bffe commit efa4e84

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

build.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ cassandra:
118118
- '3.0'
119119
- '3.11'
120120
- 'test-dse'
121+
- 'dse-6.7'
121122

122123
env:
123124
CYTHON:
@@ -159,6 +160,13 @@ build:
159160
exit 0
160161
fi
161162
163+
if [[ $CCM_IS_DSE == 'true' ]]; then
164+
# We only use a DSE version for unreleased DSE versions, so we only need to run the smoke tests here
165+
echo "CCM_IS_DSE: $CCM_IS_DSE"
166+
echo "==========RUNNING SMOKE TESTS==========="
167+
EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER CCM_ARGS="$CCM_ARGS" CASSANDRA_VERSION=$CCM_CASSANDRA_VERSION DSE_VERSION='6.7.0' MAPPED_CASSANDRA_VERSION=$MAPPED_CASSANDRA_VERSION VERIFY_CYTHON=$FORCE_CYTHON nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=standard_results.xml tests/integration/standard/test_dse.py || true
168+
exit 0
169+
fi
162170
163171
# Run the unit tests, this is not done in travis because
164172
# it takes too much time for the whole matrix to build with cython

tests/integration/standard/test_dse.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
from cassandra.cluster import Cluster
2020
from tests import notwindows
21+
from tests.unit.cython.utils import notcython
2122
from tests.integration import (execute_until_pass,
2223
execute_with_long_wait_retry, use_cluster)
2324

@@ -27,8 +28,12 @@
2728
import unittest # noqa
2829

2930

31+
CCM_IS_DSE = (os.environ.get('CCM_IS_DSE', None) == 'true')
32+
33+
3034
@unittest.skipIf(os.environ.get('CCM_ARGS', None), 'environment has custom CCM_ARGS; skipping')
3135
@notwindows
36+
@notcython # no need to double up on this test; also __default__ setting doesn't work
3237
class DseCCMClusterTest(unittest.TestCase):
3338
"""
3439
This class can be executed setting the DSE_VERSION variable, for example:
@@ -42,6 +47,7 @@ def test_dse_5x(self):
4247
def test_dse_60(self):
4348
self._test_basic(Version('6.0.2'))
4449

50+
@unittest.skipUnless(CCM_IS_DSE, 'DSE version unavailable')
4551
def test_dse_67(self):
4652
self._test_basic(Version('6.7.0'))
4753

@@ -55,7 +61,8 @@ def _test_basic(self, dse_version):
5561
use_cluster(cluster_name=cluster_name, nodes=[3],
5662
dse_cluster=True, dse_options={}, dse_version=dse_version)
5763

58-
cluster = Cluster()
64+
cluster = Cluster(
65+
allow_beta_protocol_version=(dse_version >= Version('6.7.0')))
5966
session = cluster.connect()
6067
result = execute_until_pass(
6168
session,

0 commit comments

Comments
 (0)