Skip to content

Commit

Permalink
test: skip rpm installation test on ostree systems
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjelinek authored and richm committed Nov 29, 2023
1 parent 530f6d7 commit dc31b9e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/tests_cluster_basic_custom_fence_agents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@
name: linux-system-roles.ha_cluster
tasks_from: test_setup.yml

- name: Skip test on ostree systems
meta: end_host
when: __ha_cluster_is_ostree | d(false)

- name: Ensure fence-agents-all is not installed
package:
name: fence-agents-all
state: absent
when: not __ha_cluster_is_ostree | d(false)

- name: Run HA Cluster role
include_role:
Expand All @@ -30,14 +33,12 @@

- name: Get packages status
package_facts:
when: not __ha_cluster_is_ostree | d(false)

- name: Check installed fence-agents packages
assert:
that:
- "'fence-agents-all' not in ansible_facts.packages"
- "'fence-agents-ipmilan' in ansible_facts.packages"
when: not __ha_cluster_is_ostree | d(false)

- name: Check cluster status
include_tasks: tasks/assert_cluster_running.yml

0 comments on commit dc31b9e

Please sign in to comment.