Debian Codegraph @

ansible_collections/community/zabbix/tests/integration/targets/test_zabbix_httptest/tasks/main.yml

raw
1 ---
2 - name: test - do not run tests for Zabbix < 7.0
3 meta: end_play
4 when: zabbix_version is version('7.0', '<')
5
6 - block:
7 # setup stuff
8 - include_tasks: zabbix_setup.yml
9
10 # zabbix_httptest module tests
11 - include_tasks: zabbix_tests.yml
12
13 # tear down stuff set up earlier
14 - include_tasks: zabbix_teardown.yml
15
16 always:
17 - name: "cleanup httptest if tests failed"
18 community.zabbix.zabbix_httptest:
19 host_name: ExampleHost
20 name: "{{ item }}"
21 state: absent
22 ignore_errors: true
23 loop:
24 - ExampleTest
25 - NewExampleTest