Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: full test uses cockpit-composer or cockpit-machines #183

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-machines package is installed
- name: Test - extra package is installed
fail:
msg: cockpit-machines is not installed
when: "'cockpit-machines' 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 'cockpit-machines' }}"

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