-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix win_user_right ansible module integration test assertions
- Loading branch information
Showing
2 changed files
with
287 additions
and
281 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
--- | ||
- name: get current entries for right | ||
- name: Get current entries for right | ||
test_get_right: | ||
name: '{{test_win_user_right_name}}' | ||
name: '{{ test_win_user_right_name }}' | ||
register: actual_users | ||
|
||
- name: get facts | ||
setup: | ||
- name: Get facts | ||
ansible.builtin.setup: | ||
|
||
- block: | ||
- name: ensure right is empty before test | ||
win_user_right: | ||
name: '{{test_win_user_right_name}}' | ||
users: [] | ||
action: set | ||
- name: Ensure rights | ||
block: | ||
- name: Ensure right is empty before test | ||
ansible.windows.win_user_right: | ||
name: '{{ test_win_user_right_name }}' | ||
users: [] | ||
action: set | ||
|
||
- name: run tests | ||
include_tasks: tests.yml | ||
- name: Run tests | ||
ansible.builtin.include_tasks: tests.yml | ||
|
||
always: | ||
- name: reset entries for test right | ||
win_user_right: | ||
name: '{{test_win_user_right_name}}' | ||
users: '{{actual_users.users}}' | ||
action: set | ||
- name: Reset entries for test right | ||
ansible.windows.win_user_right: | ||
name: '{{ test_win_user_right_name }}' | ||
users: '{{ actual_users.users }}' | ||
action: set |
Oops, something went wrong.