- import_playbook: prepare.yml
# Tests for beakerlib role
- hosts: localhost
tags:
- atomic
- classic
- container
roles:
- role: standard-test-beakerlib
tests:
- test-beakerlib-simple
required_packages:
- "{{req_pkg}}"
tasks:
- import_tasks: shared-tasks/artifacts_test_env.yml
- import_tasks: shared-tasks/artifacts_test_runner.yml
# Make sure the role behaves correctly if test fails
- hosts: localhost
tags:
- atomic
- classic
- container
roles:
- role: standard-test-beakerlib
tests:
- test-beakerlib-fail
ignore_errors: yes
tasks:
# 'tests_verify_failed_test' tasks should run after 'test-beakerlib-fail'
- import_tasks: shared-tasks/verify_failed_test.yml
- import_tasks: shared-tasks/artifacts_test_env.yml
- import_tasks: shared-tasks/artifacts_test_runner.yml