automation-tests/test/apiv2/python/rest_api
Lewis Roy 6e7de438cc
bug: Correct Docker compat REST API image delete endpoint
The Docker `-XDELETE image/$name?force=true` endpoint only removes
containers using an image if they are in a non running state.

In Podman, when forcefully removing images we also forcefully delete
containers using the image including running containers.

This patch changes the Docker image force delete compat API to act like the
Docker API while maintaining commands like `podman rmi -f $imagename`

It also corrects the API return code returned when an image is requested
to be deleted with running containers using it.

Fixes: https://github.com/containers/podman/issues/25871

Signed-off-by: Lewis Roy <lewis@redhat.com>
2025-04-27 20:51:11 +10:00
..
fixtures Drop APIv2 CNI configuration 2024-08-09 10:20:38 -04:00
__init__.py Break up python APIv2 tests 2021-05-18 08:39:35 -07:00
test_v2_0_0_container.py Add label! filter and tests to containers and pods 2023-09-16 18:46:33 +08:00
test_v2_0_0_image.py bug: Correct Docker compat REST API image delete endpoint 2025-04-27 20:51:11 +10: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 Set network ID if available during container inspect 2025-01-20 15:55:26 +01:00
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