mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
added description parameter to create request (#1196)
* added description parameter to create request * added changelog fragment * Update changelogs/fragments/1196-use_description-in-gitlab-group-creation.yml Co-authored-by: Felix Fontein <felix@fontein.de> * added integration test for description in gitlab_group * per request in the PR, creating separate task for the description issue in the integration test * replaced deprecated param names with new names * description should be optional to keep backward compatibility * Update plugins/modules/source_control/gitlab/gitlab_group.py Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
2b0f7b858e
commit
7db2ce5be3
4 changed files with 43 additions and 9 deletions
|
@ -66,11 +66,14 @@ class TestGitlabGroup(GitlabModuleTestCase):
|
|||
|
||||
@with_httmock(resp_create_group)
|
||||
def test_create_group(self):
|
||||
group = self.moduleUtil.createGroup({'name': "Foobar Group", 'path': "foo-bar"})
|
||||
group = self.moduleUtil.createGroup({'name': "Foobar Group",
|
||||
'path': "foo-bar",
|
||||
'description': "An interesting group"})
|
||||
|
||||
self.assertEqual(type(group), Group)
|
||||
self.assertEqual(group.name, "Foobar Group")
|
||||
self.assertEqual(group.path, "foo-bar")
|
||||
self.assertEqual(group.description, "An interesting group")
|
||||
self.assertEqual(group.id, 1)
|
||||
|
||||
@with_httmock(resp_create_subgroup)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue