summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini27
1 files changed, 18 insertions, 9 deletions
diff --git a/tox.ini b/tox.ini
index 32d1680..b574d17 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,6 +5,7 @@ markers =
pipeline: pipeline tests
onlycluster: marks tests to be run only with cluster mode redis
onlynoncluster: marks tests to be run only with standalone redis
+ ssl: marker for only the ssl tests
[tox]
minversion = 3.2.0
@@ -31,6 +32,7 @@ healtcheck_cmd = python -c "import socket;print(True) if 0 == socket.socket(sock
volumes =
bind:rw:{toxinidir}/docker/replica/redis.conf:/redis.conf
+
[docker:sentinel_1]
name = sentinel_1
image = redisfab/redis-py-sentinel:6.2.6-buster
@@ -91,6 +93,18 @@ healtcheck_cmd = python -c "import socket;print(True) if all([0 == socket.socket
volumes =
bind:rw:{toxinidir}/docker/cluster/redis.conf:/redis.conf
+[docker:stunnel]
+name = stunnel
+image = redisfab/stunnel:latest
+healtcheck_cmd = python -c "import socket;print(True) if 0 == socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect_ex(('127.0.0.1',6666)) else False"
+links =
+ master:master
+ports =
+ 6666:6666/tcp
+volumes =
+ bind:ro:{toxinidir}/docker/stunnel/conf:/etc/stunnel/conf.d
+ bind:ro:{toxinidir}/docker/stunnel/keys:/etc/stunnel/keys
+
[isort]
profile = black
multi_line_output = 3
@@ -107,10 +121,12 @@ docker =
sentinel_3
redis_cluster
redismod
+ stunnel
extras =
hiredis: hiredis
setenv =
CLUSTER_URL = "redis://localhost:16379/0"
+run_before = {toxinidir}/docker/stunnel/create_certs.sh
commands =
standalone: pytest --cov=./ --cov-report=xml:coverage_redis.xml -W always -m 'not onlycluster' {posargs}
cluster: pytest --cov=./ --cov-report=xml:coverage_cluster.xml -W always -m 'not onlynoncluster and not redismod' --redis-url={env:CLUSTER_URL:} {posargs}
@@ -119,16 +135,9 @@ commands =
skipsdist = true
skip_install = true
deps = -r {toxinidir}/dev_requirements.txt
-docker =
- master
- replica
- sentinel_1
- sentinel_2
- sentinel_3
- redis_cluster
- redismod
- lots-of-pythons
+docker = {[testenv]docker}
commands = /usr/bin/echo
+run_before = {[testenv]run_before}
[testenv:linters]
deps_files = dev_requirements.txt