cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject svn commit: r991740 - /cassandra/trunk/test/system/test_avro_super.py
Date Wed, 01 Sep 2010 22:31:46 GMT
Author: brandonwilliams
Date: Wed Sep  1 22:31:46 2010
New Revision: 991740

URL: http://svn.apache.org/viewvc?rev=991740&view=rev
Log:
Add avro test for slicing supercolumns.  Patch by brandonwilliams

Modified:
    cassandra/trunk/test/system/test_avro_super.py

Modified: cassandra/trunk/test/system/test_avro_super.py
URL: http://svn.apache.org/viewvc/cassandra/trunk/test/system/test_avro_super.py?rev=991740&r1=991739&r2=991740&view=diff
==============================================================================
--- cassandra/trunk/test/system/test_avro_super.py (original)
+++ cassandra/trunk/test/system/test_avro_super.py Wed Sep  1 22:31:46 2010
@@ -80,6 +80,14 @@ class TestSuperOperations(AvroTester):
 
         avro_utils.assert_cosc(cosc)
         avro_utils.assert_columns_match(cosc['column'], params['column'])
+
+    def test_slice_super(self):
+        self._set_keyspace('Keyspace1')
+        self._insert_super()
+        p = {'slice_range': {'start': '', 'finish': '', 'reversed': False, 'count': 10}}
+        parent = {'column_family': 'Super1', 'super_column': 'sc1'}
+        cosc = self.client.request('get_slice', {'key': 'key1', 'column_parent': parent,
'predicate': p, 'consistency_level': 'ONE'})
+        avro_utils.assert_cosc(cosc[0])
     
     def test_missing_super(self):
         self._set_keyspace('Keyspace1')



Mime
View raw message