Details
-
Sub-task
-
Status: Resolved
-
Normal
-
Resolution: Fixed
Description
This is followup to CASSANDRA-10289
The tests currently failing should be:
- cqlshlib.test.test_cqlsh_completion.TestCqlshCompletion.test_complete_in_create_columnfamily
- uses create_columnfamily_table_template. Stefania says "the ( after CREATE ... IF does not look valid to me."
- cqlshlib.test.test_cqlsh_completion.TestCqlshCompletion.test_complete_in_create_table
- uses create_columnfamily_table_template, see above.
- cqlshlib.test.test_cqlsh_completion.TestCqlshCompletion.test_complete_in_delete
- Stefania says: "I don't think keyspaces are a valid completion after DELETE a [ and after DELETE FROM twenty_rows_composite_table USING TIMESTAMP 0 WHERE TOKEN(a) >=. From a quick analysis of cqlhandling.py I think it comes from <term>, which picks up <functionName>, which was changed to include ks. by
CASSANDRA-7556.
- Stefania says: "I don't think keyspaces are a valid completion after DELETE a [ and after DELETE FROM twenty_rows_composite_table USING TIMESTAMP 0 WHERE TOKEN(a) >=. From a quick analysis of cqlhandling.py I think it comes from <term>, which picks up <functionName>, which was changed to include ks. by
- cqlshlib.test.test_cqlsh_completion.TestCqlshCompletion.test_complete_in_drop_keyspace
- Stefania says: "the ; after DROP KEYSPACE IF is not valid.
- cqlshlib.test.test_cqlsh_output.TestCqlshOutput.test_timestamp_output
- already documented with
CASSANDRA-10313andCASSANDRA-10397
- already documented with
I'm happy to break these out into separate tickets if necessary.
To run the tests locally, I cd to cassandra/pylib/cqlshlib and run the following:
ccm create -n 1 --install-dir=../.. test
ccm start --wait-for-binary-proto
nosetests test 2>&1
ccm remove
This requires nose and ccm. Until CASSANDRA-10289 is resolved, you'll have to use my branch here: https://github.com/mambocab/cassandra/tree/fix-cqlsh-tests
Tests for this branch are run (non-continuously) here:
http://cassci.datastax.com/job/scratch_mambocab-fix_cqlsh/
Assigning Stefania for now, since she's already looked at 10289, but feel free to reassign.
Attachments
Issue Links
- duplicates
-
CASSANDRA-10432 backport cqlshlib test fixes to 2.1+
-
- Resolved
-
- is related to
-
CASSANDRA-10487 Regression in select count with limit
-
- Resolved
-
-
CASSANDRA-10397 Add local timezone support to cqlsh
-
- Resolved
-
- relates to
-
CASSANDRA-10289 Fix cqlshlib tests
-
- Resolved
-
- links to