Browse code

Update docker-py to 4.3.0

full diff: https://github.com/docker/docker-py/compare/4.2.2...4.3.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2020/08/12 00:38:05
Showing 1 changed files
... ...
@@ -7,20 +7,15 @@ source hack/make/.integration-test-helpers
7 7
 # TODO docker 17.06 cli client used in CI fails to build using a sha;
8 8
 # unable to prepare context: unable to 'git clone' to temporary context directory: error fetching: error: no such remote ref ead0bb9e08c13dd3d1712759491eee06bf5a5602
9 9
 #: exit status 128
10
-: "${DOCKER_PY_COMMIT:=4.2.2}"
11
-
12
-# Override the API version used to make sure all tests are run
13
-# TODO remove this or unset this after https://github.com/docker/docker-py/pull/2512 is merged
14
-: "${DOCKER_PY_TEST_API_VERSION:=1.39}"
10
+: "${DOCKER_PY_COMMIT:=4.3.0}"
15 11
 
16 12
 # custom options to pass py.test
17
-# TODO remove these skip once we update to a docker-py version that has https://github.com/docker/docker-py/pull/2624: CreateContainerTest::test_invalid_log_driver_raises_exception
18 13
 #
19 14
 # This option can be used to temporarily skip flaky tests (using the `--deselect`
20 15
 # flag) until they are fixed upstream. For example:
21 16
 # --deselect=tests/integration/api_container_test.py::AttachContainerTest::test_attach_no_stream
22 17
 # TODO re-enable test after https://github.com/docker/docker-py/issues/2513 has been resolved
23
-: "${PY_TEST_OPTIONS:=--junitxml=${DEST}/junit-report.xml --deselect=tests/integration/api_container_test.py::AttachContainerTest::test_attach_no_stream --deselect=tests/integration/api_container_test.py::CreateContainerTest::test_invalid_log_driver_raises_exception}"
18
+: "${PY_TEST_OPTIONS:=--junitxml=${DEST}/junit-report.xml --deselect=tests/integration/api_container_test.py::AttachContainerTest::test_attach_no_stream}"
24 19
 (
25 20
 	bundle .integration-daemon-start
26 21
 
... ...
@@ -61,7 +56,7 @@ source hack/make/.integration-test-helpers
61 61
 	(
62 62
 		[ -n "${TESTDEBUG}" ] && set -x
63 63
 		# shellcheck disable=SC2086,SC2140
64
-		exec docker run --rm ${run_opts} -e DOCKER_TEST_API_VERSION="${DOCKER_PY_TEST_API_VERSION}" --mount type=bind,"src=${ABS_DEST}","dst=/src/${DEST}" "${docker_py_image}" pytest ${PY_TEST_OPTIONS} tests/integration
64
+		exec docker run --rm ${run_opts} --mount type=bind,"src=${ABS_DEST}","dst=/src/${DEST}" "${docker_py_image}" pytest ${PY_TEST_OPTIONS} tests/integration
65 65
 	)
66 66
 	bundle .integration-daemon-stop
67 67
 ) 2>&1 | tee -a "$DEST/test.log"