# Tests for rhts role only runs on classic tag
- hosts: localhost
roles:
- role: standard-test-rhts
tags:
- classic
tests:
- rhts-simple-test
required_packages:
- iscsi-initiator-utils # test if we can install packages
# Tests to verify rhts role execution
# Using basic role becasue it is easier to know where the artifacts should be created
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- rhts-verify-test
- import_playbook: tests_verify_local.yml
#### Make sure the role behaves correctly if test fails
- hosts: localhost
roles:
- role: standard-test-rhts
tags:
- classic
tests:
- rhts-fail-test
ignore_errors: yes
# Tests to verify failed role execution
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- rhts-fix-failed-test
- rhts-verify-test
- import_playbook: tests_verify_local.yml