Skip to content

Commit b3e40df

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2101c16e of spec repo
1 parent 42b3177 commit b3e40df

File tree

8 files changed

+62
-15
lines changed

8 files changed

+62
-15
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-06-30 10:29:37.328306",
8-
"spec_repo_commit": "be63084a"
7+
"regenerated": "2025-06-30 11:24:34.605304",
8+
"spec_repo_commit": "2101c16e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-30 10:29:37.344271",
13-
"spec_repo_commit": "be63084a"
12+
"regenerated": "2025-06-30 11:24:34.623637",
13+
"spec_repo_commit": "2101c16e"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16722,6 +16722,7 @@ components:
1672216722
- assertRequests
1672316723
- click
1672416724
- extractFromJavascript
16725+
- extractFromEmailBody
1672516726
- extractVariable
1672616727
- goToEmailLink
1672716728
- goToUrl
@@ -16751,6 +16752,7 @@ components:
1675116752
- ASSERT_REQUESTS
1675216753
- CLICK
1675316754
- EXTRACT_FROM_JAVASCRIPT
16755+
- EXTRACT_FROM_EMAIL_BODY
1675416756
- EXTRACT_VARIABLE
1675516757
- GO_TO_EMAIL_LINK
1675616758
- GO_TO_URL
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-12-09T11:17:45.545Z
1+
2025-06-30T11:08:58.191Z

cassettes/features/v1/synthetics/Create-a-browser-test-returns-OK-Returns-the-created-test-details-response.yml

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/v1/synthetics/CreateSyntheticsBrowserTest.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
secure: true,
1515
example: "secret",
1616
}),
17+
DatadogAPIClient::V1::SyntheticsBrowserVariable.new({
18+
name: "ASSERTION_EMAIL",
19+
example: "[email protected]",
20+
pattern: "[email protected]",
21+
type: DatadogAPIClient::V1::SyntheticsBrowserVariableType::EMAIL,
22+
}),
1723
],
1824
config_variables: [
1925
DatadogAPIClient::V1::SyntheticsConfigVariable.new({
@@ -68,6 +74,17 @@
6874
params: {},
6975
type: DatadogAPIClient::V1::SyntheticsStepType::REFRESH,
7076
}),
77+
DatadogAPIClient::V1::SyntheticsStep.new({
78+
allow_failure: true,
79+
always_execute: false,
80+
exit_if_succeed: true,
81+
is_critical: false,
82+
name: "Extract from email body",
83+
params: {
84+
"variable": "{'example': '', 'name': 'OTP_FROM_EMAIL'}", "pattern": "{'type': 'regex', 'value': '[a-zA-Z0-9]{8,8}'}",
85+
},
86+
type: DatadogAPIClient::V1::SyntheticsStepType::EXTRACT_FROM_EMAIL_BODY,
87+
}),
7188
],
7289
})
7390
p api_instance.create_synthetics_browser_test(body)

features/v1/synthetics.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Feature: Synthetics
7878
And the response "config.variables" has item with field "secure" with value true
7979
And the response "steps[0].alwaysExecute" is equal to true
8080
And the response "steps[0].exitIfSucceed" is equal to true
81+
And the response "steps[1].type" is equal to "extractFromEmailBody"
8182

8283
@generated @skip @team:DataDog/synthetics-ct
8384
Scenario: Create a browser test returns "Test quota is reached" response

features/v1/synthetics_browser_test_payload.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
"pattern": "secret",
99
"secure": true,
1010
"example": "secret"
11+
},
12+
{
13+
"name": "ASSERTION_EMAIL",
14+
"example": "[email protected]",
15+
"pattern": "[email protected]",
16+
"type": "email"
1117
}
1218
],
1319
"configVariables": [
@@ -50,6 +56,24 @@
5056
"name": "Refresh page",
5157
"params": {},
5258
"type": "refresh"
59+
},
60+
{
61+
"allowFailure": true,
62+
"alwaysExecute": false,
63+
"exitIfSucceed": true,
64+
"isCritical": false,
65+
"name": "Extract from email body",
66+
"params": {
67+
"variable": {
68+
"example": "",
69+
"name": "OTP_FROM_EMAIL"
70+
},
71+
"pattern": {
72+
"type": "regex",
73+
"value": "[a-zA-Z0-9]{8,8}"
74+
}
75+
},
76+
"type": "extractFromEmailBody"
5377
}
5478
]
5579
}

lib/datadog_api_client/v1/models/synthetics_step_type.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class SyntheticsStepType
3333
ASSERT_REQUESTS = "assertRequests".freeze
3434
CLICK = "click".freeze
3535
EXTRACT_FROM_JAVASCRIPT = "extractFromJavascript".freeze
36+
EXTRACT_FROM_EMAIL_BODY = "extractFromEmailBody".freeze
3637
EXTRACT_VARIABLE = "extractVariable".freeze
3738
GO_TO_EMAIL_LINK = "goToEmailLink".freeze
3839
GO_TO_URL = "goToUrl".freeze

0 commit comments

Comments
 (0)