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:
mkschuel 2021-09-10 23:38:26 +02:00 committed by GitHub
parent 05fe587a3e
commit 58d018ebbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 96 additions and 8 deletions

View file

@ -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"