From fc4925dc9bc9149638af9f0c9b29fc030f81a79b Mon Sep 17 00:00:00 2001 From: Andreas Marschke Date: Mon, 15 Jan 2024 22:31:39 +0100 Subject: [PATCH] Fix hook string --- .dredd/hooks/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.dredd/hooks/main.go b/.dredd/hooks/main.go index fa977aed..1522398c 100644 --- a/.dredd/hooks/main.go +++ b/.dredd/hooks/main.go @@ -86,6 +86,8 @@ func main() { addCapabilities([]string{"repository", "inventory", "environment", "template", "webhook"}) }) + h.Before("webhook > /api/project/{project_id}/webhook/{webhook_id}/extractors > Get Webhook Extractors > 200 > application/json", capabilityWrapper("webhookextractor")) + h.Before("project > /api/project/{project_id}/keys/{key_id} > Updates access key > 204 > application/json", capabilityWrapper("access_key")) h.Before("project > /api/project/{project_id}/keys/{key_id} > Removes access key > 204 > application/json", capabilityWrapper("access_key")) @@ -100,8 +102,6 @@ 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"}) })