[APIv2] /networks/prune
endpoint has wrong response format
#9310
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Trying to find regressions by exercising the APIv2 trough docker-py's test suite (see #5386) I came across the failing
TestNetworks::test_prune_networks
test.It seems that the Podman 3.0.0-dev
/networks/prune
endpoint wrongly returns the list of deleted networks directly[...]
(instead of nesting them according to the Docker API docs).Steps to reproduce the issue:
Describe the results you received:
The response looked like
200 ["<network name>", ...]
Describe the results you expected:
The response should look like
200 {"NetworksDeleted": ["<network name>", ...]}
Additional information you deem important (e.g. issue happens only occasionally):
Docker API docs: https://docs.docker.com/engine/api/v1.40/#operation/NetworkPrune
The text was updated successfully, but these errors were encountered: