From Fedora Project Wiki

Revision as of 14:19, 18 March 2024 by Sumantrom (talk | contribs) (Created page with "{{QA/Test_Case |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. |actions= # Open a terminal. # Execute `podman ps` to list running containers. # Execute `podman ps -a` to list all containers, including stopped ones. |results= # The `podman ps` command lists currently running containers. # The `podman ps -a` command shows all containers, correctly reflectin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

  1. Open a terminal.
  2. Execute podman ps to list running containers.
  3. Execute podman ps -a to list all containers, including stopped ones.

Expected Results

  1. The podman ps command lists currently running containers.
  2. 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.