Skip to content

Commit

Permalink
Make test_compression_disabled expect proper value for scylla
Browse files Browse the repository at this point in the history
  • Loading branch information
dkropachev committed Aug 15, 2024
1 parent 7e0b02d commit 29ae49b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integration/standard/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
greaterthancass21, assert_startswith, greaterthanorequalcass40,
greaterthanorequaldse67, lessthancass40,
TestCluster, DSE_VERSION, requires_java_udf, requires_composite_type,
requires_collection_indexes, xfail_scylla)
requires_collection_indexes, xfail_scylla, SCYLLA_VERSION)

from tests.util import wait_until

Expand Down Expand Up @@ -531,14 +531,14 @@ def test_collection_indexes(self):
tablemeta = self.get_table_metadata()
self.assertIn('(full(b))', tablemeta.export_as_string())

#TODO: Fix Scylla or test
@xfail_scylla('Scylla prints `compression = {}` instead of `compression = {\'enabled\': \'false\'}`.')
def test_compression_disabled(self):
create_statement = self.make_create_statement(["a"], ["b"], ["c"])
create_statement += " WITH compression = {}"
self.session.execute(create_statement)
tablemeta = self.get_table_metadata()
expected = "compression = {}" if CASSANDRA_VERSION < Version("3.0") else "compression = {'enabled': 'false'}"
expected = "compression = {'enabled': 'false'}"
if SCYLLA_VERSION is not None or CASSANDRA_VERSION < Version("3.0"):
expected = "compression = {}"
self.assertIn(expected, tablemeta.export_as_string())

def test_non_size_tiered_compaction(self):
Expand Down

0 comments on commit 29ae49b

Please sign in to comment.