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 synthetics test result failure field #1318

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
12 changes: 6 additions & 6 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"info_version": "2",
"spec_versions": {
"v1": {
"apigentools_version": "1.6.1",
"regenerated": "2022-01-31 10:15:52.937368",
"spec_repo_commit": "28778f1"
"apigentools_version": "1.6.2",
"regenerated": "2022-02-02 08:53:24.472413",
"spec_repo_commit": "d0d1224"
},
"v2": {
"apigentools_version": "1.6.1",
"regenerated": "2022-01-31 10:15:52.951673",
"spec_repo_commit": "28778f1"
"apigentools_version": "1.6.2",
"regenerated": "2022-02-02 08:53:24.488192",
"spec_repo_commit": "d0d1224"
}
}
}
188 changes: 164 additions & 24 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9897,13 +9897,10 @@ components:
properties:
cert:
$ref: '#/components/schemas/SyntheticsSSLCertificate'
errorCode:
$ref: '#/components/schemas/SyntheticsErrorCode'
errorMessage:
description: The API test error message.
type: string
eventType:
$ref: '#/components/schemas/SyntheticsTestProcessStatus'
failure:
$ref: '#/components/schemas/SyntheticsApiTestResultFailure'
httpStatusCode:
description: The API test HTTP status code.
format: int64
Expand Down Expand Up @@ -9994,6 +9991,73 @@ components:
type: string
x-enum-varnames:
- API
SyntheticsApiTestFailureCode:
description: Error code that can be returned by a Synthetic test.
enum:
- BODY_TOO_LARGE
- DENIED
- TOO_MANY_REDIRECTS
- AUTHENTICATION_ERROR
- DECRYPTION
- INVALID_CHAR_IN_HEADER
- HEADER_TOO_LARGE
- HEADERS_INCOMPATIBLE_CONTENT_LENGTH
- INVALID_REQUEST
- REQUIRES_UPDATE
- UNESCAPED_CHARACTERS_IN_REQUEST_PATH
- MALFORMED_RESPONSE
- INCORRECT_ASSERTION
- CONNREFUSED
- CONNRESET
- DNS
- HOSTUNREACH
- NETUNREACH
- TIMEOUT
- SSL
- OCSP
- INVALID_TEST
- TUNNEL
- WEBSOCKET
- UNKNOWN
- INTERNAL_ERROR
type: string
x-enum-varnames:
- BODY_TOO_LARGE
- DENIED
- TOO_MANY_REDIRECTS
- AUTHENTICATION_ERROR
- DECRYPTION
- INVALID_CHAR_IN_HEADER
- HEADER_TOO_LARGE
- HEADERS_INCOMPATIBLE_CONTENT_LENGTH
- INVALID_REQUEST
- REQUIRES_UPDATE
- UNESCAPED_CHARACTERS_IN_REQUEST_PATH
- MALFORMED_RESPONSE
- INCORRECT_ASSERTION
- CONNREFUSED
- CONNRESET
- DNS
- HOSTUNREACH
- NETUNREACH
- TIMEOUT
- SSL
- OCSP
- INVALID_TEST
- TUNNEL
- WEBSOCKET
- UNKNOWN
- INTERNAL_ERROR
SyntheticsApiTestResultFailure:
description: The API test failure details.
properties:
code:
$ref: '#/components/schemas/SyntheticsApiTestFailureCode'
message:
description: The API test error message.
example: Error during DNS resolution (ENOTFOUND).
type: string
type: object
SyntheticsAssertion:
description: 'Object describing the assertions type, their associated operator,

Expand Down Expand Up @@ -10409,6 +10473,77 @@ components:
- request
- assertions
type: object
SyntheticsBrowserTestFailureCode:
description: Error code that can be returned by a Synthetic test.
enum:
- API_REQUEST_FAILURE
- ASSERTION_FAILURE
- DOWNLOAD_FILE_TOO_LARGE
- ELEMENT_NOT_INTERACTABLE
- EMAIL_VARIABLE_NOT_DEFINED
- EVALUATE_JAVASCRIPT
- EVALUATE_JAVASCRIPT_CONTEXT
- EXTRACT_VARIABLE
- FORBIDDEN_URL
- FRAME_DETACHED
- INCONSISTENCIES
- INTERNAL_ERROR
- INVALID_TYPE_TEXT_DELAY
- INVALID_URL
- INVALID_VARIABLE_PATTERN
- INVISIBLE_ELEMENT
- LOCATE_ELEMENT
- NAVIGATE_TO_LINK
- OPEN_URL
- PRESS_KEY
- SERVER_CERTIFICATE
- SELECT_OPTION
- STEP_TIMEOUT
- SUB_TEST_NOT_PASSED
- TEST_TIMEOUT
- TOO_MANY_HTTP_REQUESTS
- UNAVAILABLE_BROWSER
- UNKNOWN
- UNSUPPORTED_AUTH_SCHEMA
- UPLOAD_FILES_ELEMENT_TYPE
- UPLOAD_FILES_DIALOG
- UPLOAD_FILES_DYNAMIC_ELEMENT
- UPLOAD_FILES_NAME
type: string
x-enum-varnames:
- API_REQUEST_FAILURE
- ASSERTION_FAILURE
- DOWNLOAD_FILE_TOO_LARGE
- ELEMENT_NOT_INTERACTABLE
- EMAIL_VARIABLE_NOT_DEFINED
- EVALUATE_JAVASCRIPT
- EVALUATE_JAVASCRIPT_CONTEXT
- EXTRACT_VARIABLE
- FORBIDDEN_URL
- FRAME_DETACHED
- INCONSISTENCIES
- INTERNAL_ERROR
- INVALID_TYPE_TEXT_DELAY
- INVALID_URL
- INVALID_VARIABLE_PATTERN
- INVISIBLE_ELEMENT
- LOCATE_ELEMENT
- NAVIGATE_TO_LINK
- OPEN_URL
- PRESS_KEY
- SERVER_CERTIFICATE
- SELECT_OPTION
- STEP_TIMEOUT
- SUB_TEST_NOT_PASSED
- TEST_TIMEOUT
- TOO_MANY_HTTP_REQUESTS
- UNAVAILABLE_BROWSER
- UNKNOWN
- UNSUPPORTED_AUTH_SCHEMA
- UPLOAD_FILES_ELEMENT_TYPE
- UPLOAD_FILES_DIALOG
- UPLOAD_FILES_DYNAMIC_ELEMENT
- UPLOAD_FILES_NAME
SyntheticsBrowserTestResultData:
description: Object containing results for your Synthetic browser test.
properties:
Expand All @@ -10427,6 +10562,8 @@ components:
error:
description: Error returned for the browser test.
type: string
failure:
$ref: '#/components/schemas/SyntheticsBrowserTestResultFailure'
passed:
description: Whether or not the browser test was conducted.
type: boolean
Expand All @@ -10452,6 +10589,16 @@ components:
format: double
type: number
type: object
SyntheticsBrowserTestResultFailure:
description: The browser test failure details.
properties:
code:
$ref: '#/components/schemas/SyntheticsBrowserTestFailureCode'
message:
description: The browser test error message.
example: Error during DNS resolution (ENOTFOUND).
type: string
type: object
SyntheticsBrowserTestResultFull:
description: Object returned describing a browser test result.
properties:
Expand Down Expand Up @@ -10851,25 +10998,6 @@ components:
- EDGE_LAPTOP_LARGE
- EDGE_TABLET
- EDGE_MOBILE_SMALL
SyntheticsErrorCode:
description: Error code that can be returned by a Synthetic test.
enum:
- NO_ERROR
- UNKNOWN
- DNS
- SSL
- TIMEOUT
- DENIED
- INCORRECT_ASSERTION
type: string
x-enum-varnames:
- NO_ERROR
- UNKNOWN
- DNS
- SSL
- TIMEOUT
- DENIED
- INCORRECT_ASSERTION
SyntheticsGetAPITestLatestResultsResponse:
description: Object with the latest Synthetic API test run.
properties:
Expand Down Expand Up @@ -23630,6 +23758,11 @@ paths:
- file: synthetics_api_test_payload.json
name: body
step: there is a valid "synthetics_api_test" in the system
synthetics_api_test_with_wrong_dns:
parameters:
- file: synthetics_api_test_with_wrong_dns.json
name: body
step: there is a "synthetics_api_test_with_wrong_dns" in the system
x-menu-order: 1
x-undo:
operationId: DeleteTests
Expand Down Expand Up @@ -24122,6 +24255,13 @@ paths:
tags:
- Synthetics
x-codegen-request-body-name: body
x-given:
synthetics_api_test_with_wrong_dns_result:
parameters:
- name: body
value: '{"tests": [{"public_id": "{{ synthetics_api_test_with_wrong_dns.public_id
}}"}]}'
step: the "synthetics_api_test_with_wrong_dns" is triggered
x-menu-order: 7
x-undo:
type: safe
Expand Down
10 changes: 8 additions & 2 deletions api/v1/datadog/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,8 @@ docs/SyntheticsAPITestResultShort.md
docs/SyntheticsAPITestResultShortResult.md
docs/SyntheticsAPITestType.md
docs/SyntheticsApi.md
docs/SyntheticsApiTestFailureCode.md
docs/SyntheticsApiTestResultFailure.md
docs/SyntheticsAssertion.md
docs/SyntheticsAssertionJSONPathOperator.md
docs/SyntheticsAssertionJSONPathTarget.md
Expand All @@ -490,7 +492,9 @@ docs/SyntheticsBrowserError.md
docs/SyntheticsBrowserErrorType.md
docs/SyntheticsBrowserTest.md
docs/SyntheticsBrowserTestConfig.md
docs/SyntheticsBrowserTestFailureCode.md
docs/SyntheticsBrowserTestResultData.md
docs/SyntheticsBrowserTestResultFailure.md
docs/SyntheticsBrowserTestResultFull.md
docs/SyntheticsBrowserTestResultFullCheck.md
docs/SyntheticsBrowserTestResultShort.md
Expand All @@ -514,7 +518,6 @@ docs/SyntheticsDeleteTestsResponse.md
docs/SyntheticsDeletedTest.md
docs/SyntheticsDevice.md
docs/SyntheticsDeviceID.md
docs/SyntheticsErrorCode.md
docs/SyntheticsGetAPITestLatestResultsResponse.md
docs/SyntheticsGetBrowserTestLatestResultsResponse.md
docs/SyntheticsGlobalVariable.md
Expand Down Expand Up @@ -1137,7 +1140,9 @@ model_synthetics_api_step.go
model_synthetics_api_step_subtype.go
model_synthetics_api_test_.go
model_synthetics_api_test_config.go
model_synthetics_api_test_failure_code.go
model_synthetics_api_test_result_data.go
model_synthetics_api_test_result_failure.go
model_synthetics_api_test_result_full.go
model_synthetics_api_test_result_full_check.go
model_synthetics_api_test_result_short.go
Expand All @@ -1164,7 +1169,9 @@ model_synthetics_browser_error.go
model_synthetics_browser_error_type.go
model_synthetics_browser_test_.go
model_synthetics_browser_test_config.go
model_synthetics_browser_test_failure_code.go
model_synthetics_browser_test_result_data.go
model_synthetics_browser_test_result_failure.go
model_synthetics_browser_test_result_full.go
model_synthetics_browser_test_result_full_check.go
model_synthetics_browser_test_result_short.go
Expand All @@ -1188,7 +1195,6 @@ model_synthetics_delete_tests_response.go
model_synthetics_deleted_test_.go
model_synthetics_device.go
model_synthetics_device_id.go
model_synthetics_error_code.go
model_synthetics_get_api_test_latest_results_response.go
model_synthetics_get_browser_test_latest_results_response.go
model_synthetics_global_variable.go
Expand Down
5 changes: 4 additions & 1 deletion api/v1/datadog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,8 @@ All URIs are relative to *https://api.datadoghq.com*
- [SyntheticsAPITestResultShort](docs/SyntheticsAPITestResultShort.md)
- [SyntheticsAPITestResultShortResult](docs/SyntheticsAPITestResultShortResult.md)
- [SyntheticsAPITestType](docs/SyntheticsAPITestType.md)
- [SyntheticsApiTestFailureCode](docs/SyntheticsApiTestFailureCode.md)
- [SyntheticsApiTestResultFailure](docs/SyntheticsApiTestResultFailure.md)
- [SyntheticsAssertion](docs/SyntheticsAssertion.md)
- [SyntheticsAssertionJSONPathOperator](docs/SyntheticsAssertionJSONPathOperator.md)
- [SyntheticsAssertionJSONPathTarget](docs/SyntheticsAssertionJSONPathTarget.md)
Expand All @@ -723,7 +725,9 @@ All URIs are relative to *https://api.datadoghq.com*
- [SyntheticsBrowserErrorType](docs/SyntheticsBrowserErrorType.md)
- [SyntheticsBrowserTest](docs/SyntheticsBrowserTest.md)
- [SyntheticsBrowserTestConfig](docs/SyntheticsBrowserTestConfig.md)
- [SyntheticsBrowserTestFailureCode](docs/SyntheticsBrowserTestFailureCode.md)
- [SyntheticsBrowserTestResultData](docs/SyntheticsBrowserTestResultData.md)
- [SyntheticsBrowserTestResultFailure](docs/SyntheticsBrowserTestResultFailure.md)
- [SyntheticsBrowserTestResultFull](docs/SyntheticsBrowserTestResultFull.md)
- [SyntheticsBrowserTestResultFullCheck](docs/SyntheticsBrowserTestResultFullCheck.md)
- [SyntheticsBrowserTestResultShort](docs/SyntheticsBrowserTestResultShort.md)
Expand All @@ -747,7 +751,6 @@ All URIs are relative to *https://api.datadoghq.com*
- [SyntheticsDeletedTest](docs/SyntheticsDeletedTest.md)
- [SyntheticsDevice](docs/SyntheticsDevice.md)
- [SyntheticsDeviceID](docs/SyntheticsDeviceID.md)
- [SyntheticsErrorCode](docs/SyntheticsErrorCode.md)
- [SyntheticsGetAPITestLatestResultsResponse](docs/SyntheticsGetAPITestLatestResultsResponse.md)
- [SyntheticsGetBrowserTestLatestResultsResponse](docs/SyntheticsGetBrowserTestLatestResultsResponse.md)
- [SyntheticsGlobalVariable](docs/SyntheticsGlobalVariable.md)
Expand Down
Loading