debian-forge-composer/schutzbot/test.yml
Lars Karlitski e4df938152 schutzbot: remove all timeouts except the global one
When we ran into these timeouts, they were always false negatives. It is
hard to find right values for them.

If someone does introduce a bug that hangs one of the tests, we still
have the global timeout.

Fixes #648
2020-05-20 07:21:13 -05:00

55 lines
1.4 KiB
YAML

---
- hosts: localhost
become: yes
vars:
passed_tests: []
failed_tests: []
vars_files:
- vars.yml
tasks:
- name: Run osbuild-composer base tests
include_tasks: test_runner_base.yml
loop: "{{ osbuild_composer_base_tests }}"
loop_control:
loop_var: test
when:
- test_type == 'base'
- name: Run osbuild-composer image tests
include_tasks: test_runner_image.yml
loop: "{{ osbuild_composer_image_test_cases }}"
loop_control:
loop_var: test_case
vars:
env_vars: "{{ osbuild_composer_image_env_vars }}"
when:
- test_type == 'image'
- name: Run osbuild-composer AWS tests
include_tasks: test_runner_image.yml
loop: "{{ osbuild_composer_aws_test_cases }}"
vars:
env_vars: "{{ osbuild_composer_aws_env_vars }}"
loop_control:
loop_var: test_case
when:
- test_type == 'aws'
- name: Show failed and passed tests
debug:
msg: |
Passed tests: {{ 'None' if not passed_tests else '' }}
{% for test_name in passed_tests %}
- {{ test_name }}
{% endfor %}
Failed tests: {{ 'None' if not failed_tests else '' }}
{% for test_name in failed_tests %}
- {{ test_name }}
{% endfor %}
- name: Fail the test run if a test failed
fail:
msg: One or more tests failed.
when: failed_tests