spiegel_podman/test/apiv2/python
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
..
rest_api bug: Correct Docker compat REST API image delete endpoint 2025-04-27 20:51:11 +10:00
__init__.py Break up python APIv2 tests 2021-05-18 08:39:35 -07:00
conftest.py Move all python tests to pytest 2022-03-04 10:35:29 -07:00
requirements.txt chore(deps): update dependency setuptools to v79 2025-04-20 16:01:15 +00:00