Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trigger synthetics tests endpoint #337

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2021-11-12 16:34:44.905327",
"spec_repo_commit": "cbb6f12"
"regenerated": "2021-11-12 17:41:04.911019",
"spec_repo_commit": "2b850b7"
},
"v2": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2021-11-12 16:34:44.931401",
"spec_repo_commit": "cbb6f12"
"regenerated": "2021-11-12 17:41:04.934476",
"spec_repo_commit": "2b850b7"
}
}
}
53 changes: 53 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11075,6 +11075,17 @@ components:
format: double
type: number
type: object
SyntheticsTriggerBody:
description: Object describing the synthetics tests to trigger.
properties:
tests:
description: Individual synthetics test.
items:
$ref: '#/components/schemas/SyntheticsTriggerTest'
type: array
required:
- tests
type: object
SyntheticsTriggerCITestLocation:
description: Synthetics location.
properties:
Expand Down Expand Up @@ -11125,6 +11136,18 @@ components:
type: string
type: array
type: object
SyntheticsTriggerTest:
description: Test configuration for Synthetics
properties:
metadata:
$ref: '#/components/schemas/SyntheticsCIBatchMetadata'
public_id:
description: The public ID of the Synthetics test to trigger.
example: aaa-aaa-aaa
type: string
required:
- public_id
type: object
SyntheticsUpdateTestPauseStatusPayload:
description: Object to start or pause an existing Synthetic test.
properties:
Expand Down Expand Up @@ -22683,6 +22706,36 @@ paths:
x-menu-order: 14
x-undo:
type: idempotent
/api/v1/synthetics/tests/trigger:
post:
description: Trigger a set of Synthetics tests.
operationId: TriggerTests
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SyntheticsTriggerBody'
description: The identifiers of the tests to trigger.
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SyntheticsTriggerCITestsResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
summary: Trigger some Synthetics tests
tags:
- Synthetics
x-codegen-request-body-name: body
x-undo:
type: safe
/api/v1/synthetics/tests/trigger/ci:
post:
description: Trigger a set of Synthetics tests for continuous integration.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2021-11-12T17:35:35.435Z"
Loading