Blob Blame History Raw
# Tests for basic role
- hosts: localhost
  roles:
  - role: standard-test-basic
    tags:
    - atomic
    - classic
    - container
    tests:
    - basic-simple-test
    - basic-parameters-test:
        dir: ./
        run: echo "check parameters on basic role" | grep "check parameters on basic role"
    required_packages:
    - iscsi-initiator-utils   # test if we can install packages

# Tests to verify basic role execution
- hosts: localhost
  roles:
  - role: standard-test-basic
    tags:
    - atomic
    - classic
    - container
    tests:
    - basic-verify-test

- import_playbook: tests_verify_local.yml

#### Make sure the role behaves correctly if test fails
- hosts: localhost
  roles:
  - role: standard-test-basic
    tags:
    - atomic
    - classic
    - container
    tests:
    - basic-fail-test
    ignore_errors: yes

# Tests to verify failed role execution
- hosts: localhost
  roles:
  - role: standard-test-basic
    tags:
    - atomic
    - classic
    - container
    tests:
    - basic-fix-failed-test
    - basic-verify-test

- import_playbook: tests_verify_local.yml