Skip to content

Commit

Permalink
test: cockpit-pcp is deprecated - use cockpit-composer
Browse files Browse the repository at this point in the history
The tests_packages_full test is failing on el9.6 and later - cockpit-pcp
is missing - use cockpit-composer instead which seems to be available
on all EL platform versions.

Signed-off-by: Rich Megginson <[email protected]>
  • Loading branch information
richm committed Nov 15, 2024
1 parent 988ef73 commit 8cd2fd4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/tests_packages_full.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
- name: "Test cockpit_packages: full"
hosts: all
gather_facts: true
tasks:
- name: Tests
block:
Expand Down Expand Up @@ -32,10 +33,14 @@
when: "'cockpit' not in ansible_facts.packages"

# extra package (part of full)
- name: Test - cockpit-pcp is installed
- name: Test - extra package is installed
fail:
msg: cockpit-pcp is not installed
when: "'cockpit-pcp' not in ansible_facts.packages"
msg: "{{ _extra_pkg }} is not installed"
when: _extra_pkg not in ansible_facts.packages
vars:
_extra_pkg: "{{ 'cockpit-composer'
if ansible_facts['os_family'] == 'RedHat'
else 'ansible-pcp' }}"

# another extra package (part of full)
- name: Test - cockpit-doc is installed
Expand Down

0 comments on commit 8cd2fd4

Please sign in to comment.