Skip to content
Browse files

Merged changes to separate schema create and drop scripts.

  • Loading branch information...
1 parent 831205d commit 4dc94a47fd7a901c0392031164abfc215237a14e @bflorian committed Jun 27, 2013
View
8 test/data/schema.txt
@@ -1,7 +1,7 @@
-drop keyspace AstyanaxTest;
-CREATE KEYSPACE AstyanaxTest
-with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy'
-and strategy_options = [{replication_factor:3}];
+create keyspace AstyanaxTest
+ with strategy_options={replication_factor:1}
+ and placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy';
+
use AstyanaxTest;
create column family User
View
1 test/data/schema_drop.txt
@@ -0,0 +1 @@
+drop keyspace AstyanaxTest;
View
1 test/integration/com/reachlocal/grails/plugins/cassandra/test/util/TestSchema.groovy
@@ -33,6 +33,7 @@ class TestSchema
static private createKeyspace(astyanaxService)
{
+ runCqlScript("test/data/schema_drop.txt")
runCqlScript("test/data/schema.txt")
}

0 comments on commit 4dc94a4

Please sign in to comment.
Something went wrong with that request. Please try again.