docker-py/tests/integration
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
..
credentials Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
testdata/dummy-plugin Add create_plugin implementation 2017-02-09 17:58:05 -08:00
__init__.py Remove unused files 2015-11-12 11:21:37 -08:00
api_build_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
api_client_test.py Clean up unnecessary noqa comments 2023-08-15 13:36:53 +03:00
api_config_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
api_container_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
api_exec_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
api_healthcheck_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
api_image_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
api_network_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
api_plugin_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
api_secret_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
api_service_test.py test_service_logs: stop testing experimental versions 2024-11-18 16:09:21 +01:00
api_swarm_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
api_volume_test.py integration: test_create_volume_invalid_driver allow either 400 or 404 2025-01-14 14:23:24 +01:00
base.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
client_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
conftest.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
context_api_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
errors_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
models_containers_test.py Bump default API version to 1.45 (Moby 26.0/26.1) 2024-10-27 17:03:02 +01:00
models_images_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
models_networks_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
models_nodes_test.py Use unambiguous advertise-addr when initializing a swarm 2017-11-07 15:18:26 -08:00
models_resources_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
models_services_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
models_swarm_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
models_volumes_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00
regression_test.py Enable Ruff I (import sort), autofix 2024-01-03 21:28:56 +02:00