diff options
Diffstat (limited to 'test/integration/targets')
-rw-r--r-- | test/integration/targets/group/tasks/main.yml | 2 | ||||
-rw-r--r-- | test/integration/targets/group/tasks/tests.yml | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/integration/targets/group/tasks/main.yml b/test/integration/targets/group/tasks/main.yml index 3d200ba8bc..eb8126ddf6 100644 --- a/test/integration/targets/group/tasks/main.yml +++ b/test/integration/targets/group/tasks/main.yml @@ -23,6 +23,7 @@ loop: - ansibullgroup - ansibullgroup2 + - ansibullgroup3 - block: - name: run tests @@ -36,3 +37,4 @@ loop: - ansibullgroup - ansibullgroup2 + - ansibullgroup3
\ No newline at end of file diff --git a/test/integration/targets/group/tasks/tests.yml b/test/integration/targets/group/tasks/tests.yml index 680fc0e921..86a7702330 100644 --- a/test/integration/targets/group/tasks/tests.yml +++ b/test/integration/targets/group/tasks/tests.yml @@ -129,6 +129,22 @@ - not create_group_gid_again is changed - create_group_gid_again.gid | int == gid.stdout_lines[0] | int +- block: + - name: create a group with a non-unique gid + group: + name: ansibullgroup3 + gid: '{{ gid.stdout_lines[0] }}' + non_unique: true + state: present + register: create_group_gid_non_unique + + - name: assert create group with a non unique gid + assert: + that: + - create_group_gid_non_unique is changed + - create_group_gid_non_unique.gid | int == gid.stdout_lines[0] | int + when: ansible_facts.system != 'Darwin' + ## ## group remove ## |