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