-
Notifications
You must be signed in to change notification settings - Fork 81
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 #32 from CodersOfTheNight/master
Fix syntax error
- Loading branch information
Showing
4 changed files
with
92 additions
and
18 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 |
---|---|---|
@@ -1,16 +1,30 @@ | ||
language: python | ||
install: | ||
- echo "deb http://debian.datastax.com/community stable main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list | ||
- curl -L http://debian.datastax.com/debian/repo_key | sudo apt-key add - | ||
- sudo apt-get update | ||
- sudo apt-get -y -o Dpkg::Options::=--force-confnew install dsc21 cassandra=2.1.15 | ||
- sudo service cassandra stop | ||
- sudo rm -rf /var/lib/cassandra/* | ||
- sudo service cassandra start | ||
- sleep 10 | ||
- sudo apt-get install libev4 libev-dev | ||
- pip install --upgrade pip | ||
- pip install blist | ||
python: | ||
- "2.7" | ||
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
|
||
services: | ||
- docker | ||
|
||
before_install: | ||
- docker pull cassandra:2.1 | ||
- docker run --name cassandra -p 127.0.0.1:9042:9042 -p 127.0.0.1:9160:9160 -d cassandra:2.1 | ||
|
||
install: | ||
- pip install six | ||
- pip install cassandra-driver | ||
|
||
script: | ||
- ./tests/run_tests.sh | ||
- cd tests | ||
- make t1 | ||
- make t2 | ||
- make t3 | ||
- make t4 | ||
- make t5 | ||
- make t6 | ||
- make t7 | ||
- make t8 | ||
- make t9 | ||
- make t10 |
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
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,41 @@ | ||
TESTDIR=${PWD} | ||
APPDIR=${TESTDIR}/.. | ||
|
||
t1: | ||
python ${APPDIR}/cassandradump.py --import-file ${TESTDIR}/test_keyspace_init.cql --sync | ||
|
||
t2: | ||
python ${APPDIR}/cassandradump.py --export-file /tmp/dump.cql --keyspace test_keyspace | ||
bash compare.sh ${TESTDIR}/full_export.cql.expected /tmp/dump.cql | ||
|
||
t3: | ||
python ${APPDIR}/cassandradump.py --import-file ${TESTDIR}/full_export.cql.expected | ||
|
||
t4: | ||
python ${APPDIR}/cassandradump.py --export-file /tmp/dump.cql --keyspace test_keyspace | ||
bash compare.sh ${TESTDIR}/full_export.cql.expected /tmp/dump.cql | ||
|
||
t5: | ||
python ${APPDIR}/cassandradump.py --import-file ${TESTDIR}/full_export.cql.expected --sync | ||
|
||
t6: | ||
python ${APPDIR}/cassandradump.py --export-file /tmp/dump.cql --keyspace test_keyspace | ||
bash compare.sh ${TESTDIR}/full_export.cql.expected /tmp/dump.cql | ||
|
||
t7: | ||
python ${APPDIR}/cassandradump.py --export-file /tmp/dump.cql --cf test_keyspace.twenty_rows_composite_table | ||
bash compare.sh ${TESTDIR}/cf_export.cql.expected /tmp/dump.cql | ||
|
||
t8: | ||
python ${APPDIR}/cassandradump.py --export-file /tmp/dump.cql --cf test_keyspace.twenty_rows_composite_table --no-create | ||
bash compare.sh ${TESTDIR}/cf_export_nocreate.cql.expected /tmp/dump.cql | ||
|
||
t9: | ||
python ${APPDIR}/cassandradump.py --export-file /tmp/dump.cql --cf test_keyspace.twenty_rows_composite_table --no-insert | ||
bash compare.sh ${TESTDIR}/cf_export_noinsert.cql.expected /tmp/dump.cql | ||
|
||
t10: | ||
python ${APPDIR}/cassandradump.py --export-file /tmp/dump.cql --filter "test_keyspace.twenty_rows_composite_table WHERE a = 'A' AND b = '19'" | ||
bash compare.sh ${TESTDIR}/filter.cql.expected /tmp/dump.cql | ||
|
||
tests: t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 |
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 @@ | ||
#!/bin/bash | ||
diff -a <(sort $1) <(sort $2) |