spiegel_podman/test/apiv2/python/rest_api
Jordan Rodgers 7ecac4a65e compat: return 409 Conflict when container name is already in use
The Docker API spec defines HTTP 409 for POST /containers/create when
the requested name is already in use. The handler was returning 500 for
all errors from ContainerCreate, including ErrCtrExists.

This mismatch breaks buildx parallel builds on Podman: buildx checks
for a conflict response to safely converge multiple concurrent builders
onto the already-running BuildKit container. With 500 it treats the
conflict as a fatal error instead, causing all but the first parallel
build to fail.

The fix follows the same pattern already used in the rename handler,
which correctly returns 409 for ErrCtrExists. The swagger annotation
for this endpoint already documents the 409 response.

Signed-off-by: Jordan Rodgers <com6056@gmail.com>
2026-03-13 09:53:04 -07:00
..
fixtures Add local artifact add API endpoint 2025-11-19 18:20:29 +01:00
__init__.py Break up python APIv2 tests 2021-05-18 08:39:35 -07:00
test_v2_0_0_artifact.py Merge pull request #27426 from Honny1/local-api-artifact-add 2025-12-12 16:49:50 +01:00
test_v2_0_0_container.py compat: return 409 Conflict when container name is already in use 2026-03-13 09:53:04 -07:00
test_v2_0_0_image.py Make libpod return error status code on failure to pull image 2026-03-09 14:26:14 +01:00
test_v2_0_0_manifest.py Break up python APIv2 tests 2021-05-18 08:39:35 -07:00
test_v2_0_0_network.py Remove CNI-specific test cases 2026-01-27 16:32:38 +05:30
test_v2_0_0_pod.py Break up python APIv2 tests 2021-05-18 08:39:35 -07:00
test_v2_0_0_system.py Add missing security options to /info response 2023-04-16 18:27:16 +02:00
test_v2_0_0_volume.py Allow label and labels when creating volumes 2021-10-28 16:02:22 -07:00
v1_test_rest_v1_0_0.py Fix documentation of use of tcp connections 2022-08-23 16:12:08 -04:00