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

@@ -324,7 +324,7 @@
"test" : {
"example" : [ {
"automation" : "hash.sha1",
"id" : "99cd67131b48",
"id" : "b81c2366-ea37-43d2-b61b-03afdc21d985",
"payload" : "test",
"status" : "created"
} ]
@@ -353,8 +353,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"
}
},
@@ -371,7 +385,7 @@
"operationId" : "getJob",
"parameters" : [ {
"description" : "Job ID",
"example" : "99cd67131b48",
"example" : "b81c2366-ea37-43d2-b61b-03afdc21d985",
"in" : "path",
"name" : "id",
"required" : true,
@@ -390,7 +404,7 @@
"test" : {
"example" : {
"automation" : "hash.sha1",
"id" : "99cd67131b48",
"id" : "b81c2366-ea37-43d2-b61b-03afdc21d985",
"payload" : "test",
"status" : "created"
}
@@ -409,7 +423,7 @@
"operationId" : "updateJob",
"parameters" : [ {
"description" : "Job ID",
"example" : "99cd67131b48",
"example" : "b81c2366-ea37-43d2-b61b-03afdc21d985",
"in" : "path",
"name" : "id",
"required" : true,
@@ -439,7 +453,7 @@
"test" : {
"example" : {
"automation" : "hash.sha1",
"id" : "99cd67131b48",
"id" : "b81c2366-ea37-43d2-b61b-03afdc21d985",
"payload" : "test",
"status" : "failed"
}