mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2026-04-01 16:31:48 +02:00
Add test for jobs (#34)
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user