Skip to content

scylladb/scylla-java-driver-matrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scylla-java-driver-matrix

Helper script to run integration test from multiple java-drivers against scylla

Usage

Running Locally

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

Running with docker

./scripts/run_test.sh python ./main.py ../java-driver/ --version 4.3.0 --scylla-version unstable/master:201910020524```

Running specific test

./scripts/run_test.sh python3 ./main.py ../java-driver/ --tests QueryTraceIT --version 4.1.0 --scylla-version u
nstable/master:201912142059

Running from PyCharm:

  • 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

Uploading docker images

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

TODOs

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy