docker-py/tests
Sebastiaan van Stijn fad84c371a
integration: test_create_volume_invalid_driver allow either 400 or 404
The API currently returns a 404 error when trying to create a volume with
an invalid (non-existing) driver. We are considering changing this status
code to be a 400 (invalid parameter), as even though the _reason_ of the
error may be that the plugin / driver is not found, the _cause_ of the
error is that the user provided a plugin / driver that's invalid for the
engine they're connected to.

This patch updates the test to pass for either case.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-01-14 14:23:24 +01:00
..
gpg-keys Make dockerpycreds part of the SDK under docker.credentials 2019-04-30 23:37:55 -07:00
integration integration: test_create_volume_invalid_driver allow either 400 or 404 2025-01-14 14:23:24 +01:00
ssh Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
unit Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
Dockerfile Set a dummy-version if none set 2024-11-18 15:41:19 +01:00
Dockerfile-dind-certs breaking: Python 3.12 compatibility & remove custom SSL adapter (#3185) 2023-11-21 10:42:53 -05:00
Dockerfile-ssh-dind Bump default API version to 1.45 (Moby 26.0/26.1) 2024-10-27 17:03:02 +01:00
__init__.py Create tests module for setuptools test support 2013-07-13 01:07:04 -05:00
helpers.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00