mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
0168ddc77d
commit
3ee1ab87b7
1 changed files with 3 additions and 8 deletions
|
@ -7,20 +7,15 @@ source hack/make/.integration-test-helpers
|
||||||
# TODO docker 17.06 cli client used in CI fails to build using a sha;
|
# TODO docker 17.06 cli client used in CI fails to build using a sha;
|
||||||
# unable to prepare context: unable to 'git clone' to temporary context directory: error fetching: error: no such remote ref ead0bb9e08c13dd3d1712759491eee06bf5a5602
|
# unable to prepare context: unable to 'git clone' to temporary context directory: error fetching: error: no such remote ref ead0bb9e08c13dd3d1712759491eee06bf5a5602
|
||||||
#: exit status 128
|
#: exit status 128
|
||||||
: "${DOCKER_PY_COMMIT:=4.2.2}"
|
: "${DOCKER_PY_COMMIT:=4.3.0}"
|
||||||
|
|
||||||
# Override the API version used to make sure all tests are run
|
|
||||||
# TODO remove this or unset this after https://github.com/docker/docker-py/pull/2512 is merged
|
|
||||||
: "${DOCKER_PY_TEST_API_VERSION:=1.39}"
|
|
||||||
|
|
||||||
# custom options to pass py.test
|
# custom options to pass py.test
|
||||||
# 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
|
|
||||||
#
|
#
|
||||||
# This option can be used to temporarily skip flaky tests (using the `--deselect`
|
# This option can be used to temporarily skip flaky tests (using the `--deselect`
|
||||||
# flag) until they are fixed upstream. For example:
|
# flag) until they are fixed upstream. For example:
|
||||||
# --deselect=tests/integration/api_container_test.py::AttachContainerTest::test_attach_no_stream
|
# --deselect=tests/integration/api_container_test.py::AttachContainerTest::test_attach_no_stream
|
||||||
# TODO re-enable test after https://github.com/docker/docker-py/issues/2513 has been resolved
|
# TODO re-enable test after https://github.com/docker/docker-py/issues/2513 has been resolved
|
||||||
: "${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}"
|
: "${PY_TEST_OPTIONS:=--junitxml=${DEST}/junit-report.xml --deselect=tests/integration/api_container_test.py::AttachContainerTest::test_attach_no_stream}"
|
||||||
(
|
(
|
||||||
bundle .integration-daemon-start
|
bundle .integration-daemon-start
|
||||||
|
|
||||||
|
@ -61,7 +56,7 @@ source hack/make/.integration-test-helpers
|
||||||
(
|
(
|
||||||
[ -n "${TESTDEBUG}" ] && set -x
|
[ -n "${TESTDEBUG}" ] && set -x
|
||||||
# shellcheck disable=SC2086,SC2140
|
# shellcheck disable=SC2086,SC2140
|
||||||
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
|
exec docker run --rm ${run_opts} --mount type=bind,"src=${ABS_DEST}","dst=/src/${DEST}" "${docker_py_image}" pytest ${PY_TEST_OPTIONS} tests/integration
|
||||||
)
|
)
|
||||||
bundle .integration-daemon-stop
|
bundle .integration-daemon-stop
|
||||||
) 2>&1 | tee -a "$DEST/test.log"
|
) 2>&1 | tee -a "$DEST/test.log"
|
||||||
|
|
Loading…
Add table
Reference in a new issue