mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-08 22:30:04 -07:00
Adds few more gitlab group options (#3248)
* Adds few more gitlab group options * Update plugins/modules/source_control/gitlab/gitlab_group.py Co-authored-by: Felix Fontein <felix@fontein.de> * Removes default for new string options * Removes default from argument_spec * Adds changelog fragment * Update plugins/modules/source_control/gitlab/gitlab_group.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/source_control/gitlab/gitlab_group.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/source_control/gitlab/gitlab_group.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Maik Schueller <maik.schueller@sap.com> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
05fe587a3e
commit
58d018ebbd
5 changed files with 96 additions and 8 deletions
|
@ -72,3 +72,28 @@
|
|||
assert:
|
||||
that:
|
||||
- gitlab_group_state_desc.group.description == "My Test Group"
|
||||
|
||||
- name: Cleanup GitLab Group for project_creation_level Test
|
||||
gitlab_group:
|
||||
api_url: "{{ gitlab_host }}"
|
||||
validate_certs: false
|
||||
api_token: "{{ gitlab_login_token }}"
|
||||
name: ansible_test_group
|
||||
path: ansible_test_group
|
||||
state: absent
|
||||
|
||||
- name: Create GitLab Group for project_creation_level Test
|
||||
gitlab_group:
|
||||
api_url: "{{ gitlab_host }}"
|
||||
validate_certs: false
|
||||
api_token: "{{ gitlab_login_token }}"
|
||||
name: ansible_test_group
|
||||
path: ansible_test_group
|
||||
project_creation_level: noone
|
||||
state: present
|
||||
register: gitlab_group_state_pcl
|
||||
|
||||
- name: Test group created with project_creation_level
|
||||
assert:
|
||||
that:
|
||||
- gitlab_group_state_pcl.group.project_creation_level == "noone"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue