Skip to content

Commit

Permalink
skip test on unsupported platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
richm committed Dec 5, 2023
1 parent 6e1c535 commit 816e404
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/tests_verify_notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
metrics_webhook_endpoint: "{{ __test_webhook }}"

pre_tasks:
- name: Skip test if not supported by platform
meta: end_host
when: (ansible_distribution in ['RedHat', 'CentOS'] and
(ansible_facts['distribution_version'] is version('9.3', '<'))) or
ansible_distribution not in ['Fedora', 'RedHat', 'CentOS']

- name: Save state of services
import_tasks: get_services_state.yml

Expand Down

0 comments on commit 816e404

Please sign in to comment.