From Fedora Project Wiki
Description
This test case checks if Podman can list running and stopped containers correctly.
Setup
Ensure Podman is installed and has run at least one container.
How to test
- Open a terminal.
- Execute
podman ps
to list running containers. - Execute
podman ps -a
to list all containers, including stopped ones.
Expected Results
- The
podman ps
command lists currently running containers. - The
podman ps -a
command shows all containers, correctly reflecting their status (running or stopped).
Optional
For a more comprehensive test, create containers with different statuses (paused, restarting) and verify if they are listed appropriately.