mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
test/cqlpy: comment out Cassandra check that is no longer relevant
In the test translated from Cassandra validation/operations/alter_test.py we had two lines in the beginning of an unrelated test that verified that CREATE KEYSPACE is not allowed without replication parameters. But starting recently, ScyllaDB does have defaults and does allow these CREATE KEYSPACE. So comment out these two test lines. We didn't notice that this test started to fail, because it was already marked xfail, because in the main part of this test, it reproduces a different issue! The annoying side-affect of these no-longer-passing checks was that because the test expected a CREATE KEYSPACE to fail, it didn't bother to delete this keyspace when it finished, which causes test.py to report that there's a problem because some keyspaces still exist at the end of the test. Now that we fixed this problem, we no longer need to list this test in test/cqlpy/suite.yaml as a test that leaves behind undeleted keyspaces. Fixes #26292 Signed-off-by: Nadav Har'El <nyh@scylladb.com> Closes scylladb/scylladb#26341
This commit is contained in:
committed by
Botond Dénes
parent
56e5dfc14b
commit
b659dfcbe9
@@ -163,11 +163,13 @@ def testAlterIndexInterval(cql, test_keyspace):
|
||||
assert options['max_index_interval'] == 512
|
||||
|
||||
# Migrated from cql_tests.py:TestCQL.create_alter_options_test()
|
||||
# Reproduces #9929
|
||||
# Reproduces #9935
|
||||
@pytest.mark.xfail(reason="Issue #9935")
|
||||
def testCreateAlterKeyspaces(cql, test_keyspace, this_dc):
|
||||
assert_invalid_throw(cql, test_keyspace, SyntaxException, "CREATE KEYSPACE ks1")
|
||||
assert_invalid_throw(cql, test_keyspace, ConfigurationException, "CREATE KEYSPACE ks1 WITH replication= { 'replication_factor' : 1 }")
|
||||
# ScyllaDB allows default parameters on CREATE KEYSPACE, so these checks
|
||||
# are no longer valid:
|
||||
#assert_invalid_throw(cql, test_keyspace, SyntaxException, "CREATE KEYSPACE ks1")
|
||||
#assert_invalid_throw(cql, test_keyspace, ConfigurationException, "CREATE KEYSPACE ks1 WITH replication= { 'replication_factor' : 1 }")
|
||||
|
||||
with create_keyspace(cql, "replication={ 'class' : 'SimpleStrategy', 'replication_factor' : 1 }") as ks1:
|
||||
with create_keyspace(cql, "replication={ 'class' : 'SimpleStrategy', 'replication_factor' : 1 } AND durable_writes=false") as ks2:
|
||||
|
||||
@@ -3,7 +3,6 @@ pool_size: 4
|
||||
dirties_cluster:
|
||||
- test_native_transport
|
||||
- test_describe # Broke CQL connections for next tests
|
||||
- cassandra_tests/validation/operations/alter_test # Do not clean keyspaces after test that might affect next tests
|
||||
extra_scylla_cmdline_options:
|
||||
- '--rf-rack-valid-keyspaces=1'
|
||||
- '--experimental-features=udf'
|
||||
|
||||
Reference in New Issue
Block a user