Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions ci/playbooks/kuttl/run-kuttl-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
ansible.builtin.include_role:
name: 'install_yamls_makes'
tasks_from: 'make_{{ operator }}_kuttl.yml'
apply:
ignore_errors: true # noqa: ignore-errors

- name: 'Get resource status after {{ operator }}_kuttl run'
environment:
Expand Down Expand Up @@ -88,3 +90,14 @@
mode: '0644'
loop: "{{ _cifmw_kuttl_xml_files.files }}"
ignore_errors: true # noqa: ignore-errors

# Note: the variable checked here is set by the specific autogenerated task
# for the autogenerated install_yamls_makes role.
- name: Fail when any tests failed
vars:
_kuttl_curr_operator_result: "{{ lookup('vars', 'make_' + operator + '_kuttl_status')|default(1) }}"
ansible.builtin.assert:
that:
- _kuttl_curr_operator_result.rc == 0
success_msg: "KUTTL tests for {{ operator }} passed"
fail_msg: "KUTTL tests for {{ operator }} failed"
Loading