Skip to content

Commit cbde7a7

Browse files
author
bjmb
committed
Skipped ALTER TYPE tests for C* 3.1
1 parent 0dc4f5d commit cbde7a7

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cassandra:
1414
- 2.1
1515
- 2.2
1616
- 3.0
17-
- 3.7
17+
- 3.10
1818
env:
1919
EVENT_LOOP_MANAGER:
2020
- libev

tests/integration/standard/test_metadata.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
BasicSegregatedKeyspaceUnitTestCase, BasicSharedKeyspaceUnitTestCase,
3838
BasicExistingKeyspaceUnitTestCase, drop_keyspace_shutdown_cluster, CASSANDRA_VERSION,
3939
BasicExistingSegregatedKeyspaceUnitTestCase, dseonly, DSE_VERSION,
40-
get_supported_protocol_versions, greaterthanorequalcass30)
40+
get_supported_protocol_versions, greaterthanorequalcass30, lessthancass30)
4141

4242
from tests.integration import greaterthancass21
4343

@@ -2470,6 +2470,7 @@ def test_base_table_column_addition_mv(self):
24702470
mv_alltime_fouls_comumn = self.cluster.metadata.keyspaces[self.keyspace_name].views["alltimehigh"].columns['fouls']
24712471
self.assertEqual(mv_alltime_fouls_comumn.cql_type, 'int')
24722472

2473+
@lessthancass30
24732474
def test_base_table_type_alter_mv(self):
24742475
"""
24752476
test to ensure that materialized view metadata is properly updated when a type in the base table

tests/integration/standard/test_udts.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@
2626
from cassandra.query import dict_factory
2727
from cassandra.util import OrderedMap
2828

29-
from tests.integration import use_singledc, PROTOCOL_VERSION, execute_until_pass, BasicSegregatedKeyspaceUnitTestCase, greaterthancass20, greaterthanorequalcass36
30-
from tests.integration.datatype_utils import update_datatypes, PRIMITIVE_DATATYPES, PRIMITIVE_DATATYPES_KEYS, COLLECTION_TYPES, \
31-
get_sample, get_collection_sample
29+
from tests.integration import use_singledc, PROTOCOL_VERSION, execute_until_pass, BasicSegregatedKeyspaceUnitTestCase, \
30+
greaterthancass20, greaterthanorequalcass36, lessthancass30
31+
from tests.integration.datatype_utils import update_datatypes, PRIMITIVE_DATATYPES, PRIMITIVE_DATATYPES_KEYS, \
32+
COLLECTION_TYPES, get_sample, get_collection_sample
3233

3334
nested_collection_udt = namedtuple('nested_collection_udt', ['m', 't', 'l', 's'])
3435
nested_collection_udt_nested = namedtuple('nested_collection_udt_nested', ['m', 't', 'l', 's', 'u'])
@@ -691,6 +692,7 @@ def test_non_alphanum_identifiers(self):
691692
self.assertEqual(k[0], 'alphanum')
692693
self.assertEqual(k.field_0_, 'alphanum') # named tuple with positional field name
693694

695+
@lessthancass30
694696
def test_type_alteration(self):
695697
s = self.session
696698
type_name = "type_name"
@@ -723,6 +725,7 @@ def test_type_alteration(self):
723725
self.assertEqual(val['v0'], 3)
724726
self.assertEqual(val['v1'], six.b('\xde\xad\xbe\xef'))
725727

728+
@lessthancass30
726729
def test_alter_udt(self):
727730
"""
728731
Test to ensure that altered UDT's are properly surfaced without needing to restart the underlying session.

0 commit comments

Comments
 (0)