podman/tests/test_podman.yml
Ed Santiago 67da5bfbb7 Much-belated cleanup
- remove all references to cgroups v1. That code never worked,
  and "cgroups v2" in test names was misleading because it
  implied an alternative. Remove it.
- refactor podman remote and local tests
- clean up docs
- Ansible bitrot cleanup ("this is deprecated, use that")

Tested using 1minutetip but even so this is a big change and
we need to be prepared for fallout in the next bodhi.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-02-02 10:38:08 +00:00

40 lines
1.0 KiB
YAML

---
- hosts: localhost
tags:
- classic
- container
vars:
- artifacts: ./artifacts
rootless_user: testuser
roles:
- role: disable_systemd_resolved
- role: rootless_user_ready
tasks:
# At the start of a run, clean up state. Useful for test reruns.
- name: local artifacts directory exists
local_action: file path="{{ artifacts }}" state=directory
- name: remove stale log files
local_action: shell rm -f {{ artifacts }}/test*.log
- name: clear test results (test.log)
local_action: command truncate --size=0 {{ artifacts }}/test.log
- name: clear test results (results.yml)
local_action: copy content="results:\n" dest={{ artifacts }}/results.yml
# These are the actual tests.
- name: test podman
include_tasks: run_podman_tests.yml
loop: [ podman, podman-remote ]
loop_control:
loop_var: podman_bin
- name: test toolbox
include_tasks: test_toolbox.yml
# Postprocessing: check for FAIL or ERROR in any test, exit 1 if so
- name: check results
include_tasks: check_results.yml