1
0
Fork 0
mirror of https://github.com/dragonflydb/dragonfly.git synced 2024-12-14 11:58:02 +00:00
dragonflydb-dragonfly/tests
odedponcz cf729f3fcb
feat(test): Add integration test for the jedis and node-redis clients (#233)
* docs: Improve wording in issue reporting

Signed-off-by: odedponcz <oded@poncz.com>

* docs: Change contribution doc flow

Signed-off-by: odedponcz <oded@poncz.com>

* feat(tests): Add integration test with node-redis

Signed-off-by: odedponcz <oded@poncz.com>

* Rename integration test docker files

Signed-off-by: odedponcz <oded@poncz.com>
2022-08-12 22:42:54 +03:00
..
pytest fix(pytest): Minor fixes 2022-07-26 17:31:39 +03:00
async.py fix(transaction): Fix rare deadlock case - fixes #150. (#155) 2022-06-15 16:53:27 +03:00
gen_sets.sh Add CONFIG RESETSTAT command. Start working on RPOPLPUSH 2022-04-27 23:50:03 +03:00
generate_sets.py Implement CLIENT LIST and CLIENT SETNAME. 2022-05-10 06:35:37 +03:00
jedis.Dockerfile feat(test): Add integration test for the jedis and node-redis clients (#233) 2022-08-12 22:42:54 +03:00
node-redis.Dockerfile feat(test): Add integration test for the jedis and node-redis clients (#233) 2022-08-12 22:42:54 +03:00
README.md feat(test): Add integration test for the jedis and node-redis clients (#233) 2022-08-12 22:42:54 +03:00
stress_shutdown.sh Upon full segment try unloading stash buckets back to regular ones 2022-05-12 13:43:03 +03:00

System tests

Pytest

The tests assume you have the "dragonfly" binary in <root>/build-dbg directory. You can override the location of the binary using DRAGONFLY_HOME environment var.

to run pytest, run: pytest -xv pytest

Integration tests

To simplify running integration test each package should have its own Dockerfile. The Dockerfile should contain everything needed in order to test the package against Drafongly. Docker can assume Dragonfly is running on localhost:6379. To run the test:

docker build -t [test-name] -f [test-dockerfile-name] .
docker run --network=host [test-name]

Node-Redis

Integration test for node-redis client. Build:

docker build -t node-redis-test -f ./node-redis.Dockerfile .

Run:

docker run --network=host node-redis-test

Jedis

Integration test for the Jedis client. Build:

docker build -t jedis-test -f ./jedis.Dockerfile .

Run:

docker run --network=host jedis-test