summaryrefslogtreecommitdiff
path: root/tests/functional/api
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-06-27 20:26:41 +0200
committerGitHub <noreply@github.com>2021-06-27 20:26:41 +0200
commit6abf13a7e25e368da342e7d1da6cfc19915c2dfd (patch)
tree260ab3034ff8a51dcfcb5d56805d1120dcd02f71 /tests/functional/api
parent33d342818599f403434e7024097449b6f21babc0 (diff)
parent953f207466c53c28a877f2a88da9160acef40643 (diff)
downloadgitlab-6abf13a7e25e368da342e7d1da6cfc19915c2dfd.tar.gz
Merge pull request #1533 from sugonyak/add-group-hooks
feat(api): add group hooks
Diffstat (limited to 'tests/functional/api')
-rw-r--r--tests/functional/api/test_groups.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/functional/api/test_groups.py b/tests/functional/api/test_groups.py
index 439d01c..312fc7e 100644
--- a/tests/functional/api/test_groups.py
+++ b/tests/functional/api/test_groups.py
@@ -209,3 +209,16 @@ def test_group_wiki(group):
wiki.save()
wiki.delete()
assert len(group.wikis.list()) == 0
+
+
+@pytest.mark.skip(reason="EE feature")
+def test_group_hooks(group):
+ hook = group.hooks.create({"url": "http://hook.url"})
+ assert len(group.hooks.list()) == 1
+
+ hook.note_events = True
+ hook.save()
+
+ hook = group.hooks.get(hook.id)
+ assert hook.note_events is True
+ hook.delete()