ci: mock fixtures for Jenkins trigger/poll tests

This commit is contained in:
2026-04-25 02:43:15 +03:00
parent cb494a4290
commit dd8b933ec3
2 changed files with 33 additions and 0 deletions
@@ -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}}
]
}