ci: mock fixtures for Jenkins trigger/poll tests
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"trigger_response": {
|
||||
"status": 201,
|
||||
"headers": {
|
||||
"Location": "http://jenkins.test/queue/item/78/"
|
||||
}
|
||||
},
|
||||
"queue_polls": [
|
||||
{"status": 200, "body": {"executable": {"number": 43, "url": "http://jenkins.test/job/Aeroflot2/job/Flights-Front-Dev/43/"}}}
|
||||
],
|
||||
"build_polls": [
|
||||
{"status": 200, "body": {"building": true, "result": null, "number": 43}},
|
||||
{"status": 200, "body": {"building": false, "result": "FAILURE", "number": 43}}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"trigger_response": {
|
||||
"status": 201,
|
||||
"headers": {
|
||||
"Location": "http://jenkins.test/queue/item/77/"
|
||||
}
|
||||
},
|
||||
"queue_polls": [
|
||||
{"status": 200, "body": {"why": "in queue", "executable": null}},
|
||||
{"status": 200, "body": {"why": "in queue", "executable": null}},
|
||||
{"status": 200, "body": {"executable": {"number": 42, "url": "http://jenkins.test/job/Aeroflot2/job/Flights-Front-Dev/42/"}}}
|
||||
],
|
||||
"build_polls": [
|
||||
{"status": 200, "body": {"building": true, "result": null, "number": 42}},
|
||||
{"status": 200, "body": {"building": true, "result": null, "number": 42}},
|
||||
{"status": 200, "body": {"building": false, "result": "SUCCESS", "number": 42}}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user