Repository: cassandra Updated Branches: refs/heads/trunk d14052e99 -> cc582855e
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 Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/cc582855 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/cc582855 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/cc582855 Branch: refs/heads/trunk Commit: cc582855ea95789c0761ddb6ab7837573eab2938 Parents: d14052e Author: Tyler Hobbs <[email protected]> Authored: Tue Jul 19 14:40:55 2016 -0500 Committer: Tyler Hobbs <[email protected]> Committed: Tue Jul 19 14:40:55 2016 -0500 ---------------------------------------------------------------------- pylib/cqlshlib/test/test_cqlsh_completion.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/cc582855/pylib/cqlshlib/test/test_cqlsh_completion.py ---------------------------------------------------------------------- diff --git a/pylib/cqlshlib/test/test_cqlsh_completion.py b/pylib/cqlshlib/test/test_cqlsh_completion.py index 33fe07c..df4f7e8 100644 --- a/pylib/cqlshlib/test/test_cqlsh_completion.py +++ b/pylib/cqlshlib/test/test_cqlsh_completion.py @@ -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 ')
