-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: find cockpit test group dynamically
https://cockpit-project.org/blog/cockpit-317.html changed the user/group name from cockpit-ws to cockpit-wsinstance which causes tests to fail. Instead, add a task file tests/tasks/get_cockpit_group.yml to determine which group name to use. Signed-off-by: Rich Megginson <[email protected]>
- Loading branch information
Showing
5 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# SPDX-License-Identifier: MIT | ||
--- | ||
- name: Get name of cockpit group for tests | ||
getent: | ||
database: group | ||
key: cockpit-wsinstance | ||
fail_key: false | ||
|
||
- name: Set __cockpit_test_group | ||
set_fact: | ||
__cockpit_test_group: "{{ 'cockpit-wsinstance' | ||
if 'cockpit-wsinstance' in ansible_facts['getent_group'] | ||
else 'cockpit-ws' }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters