[APIv2] /networks endpoint returns null
instead of []
when there're no networks
#9293
Labels
In Progress
This issue is actively being worked by the assignee, please do not work on this at this time.
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 a flaky assertion in the
TestNetworks::test_remove_network
test.It seems that Podman 3.0.0-dev wrongly returns
null
(instead of[]
) from the/networks
endpoint when no networks are defined.Steps to reproduce the issue:
Describe the results you received:
Response was
200 null
Describe the results you expected:
Response was
200 []
Additional information you deem important (e.g. issue happens only occasionally):
FWIW: Podman 2.2.1 returns the correct result.
The text was updated successfully, but these errors were encountered: