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

@@ -556,7 +556,7 @@
"test" : {
"example" : [ {
"automation" : "hash.sha1",
"id" : "99cd67131b48",
"id" : "b81c2366-ea37-43d2-b61b-03afdc21d985",
"payload" : "test",
"status" : "created"
} ]
@@ -585,8 +585,22 @@
"required" : true
},
"responses" : {
"204" : {
"content" : { },
"200" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/JobResponse"
}
},
"test" : {
"example" : {
"automation" : "hash.sha1",
"id" : "87390749-2125-4a87-91c5-da7e3f9bebf1",
"payload" : "test",
"status" : "created"
}
}
},
"description" : "successful operation"
}
},
@@ -603,7 +617,7 @@
"operationId" : "getJob",
"parameters" : [ {
"description" : "Job ID",
"example" : "99cd67131b48",
"example" : "b81c2366-ea37-43d2-b61b-03afdc21d985",
"in" : "path",
"name" : "id",
"required" : true,
@@ -622,7 +636,7 @@
"test" : {
"example" : {
"automation" : "hash.sha1",
"id" : "99cd67131b48",
"id" : "b81c2366-ea37-43d2-b61b-03afdc21d985",
"payload" : "test",
"status" : "created"
}
@@ -641,7 +655,7 @@
"operationId" : "updateJob",
"parameters" : [ {
"description" : "Job ID",
"example" : "99cd67131b48",
"example" : "b81c2366-ea37-43d2-b61b-03afdc21d985",
"in" : "path",
"name" : "id",
"required" : true,
@@ -671,7 +685,7 @@
"test" : {
"example" : {
"automation" : "hash.sha1",
"id" : "99cd67131b48",
"id" : "b81c2366-ea37-43d2-b61b-03afdc21d985",
"payload" : "test",
"status" : "failed"
}