cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Shuler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-7607) Test coverage for authorization in DDL & DML statements
Date Tue, 21 Oct 2014 01:03:34 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-7607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14177757#comment-14177757
] 

Michael Shuler commented on CASSANDRA-7607:
-------------------------------------------

bq. Is there any command 'ALTER INDEX' ?

A {{grep -ri 'ALTER INDEX'}} in the cassandra source tree also did not give me any results,
so I'm not sure about that command's existence.

bq. we need to keep the trigger code into the "lib/triggers" directory. What is the mechanism
to push any such files to all the machines where this test code is running?

dtest runs from ccm cluster nodes, so writing the trigger file into the ccm node $TEMP/dtest-XXXXX/nodeX
locations somehow (I don't see any other trigger dtests for an example, so this might be interesting
:) )

bq. the user defined function feature is new in 3.x. So we should include the 3.x version
as well

Sure!  You'll find a lot of uses of @since(major.minor) annotations in dtest - define the
UDF test as @since(3.0) and it will only run on >=3.0 clusters during testing.

> Test coverage for authorization in DDL & DML statements
> -------------------------------------------------------
>
>                 Key: CASSANDRA-7607
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7607
>             Project: Cassandra
>          Issue Type: Test
>          Components: Tests
>            Reporter: Robert Stupp
>            Assignee: Rajanarayanan Thottuvaikkatumana
>              Labels: lhf, unit-test
>             Fix For: 2.0.12
>
>
> Similar to CASSANDRA-7604
> Check that the statements perform proper authorization (allow / reject):
> * {{CREATE KEYSPACE}}
> * {{ALTER KEYSPACE}}
> * {{DROP KEYSPACE}}
> * {{CREATE TABLE}}
> * {{ALTER TABLE}}
> * {{DROP TABLE}}
> * {{CREATE TYPE}}
> * {{ALTER TYPE}}
> * {{DROP TYPE}}
> * {{CREATE INDEX}}
> * {{DROP INDEX}}
> * {{CREATE TRIGGER}}
> * {{DROP TRIGGER}}
> * {{CREATE USER}}
> * {{ALTER USER}}
> * {{DROP USER}}
> * {{TRUNCATE}}
> * {{GRANT}}
> * {{REVOKE}}
> * {{SELECT}}
> * {{UPDATE}}
> * {{DELETE}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message