diff options
author | Gabriel do Nascimento Ribeiro <gabriel376@hotmail.com> | 2019-03-13 20:40:07 +0100 |
---|---|---|
committer | Sam Doran <sdoran@redhat.com> | 2019-03-13 20:40:07 +0100 |
commit | f97a593da552a209d51030636e956eb5d2d71dbb (patch) | |
tree | 906a63671eaef5ab76e62eaa7a2be420298ccead /test/integration/targets/group/tasks | |
parent | Merging of broadcast domain and Broadcast domain port (#51978) (diff) | |
download | ansible-f97a593da552a209d51030636e956eb5d2d71dbb.tar.xz ansible-f97a593da552a209d51030636e956eb5d2d71dbb.zip |
Add non_unique parameter for group module (#53085)
Diffstat (limited to 'test/integration/targets/group/tasks')
-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 ## |