From a4406b781e3e86c924368a4c366c3a0d1a13b820 Mon Sep 17 00:00:00 2001 From: Andreas Marschke Date: Mon, 15 Jan 2024 22:05:14 +0100 Subject: [PATCH] Add Extractor capability --- .dredd/hooks/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.dredd/hooks/main.go b/.dredd/hooks/main.go index 3d5469a6..fa977aed 100644 --- a/.dredd/hooks/main.go +++ b/.dredd/hooks/main.go @@ -100,6 +100,8 @@ func main() { h.Before("project > /api/project/{project_id}/environment/{environment_id} > Update environment > 204 > application/json", capabilityWrapper("environment")) h.Before("project > /api/project/{project_id}/environment/{environment_id} > Removes environment > 204 > application/json", capabilityWrapper("environment")) + h.Before("webhook > /api/project/{project_id}/webhook/{webhook_id}/extractors", capabilityWrapper("webhookextractor")) + h.Before("project > /api/project/{project_id}/templates > create template > 201 > application/json", func(t *trans.Transaction) { addCapabilities([]string{"repository", "inventory", "environment", "view"}) })