Tyler Hobbs created CASSANDRA-7604:
--------------------------------------

             Summary: Test coverage for conditional DDL statements
                 Key: CASSANDRA-7604
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7604
             Project: Cassandra
          Issue Type: Test
          Components: Tests
            Reporter: Tyler Hobbs
            Assignee: Ryan McGuire


We only have minimal test coverage of {{IF \[NOT\] EXISTS}} conditions for DDL 
statements.  I think dtests are the right place to add those tests.

We need to cover:
* {{CREATE KEYSPACE IF NOT EXISTS}}
* {{DROP KEYSPACE IF EXISTS}}
* {{CREATE TABLE IF NOT EXISTS}}
* {{DROP TABLE IF EXISTS}}
* {{CREATE INDEX IF NOT EXISTS}}
* {{DROP INDEX IF EXISTS}}
* {{CREATE TYPE IF NOT EXISTS}}
* {{DROP TYPE IF EXISTS}}

The tests should also ensure that InvalidRequestExceptions are thrown if, for 
example, you try to drop an index from a keyspace that doesn't exist 
(regardless of whether {{IF EXISTS}} is used).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to