You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jb...@apache.org on 2010/01/29 05:10:30 UTC

svn commit: r904373 - /incubator/cassandra/trunk/test/system/test_server.py

Author: jbellis
Date: Fri Jan 29 04:10:29 2010
New Revision: 904373

URL: http://svn.apache.org/viewvc?rev=904373&view=rev
Log:
add test making sure we reject ops on empty column names (we do).  patch by jbellis

Modified:
    incubator/cassandra/trunk/test/system/test_server.py

Modified: incubator/cassandra/trunk/test/system/test_server.py
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/test/system/test_server.py?rev=904373&r1=904372&r2=904373&view=diff
==============================================================================
--- incubator/cassandra/trunk/test/system/test_server.py (original)
+++ incubator/cassandra/trunk/test/system/test_server.py Fri Jan 29 04:10:29 2010
@@ -500,6 +500,8 @@
         cfmap = {'Super1': [ColumnOrSuperColumn(super_column=c) for c in _SUPER_COLUMNS],
                  'Super2': [ColumnOrSuperColumn(super_column=c) for c in _SUPER_COLUMNS]}
         _expect_exception(lambda: client.batch_insert('Keyspace1', '', cfmap, ConsistencyLevel.ONE), InvalidRequestException)
+        # empty column name
+        _expect_exception(lambda: client.get('Keyspace1', 'key1', ColumnPath('Standard1', column=''), ConsistencyLevel.ONE), InvalidRequestException)
         # get doesn't specify column name
         _expect_exception(lambda: client.get('Keyspace1', 'key1', ColumnPath('Standard1'), ConsistencyLevel.ONE), InvalidRequestException)
         # supercolumn in a non-super CF