summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorentin Henry <corentinhenry@gmail.com>2018-12-12 17:10:04 +0100
committerJoffrey F <joffrey@docker.com>2019-01-09 11:30:58 -0800
commit4f79ba160e78f5327c683b6a7797bde5dfb6dc32 (patch)
treeef3690324accfc5d276a212315232cd09526481c
parent545adc2a59193cbdf4fc79bfe761828229d1dc0f (diff)
downloaddocker-py-4f79ba160e78f5327c683b6a7797bde5dfb6dc32.tar.gz
make the integration tests more verbose
Signed-off-by: Corentin Henry <corentinhenry@gmail.com>
-rw-r--r--Jenkinsfile2
-rw-r--r--Makefile12
2 files changed, 7 insertions, 7 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 33a0fc3..387e147 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -91,7 +91,7 @@ def runTests = { Map settings ->
--network ${testNetwork} \\
--volumes-from ${dindContainerName} \\
${testImage} \\
- py.test -v -rxs tests/integration
+ py.test -vv -rxs tests/integration
"""
} finally {
sh """
diff --git a/Makefile b/Makefile
index 434d40e..684716a 100644
--- a/Makefile
+++ b/Makefile
@@ -35,11 +35,11 @@ unit-test-py3: build-py3
.PHONY: integration-test
integration-test: build
- docker run -t --rm -v /var/run/docker.sock:/var/run/docker.sock docker-sdk-python py.test -v tests/integration/${file}
+ docker run -t --rm -v /var/run/docker.sock:/var/run/docker.sock docker-sdk-python py.test -vv tests/integration/${file}
.PHONY: integration-test-py3
integration-test-py3: build-py3
- docker run -t --rm -v /var/run/docker.sock:/var/run/docker.sock docker-sdk-python3 py.test tests/integration/${file}
+ docker run -t --rm -v /var/run/docker.sock:/var/run/docker.sock docker-sdk-python3 py.test -vv tests/integration/${file}
TEST_API_VERSION ?= 1.35
TEST_ENGINE_VERSION ?= 17.12.0-ce
@@ -57,7 +57,7 @@ integration-dind-py2: build setup-network
docker run -d --network dpy-tests --name dpy-dind-py2 --privileged\
dockerswarm/dind:${TEST_ENGINE_VERSION} dockerd -H tcp://0.0.0.0:2375 --experimental
docker run -t --rm --env="DOCKER_HOST=tcp://dpy-dind-py2:2375" --env="DOCKER_TEST_API_VERSION=${TEST_API_VERSION}"\
- --network dpy-tests docker-sdk-python py.test tests/integration
+ --network dpy-tests docker-sdk-python py.test -vv tests/integration
docker rm -vf dpy-dind-py2
.PHONY: integration-dind-py3
@@ -66,7 +66,7 @@ integration-dind-py3: build-py3 setup-network
docker run -d --network dpy-tests --name dpy-dind-py3 --privileged\
dockerswarm/dind:${TEST_ENGINE_VERSION} dockerd -H tcp://0.0.0.0:2375 --experimental
docker run -t --rm --env="DOCKER_HOST=tcp://dpy-dind-py3:2375" --env="DOCKER_TEST_API_VERSION=${TEST_API_VERSION}"\
- --network dpy-tests docker-sdk-python3 py.test tests/integration
+ --network dpy-tests docker-sdk-python3 py.test -vv tests/integration
docker rm -vf dpy-dind-py3
.PHONY: integration-dind-ssl
@@ -81,10 +81,10 @@ integration-dind-ssl: build-dind-certs build build-py3
--tlskey=/certs/server-key.pem -H tcp://0.0.0.0:2375 --experimental
docker run -t --rm --volumes-from dpy-dind-ssl --env="DOCKER_HOST=tcp://docker:2375"\
--env="DOCKER_TLS_VERIFY=1" --env="DOCKER_CERT_PATH=/certs" --env="DOCKER_TEST_API_VERSION=${TEST_API_VERSION}"\
- --network dpy-tests docker-sdk-python py.test tests/integration
+ --network dpy-tests docker-sdk-python py.test -vv tests/integration
docker run -t --rm --volumes-from dpy-dind-ssl --env="DOCKER_HOST=tcp://docker:2375"\
--env="DOCKER_TLS_VERIFY=1" --env="DOCKER_CERT_PATH=/certs" --env="DOCKER_TEST_API_VERSION=${TEST_API_VERSION}"\
- --network dpy-tests docker-sdk-python3 py.test tests/integration
+ --network dpy-tests docker-sdk-python3 py.test -vv tests/integration
docker rm -vf dpy-dind-ssl dpy-dind-certs
.PHONY: flake8