-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #194 from datastax/issue/CDM-93
CDM-93: Added SIT tests
- Loading branch information
Showing
7 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash -e | ||
|
||
cat <<EOF | ||
!!!!!!!! | ||
!!!!!!!! Testing Migrate | ||
!!!!!!!! | ||
EOF | ||
|
||
/local/cdm.sh -c | ||
spark-submit \ | ||
--properties-file /smoke/05_reserved_keyword/migrate.properties \ | ||
--master "local[*]" \ | ||
--class datastax.cdm.job.Migrate /local/cassandra-data-migrator.jar | ||
|
||
cat <<EOF | ||
!!!!!!!! | ||
!!!!!!!! Testing DiffData | ||
!!!!!!!! | ||
EOF | ||
|
||
spark-submit \ | ||
--properties-file /smoke/05_reserved_keyword/migrate.properties \ | ||
--master "local[*]" \ | ||
--class datastax.cdm.job.DiffData /local/cassandra-data-migrator.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
migrateData com.datastax.cdm.job.Migrate migrate.properties | ||
validateData com.datastax.cdm.job.DiffData migrate.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash -e | ||
|
||
workingDir="$1" | ||
cd "$workingDir" | ||
|
||
for scenario in $(cat cdm.txt | awk '{print $1}'); do | ||
/local/cdm.sh -f cdm.txt -s $scenario -d "$workingDir" | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SELECT * FROM target.smoke_order; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
col1 | order | ||
------+------- | ||
c1 | o1 | ||
c2 | o2 | ||
|
||
(2 rows) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
spark.cdm.connect.origin.host cdm-sit-cass | ||
spark.cdm.connect.target.host cdm-sit-cass | ||
|
||
spark.cdm.schema.origin.keyspaceTable origin.smoke_order | ||
spark.cdm.schema.target.keyspaceTable target.smoke_order | ||
spark.cdm.perfops.numParts 1 | ||
|
||
spark.cdm.autocorrect.missing true | ||
spark.cdm.autocorrect.mismatch true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
DROP TABLE IF EXISTS origin.smoke_order; | ||
CREATE TABLE origin.smoke_order (col1 text primary key, "order" text); | ||
INSERT INTO origin.smoke_order(col1, "order") VALUES ('c1','o1'); | ||
INSERT INTO origin.smoke_order(col1, "order") VALUES ('c2','o2'); | ||
|
||
DROP TABLE IF EXISTS target.smoke_order; | ||
CREATE TABLE target.smoke_order (col1 text primary key, "order" text); | ||
|
||
|