Helper script to run integration test from multiple java-drivers against scylla
apt-get install openjdk-8-jdk-headless maven python-virtualenv
virtualenv .ccm-venv
source .ccm-venv/bin/activate
pip install -r scripts/requirements.txt
python3 ./main.py ../java-driver/ --versions 4.3.0 --scylla-version unstable/master:201910020524
./scripts/run_test.sh python ./main.py ../java-driver/ --version 4.3.0 --scylla-version unstable/master:201910020524```
./scripts/run_test.sh python3 ./main.py ../java-driver/ --tests QueryTraceIT --version 4.1.0 --scylla-version u
nstable/master:201912142059
- Create a basic Python configure.
- Working directory value is:
/home/oren/Desktop/github/python-driver-matrix
- Script path value is:
main.py
- Parameters value are:
/home/oren/Desktop/github/java-driver/ /home/oren/Desktop/github/scylla/ --version 4.x --scylla-version unstable/master/2022-01-03T13_22_36Z # To run a specific test needs to use # --tests # DirectCompressionIT
- To run a specific test needs to use
when doing changes to requirements.txt, or any other change to docker image, it can be uploaded like this:
export UNIT_TEST_DOCKER_IMAGE=scylladb/scylla-cassandra-unit-tests:python3.11-$(date +'%Y%m%d')
docker build ./scripts/ -t ${UNIT_TEST_DOCKER_IMAGE}
docker push ${UNIT_TEST_DOCKER_IMAGE}
echo "${UNIT_TEST_DOCKER_IMAGE}" > scripts/image
Note: you'll need permissions on the scylladb dockerhub organization for uploading images
- fix
ccm node1 pause
, a bug in CCM
# running specific tests stright from java-driver dir (on branches 4.x)
mvn -pl infra-tests install
mvn -pl integration-tests -Dtest='SelectOtherClausesIT,ExecutionInfoWarningsIT' test -Dscylla.version=unstable/master:201910020524
# running on java-driver branches 3.x
mvn -pl driver-core test -Dtest.groups='long' -Dtest='*' -Dscylla.version=unstable/master:201910020524