mirror of https://github.com/apache/cassandra
Ninja: update cqlsh completion tests for CASSANDRA-8844
In CASSANDRA-8844, a new 'cdc' table option was added. The python driver added this as a recognized option, which caused it to show up in cqlsh autocomplete suggestions. However, the cqlsh tests were not updated to match this. This should fix the following failing tests: - test_complete_in_create_table - test_complete_in_create_columnfamily
This commit is contained in:
parent
d14052e99c
commit
cc582855ea
|
|
@ -595,7 +595,7 @@ class TestCqlshCompletion(CqlshCompletionCase):
|
|||
'memtable_flush_period_in_ms',
|
||||
'read_repair_chance', 'CLUSTERING',
|
||||
'COMPACT', 'caching', 'comment',
|
||||
'min_index_interval', 'speculative_retry'])
|
||||
'min_index_interval', 'speculative_retry', 'cdc'])
|
||||
self.trycompletions(prefix + ' new_table (col_a int PRIMARY KEY) WITH ',
|
||||
choices=['bloom_filter_fp_chance', 'compaction',
|
||||
'compression',
|
||||
|
|
@ -605,7 +605,7 @@ class TestCqlshCompletion(CqlshCompletionCase):
|
|||
'memtable_flush_period_in_ms',
|
||||
'read_repair_chance', 'CLUSTERING',
|
||||
'COMPACT', 'caching', 'comment',
|
||||
'min_index_interval', 'speculative_retry'])
|
||||
'min_index_interval', 'speculative_retry', 'cdc'])
|
||||
self.trycompletions(prefix + ' new_table (col_a int PRIMARY KEY) WITH bloom_filter_fp_chance ',
|
||||
immediate='= ')
|
||||
self.trycompletions(prefix + ' new_table (col_a int PRIMARY KEY) WITH bloom_filter_fp_chance = ',
|
||||
|
|
@ -653,7 +653,7 @@ class TestCqlshCompletion(CqlshCompletionCase):
|
|||
'memtable_flush_period_in_ms',
|
||||
'read_repair_chance', 'CLUSTERING',
|
||||
'COMPACT', 'caching', 'comment',
|
||||
'min_index_interval', 'speculative_retry'])
|
||||
'min_index_interval', 'speculative_retry', 'cdc'])
|
||||
self.trycompletions(prefix + " new_table (col_a int PRIMARY KEY) WITH compaction = "
|
||||
+ "{'class': 'DateTieredCompactionStrategy', '",
|
||||
choices=['base_time_seconds', 'max_sstable_age_days',
|
||||
|
|
@ -669,7 +669,6 @@ class TestCqlshCompletion(CqlshCompletionCase):
|
|||
'enabled', 'unchecked_tombstone_compaction',
|
||||
'only_purge_repaired_tombstones'])
|
||||
|
||||
|
||||
def test_complete_in_create_columnfamily(self):
|
||||
self.trycompletions('CREATE C', choices=['COLUMNFAMILY', 'CUSTOM'])
|
||||
self.trycompletions('CREATE CO', immediate='LUMNFAMILY ')
|
||||
|
|
|
|||
Loading…
Reference in New Issue