Add require_two_factor_authentication property to gitlab group (#3367) (#3399)

* feat: add require_two_factor_authentication property

* chore: add changelog fragment

* chore: add gitlab_group test tasks

* chore: add gitlab tests

* chore: add gitlab group tests

* docs: apply suggestions

* fix: removing default value

(cherry picked from commit 9ce1009643)

Co-authored-by: Chris Frage <git@sh0shin.org>
This commit is contained in:
patchback[bot] 2021-09-20 07:18:43 +02:00 committed by GitHub
parent 65c10de630
commit 34b7876e4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 53 additions and 6 deletions

View file

@ -195,6 +195,7 @@ def resp_get_group(url, request):
'"web_url": "http://localhost:3000/groups/foo-bar", "request_access_enabled": false,'
'"full_name": "Foobar Group", "full_path": "foo-bar",'
'"project_creation_level": "maintainer", "subgroup_creation_level": "maintainer",'
'"require_two_factor_authentication": true,'
'"file_template_project_id": 1, "parent_id": null, "projects": [{"id": 1,"description": null, "default_branch": "master",'
'"ssh_url_to_repo": "git@example.com:diaspora/diaspora-client.git",'
'"http_url_to_repo": "http://example.com/diaspora/diaspora-client.git",'
@ -227,7 +228,8 @@ def resp_create_group(url, request):
'"web_url": "http://localhost:3000/groups/foo-bar", "request_access_enabled": false,'
'"full_name": "Foobar Group", "full_path": "foo-bar",'
'"file_template_project_id": 1, "parent_id": null,'
'"project_creation_level": "developer", "subgroup_creation_level": "maintainer"}')
'"project_creation_level": "developer", "subgroup_creation_level": "maintainer",'
'"require_two_factor_authentication": true}')
content = content.encode("utf-8")
return response(200, content, headers, None, 5, request)
@ -241,7 +243,8 @@ def resp_create_subgroup(url, request):
'"web_url": "http://localhost:3000/groups/foo-bar/bar-foo", "request_access_enabled": false,'
'"full_name": "BarFoo Group", "full_path": "foo-bar/bar-foo",'
'"file_template_project_id": 1, "parent_id": 1,'
'"project_creation_level": "noone"}')
'"project_creation_level": "noone",'
'"require_two_factor_authentication": true}')
content = content.encode("utf-8")
return response(200, content, headers, None, 5, request)