Add test for jobs (#34)

This commit is contained in:
Jonas Plum
2022-02-27 18:33:50 +01:00
committed by GitHub
parent fd18458f3d
commit ffba7b4f5f
18 changed files with 181 additions and 80 deletions

View File

@@ -1791,7 +1791,7 @@ paths:
examples:
test:
- automation: hash.sha1
id: 99cd67131b48
id: b81c2366-ea37-43d2-b61b-03afdc21d985
payload: test
status: created
schema:
@@ -1815,11 +1815,18 @@ paths:
$ref: '#/definitions/JobForm'
x-example:
automation: hash.sha1
message:
payload: test
payload: test
responses:
"204":
"200":
description: successful operation
examples:
test:
automation: hash.sha1
id: 87390749-2125-4a87-91c5-da7e3f9bebf1
payload: test
status: created
schema:
$ref: '#/definitions/JobResponse'
security:
- roles:
- job:write
@@ -1835,14 +1842,14 @@ paths:
name: id
required: true
type: string
x-example: 99cd67131b48
x-example: b81c2366-ea37-43d2-b61b-03afdc21d985
responses:
"200":
description: successful operation
examples:
test:
automation: hash.sha1
id: 99cd67131b48
id: b81c2366-ea37-43d2-b61b-03afdc21d985
payload: test
status: created
schema:
@@ -1861,7 +1868,7 @@ paths:
name: id
required: true
type: string
x-example: 99cd67131b48
x-example: b81c2366-ea37-43d2-b61b-03afdc21d985
- description: Job object that needs to be added
in: body
name: job
@@ -1877,7 +1884,7 @@ paths:
examples:
test:
automation: hash.sha1
id: 99cd67131b48
id: b81c2366-ea37-43d2-b61b-03afdc21d985
payload: test
status: failed
schema: