fix(ci): dredd test for template endpoint

This commit is contained in:
Denis Gukov 2020-11-05 17:45:31 +05:00
parent c03e66fdfe
commit f8dab13c4a
3 changed files with 7 additions and 6 deletions

View File

@ -95,6 +95,7 @@ func main() {
addCapabilities([]string{"repository", "inventory", "environment"})
})
h.Before("project > /api/project/{project_id}/templates/{template_id} > Get template > 200 > application/json", capabilityWrapper("template"))
h.Before("project > /api/project/{project_id}/templates/{template_id} > Updates template > 204 > application/json", capabilityWrapper("template"))
h.Before("project > /api/project/{project_id}/templates/{template_id} > Removes template > 204 > application/json", capabilityWrapper("template"))

View File

@ -1153,7 +1153,9 @@ paths:
200:
description: template
schema:
$ref: "#/definitions/Template"
type: array
items:
$ref: "#/definitions/Template"
post:
tags:
- project
@ -1176,14 +1178,12 @@ paths:
get:
tags:
- project
summary: Get template object
summary: Get template
responses:
200:
description: template object
schema:
type: array
items:
$ref: "#/definitions/Template"
$ref: "#/definitions/Template"
put:
tags:
- project

2
go.mod
View File

@ -40,7 +40,7 @@ require (
github.com/radovskyb/watcher v1.0.7 // indirect
github.com/russross/blackfriday v1.5.2
github.com/sirupsen/logrus v1.4.2 // indirect
github.com/snikch/goodman v0.0.0-20171125024755-10e37e294daa // indirect
github.com/snikch/goodman v0.0.0-20171125024755-10e37e294daa
github.com/spf13/cobra v0.0.5 // indirect
github.com/ziutek/mymysql v1.5.4 // indirect
golang.org/x/crypto v0.0.0-20200208060501-ecb85df21340