Skip to content

Commit

Permalink
Add new synthetics HTTP javascript assertion (#24490)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Sep 4, 2024
1 parent ec51e49 commit f03c268
Show file tree
Hide file tree
Showing 7 changed files with 3,503 additions and 1,319 deletions.
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.6.6",
"regenerated": "2024-09-04 15:25:09.981283",
"spec_repo_commit": "fe4f848e"
"regenerated": "2024-09-04 17:13:40.915305",
"spec_repo_commit": "8e0507d2"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-09-04 15:25:18.207800",
"spec_repo_commit": "fe4f848e"
"regenerated": "2024-09-04 17:13:49.040434",
"spec_repo_commit": "8e0507d2"
}
}
}
38 changes: 19 additions & 19 deletions content/en/api/v1/synthetics/examples.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
"operator": "md5",
"target": "a",
"type": "bodyHash"
},
{
"code": "const hello = 'world';",
"type": "javascript"
}
],
"configVariables": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
"operator": "md5",
"target": "a",
"type": "bodyHash"
},
{
"code": "const hello = 'world';",
"type": "javascript"
}
],
"configVariables": [
Expand Down
22 changes: 22 additions & 0 deletions data/api/v1/full_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14109,6 +14109,7 @@ components:
- $ref: '#/components/schemas/SyntheticsAssertionJSONPathTarget'
- $ref: '#/components/schemas/SyntheticsAssertionJSONSchemaTarget'
- $ref: '#/components/schemas/SyntheticsAssertionXPathTarget'
- $ref: '#/components/schemas/SyntheticsAssertionJavascript'
SyntheticsAssertionBodyHashOperator:
description: Assertion operator to apply.
enum:
Expand Down Expand Up @@ -14225,6 +14226,27 @@ components:
metaSchema:
$ref: '#/components/schemas/SyntheticsAssertionJSONSchemaMetaSchema'
type: object
SyntheticsAssertionJavascript:
description: A JavaScript assertion.
properties:
code:
description: The JavaScript code that performs the assertions.
example: dd.expect(dd.response.statusCode).to.equal(200);
type: string
type:
$ref: '#/components/schemas/SyntheticsAssertionJavascriptType'
required:
- type
- code
type: object
SyntheticsAssertionJavascriptType:
description: Type of the assertion.
enum:
- javascript
example: javascript
type: string
x-enum-varnames:
- JAVASCRIPT
SyntheticsAssertionOperator:
description: Assertion operator to apply.
enum:
Expand Down
Loading

0 comments on commit f03c268

Please sign in to comment.