From Fedora Project Wiki

Description

This test verifies that conmon-v3 captures standard output and standard error and preserves logs after the container exits.

How to test

  1. Run a container using file logging:
    podman run --name conmon-logs --log-driver=k8s-file registry.fedoraproject.org/fedora:latest sh -c 'echo STDOUT_OK; echo STDERR_OK >&2'
    
  2. Read its logs after it exits:
    podman logs conmon-logs
    
  3. Clean up:
    podman rm conmon-logs
    

Expected Results

  1. The container prints STDOUT_OK and STDERR_OK.
  2. Both messages are present in podman logs after the container exits.
  3. No particular ordering between the two messages is required.