Skip to content

Commit 3a9dd71

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit f8964dd of spec repo (#826)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 8556db9 commit 3a9dd71

File tree

22 files changed

+109
-77
lines changed

22 files changed

+109
-77
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.2",
7-
"regenerated": "2022-02-11 15:01:43.443961",
8-
"spec_repo_commit": "0aeef32"
7+
"regenerated": "2022-02-11 17:09:49.390149",
8+
"spec_repo_commit": "f8964dd"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-02-11 15:01:43.455474",
13-
"spec_repo_commit": "0aeef32"
12+
"regenerated": "2022-02-11 17:09:49.404192",
13+
"spec_repo_commit": "f8964dd"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11527,6 +11527,10 @@ components:
1152711527
allowFailure:
1152811528
description: A boolean set to allow this step to fail.
1152911529
type: boolean
11530+
isCritical:
11531+
description: A boolean to use in addition to `allowFailure` to determine
11532+
if the test should be marked as failed when the step fails.
11533+
type: boolean
1153011534
name:
1153111535
description: The name of the step.
1153211536
type: string

examples/v1/synthetics/CreateSyntheticsBrowserTest.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
from datadog_api_client.v1.model.synthetics_config_variable import SyntheticsConfigVariable
1212
from datadog_api_client.v1.model.synthetics_config_variable_type import SyntheticsConfigVariableType
1313
from datadog_api_client.v1.model.synthetics_device_id import SyntheticsDeviceID
14+
from datadog_api_client.v1.model.synthetics_step import SyntheticsStep
15+
from datadog_api_client.v1.model.synthetics_step_params import SyntheticsStepParams
16+
from datadog_api_client.v1.model.synthetics_step_type import SyntheticsStepType
1417
from datadog_api_client.v1.model.synthetics_test_options import SyntheticsTestOptions
1518
from datadog_api_client.v1.model.synthetics_test_options_retry import SyntheticsTestOptionsRetry
1619
from datadog_api_client.v1.model.synthetics_test_request import SyntheticsTestRequest
@@ -46,6 +49,15 @@
4649
),
4750
tags=["testing:browser"],
4851
type=SyntheticsBrowserTestType("browser"),
52+
steps=[
53+
SyntheticsStep(
54+
allow_failure=False,
55+
is_critical=True,
56+
name="Refresh page",
57+
params=SyntheticsStepParams(),
58+
type=SyntheticsStepType("refresh"),
59+
)
60+
],
4961
)
5062

5163
configuration = Configuration()

src/datadog_api_client/v1/model/synthetics_step.py

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-01-06T00:51:13.534Z
1+
2022-02-10T12:24:10.485Z

tests/v1/cassettes/test_scenarios/test_create_a_browser_test_returns_ok_returns_the_created_test_details_response.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
interactions:
22
- request:
33
body: '{"config":{"assertions":[],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"method":"GET","url":"https://datadoghq.com"},"setCookie":"name:test"},"locations":["aws:us-east-2"],"message":"Test
4-
message","name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1641430273","options":{"accept_self_signed":false,"allow_insecure":true,"device_ids":["tablet"],"disableCors":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"noScreenshot":true,"retry":{"count":3,"interval":10},"tick_every":300},"tags":["testing:browser"],"type":"browser"}'
4+
message","name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1644495850","options":{"accept_self_signed":false,"allow_insecure":true,"device_ids":["tablet"],"disableCors":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"noScreenshot":true,"retry":{"count":3,"interval":10},"tick_every":300},"steps":[{"allowFailure":false,"isCritical":true,"name":"Refresh
5+
page","params":{},"type":"refresh"}],"tags":["testing:browser"],"type":"browser"}'
56
headers:
67
accept:
78
- application/json
@@ -11,16 +12,17 @@ interactions:
1112
uri: https://api.datadoghq.com/api/v1/synthetics/tests/browser
1213
response:
1314
body:
14-
string: '{"status":"paused","public_id":"db9-2t7-rc6","tags":["testing:browser"],"org_id":321813,"locations":["aws:us-east-2"],"message":"Test
15-
message","deleted_at":null,"name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1641430273","monitor_id":59800820,"type":"browser","created_at":"2022-01-06T00:51:13.906186+00:00","modified_at":"2022-01-06T00:51:13.906186+00:00","config":{"setCookie":"name:test","request":{"url":"https://datadoghq.com","method":"GET"},"assertions":[],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"noScreenshot":true,"disableCors":true,"device_ids":["tablet"],"tick_every":300}}'
15+
string: '{"status":"paused","public_id":"rsw-sd4-iu5","tags":["testing:browser"],"org_id":321813,"locations":["aws:us-east-2"],"message":"Test
16+
message","deleted_at":null,"name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1644495850","monitor_id":63812386,"type":"browser","created_at":"2022-02-10T12:24:11.196393+00:00","modified_at":"2022-02-10T12:24:11.196393+00:00","steps":[{"name":"Refresh
17+
page","allowFailure":false,"params":{},"isCritical":true,"type":"refresh"}],"config":{"setCookie":"name:test","request":{"url":"https://datadoghq.com","method":"GET"},"assertions":[],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"noScreenshot":true,"disableCors":true,"device_ids":["tablet"],"tick_every":300}}'
1618
headers:
1719
content-type:
1820
- application/json
1921
status:
2022
code: 200
2123
message: OK
2224
- request:
23-
body: '{"public_ids":["db9-2t7-rc6"]}'
25+
body: '{"public_ids":["rsw-sd4-iu5"]}'
2426
headers:
2527
accept:
2628
- application/json
@@ -30,7 +32,7 @@ interactions:
3032
uri: https://api.datadoghq.com/api/v1/synthetics/tests/delete
3133
response:
3234
body:
33-
string: '{"deleted_tests":[{"deleted_at":"2022-01-06T00:51:14.154081+00:00","public_id":"db9-2t7-rc6"}]}'
35+
string: '{"deleted_tests":[{"deleted_at":"2022-02-10T12:24:11.753160+00:00","public_id":"rsw-sd4-iu5"}]}'
3436
headers:
3537
content-type:
3638
- application/json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-01-11T18:26:30.141Z
1+
2022-02-10T12:24:11.728Z

tests/v1/cassettes/test_scenarios/test_create_an_api_test_returns_ok_returns_the_created_test_details_response.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
3-
body: '{"config":{"assertions":[{"operator":"is","property":"{{ PROPERTY }}","target":"text/html","type":"header"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"}],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"certificate":{"cert":{"content":"cert-content","filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"content":"key-content","filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"headers":{"unique":"testcreateanapitestreturnsokreturnsthecreatedtestdetailsresponse1641925590"},"method":"GET","proxy":{"headers":{},"url":"https://datadoghq.com"},"timeout":10,"url":"https://datadoghq.com"}},"locations":["aws:us-east-2"],"message":"BDD
4-
test payload: synthetics_api_test_payload.json","name":"Test-Create_an_API_test_returns_OK_Returns_the_created_test_details_response-1641925590","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_an_API_test_returns_OK_Returns_the_created_test_details_response-1641925590","monitor_priority":5,"retry":{"count":3,"interval":10},"tick_every":60},"subtype":"http","tags":["testing:api"],"type":"api"}'
3+
body: '{"config":{"assertions":[{"operator":"is","property":"{{ PROPERTY }}","target":"text/html","type":"header"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"}],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"certificate":{"cert":{"content":"cert-content","filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"content":"key-content","filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"headers":{"unique":"testcreateanapitestreturnsokreturnsthecreatedtestdetailsresponse1644495851"},"method":"GET","proxy":{"headers":{},"url":"https://datadoghq.com"},"timeout":10,"url":"https://datadoghq.com"}},"locations":["aws:us-east-2"],"message":"BDD
4+
test payload: synthetics_api_test_payload.json","name":"Test-Create_an_API_test_returns_OK_Returns_the_created_test_details_response-1644495851","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_an_API_test_returns_OK_Returns_the_created_test_details_response-1644495851","monitor_priority":5,"retry":{"count":3,"interval":10},"tick_every":60},"subtype":"http","tags":["testing:api"],"type":"api"}'
55
headers:
66
accept:
77
- application/json
@@ -11,17 +11,17 @@ interactions:
1111
uri: https://api.datadoghq.com/api/v1/synthetics/tests/api
1212
response:
1313
body:
14-
string: '{"status":"live","public_id":"gbf-27x-fyf","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD
15-
test payload: synthetics_api_test_payload.json","deleted_at":null,"name":"Test-Create_an_API_test_returns_OK_Returns_the_created_test_details_response-1641925590","monitor_id":60619278,"type":"api","created_at":"2022-01-11T18:26:30.681233+00:00","modified_at":"2022-01-11T18:26:30.681233+00:00","subtype":"http","config":{"request":{"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"url":"https://datadoghq.com","headers":{"unique":"testcreateanapitestreturnsokreturnsthecreatedtestdetailsresponse1641925590"},"proxy":{"url":"https://datadoghq.com","headers":{}},"timeout":10,"method":"GET"},"assertions":[{"operator":"is","property":"{{
16-
PROPERTY }}","type":"header","target":"text/html"},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"monitor_priority":5,"monitor_name":"Test-Create_an_API_test_returns_OK_Returns_the_created_test_details_response-1641925590","tick_every":60}}'
14+
string: '{"status":"live","public_id":"x87-4ez-4xz","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD
15+
test payload: synthetics_api_test_payload.json","deleted_at":null,"name":"Test-Create_an_API_test_returns_OK_Returns_the_created_test_details_response-1644495851","monitor_id":63812387,"type":"api","created_at":"2022-02-10T12:24:12.489088+00:00","modified_at":"2022-02-10T12:24:12.489088+00:00","subtype":"http","config":{"request":{"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"url":"https://datadoghq.com","headers":{"unique":"testcreateanapitestreturnsokreturnsthecreatedtestdetailsresponse1644495851"},"proxy":{"url":"https://datadoghq.com","headers":{}},"timeout":10,"method":"GET"},"assertions":[{"operator":"is","property":"{{
16+
PROPERTY }}","type":"header","target":"text/html"},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"monitor_priority":5,"monitor_name":"Test-Create_an_API_test_returns_OK_Returns_the_created_test_details_response-1644495851","tick_every":60}}'
1717
headers:
1818
content-type:
1919
- application/json
2020
status:
2121
code: 200
2222
message: OK
2323
- request:
24-
body: '{"public_ids":["gbf-27x-fyf"]}'
24+
body: '{"public_ids":["x87-4ez-4xz"]}'
2525
headers:
2626
accept:
2727
- application/json
@@ -31,7 +31,7 @@ interactions:
3131
uri: https://api.datadoghq.com/api/v1/synthetics/tests/delete
3232
response:
3333
body:
34-
string: '{"deleted_tests":[{"deleted_at":"2022-01-11T18:26:32.034575+00:00","public_id":"gbf-27x-fyf"}]}'
34+
string: '{"deleted_tests":[{"deleted_at":"2022-02-10T12:24:13.010432+00:00","public_id":"x87-4ez-4xz"}]}'
3535
headers:
3636
content-type:
3737
- application/json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-01-06T00:51:16.598Z
1+
2022-02-10T12:24:15.420Z

tests/v1/cassettes/test_scenarios/test_create_an_api_test_with_multi_subtype_returns_ok_returns_the_created_test_details_response.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ interactions:
22
- request:
33
body: '{"config":{"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"isCritical":true,"name":"request
44
is sent","request":{"method":"GET","timeout":10,"url":"https://datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"}]},"locations":["aws:us-east-2"],"message":"BDD
5-
test payload: synthetics_api_test_multi_step_payload.json","name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1641430276","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1641430276","monitor_priority":5,"retry":{"count":3,"interval":1000},"tick_every":60},"subtype":"multi","tags":["testing:api"],"type":"api"}'
5+
test payload: synthetics_api_test_multi_step_payload.json","name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1644495855","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1644495855","monitor_priority":5,"retry":{"count":3,"interval":1000},"tick_every":60},"subtype":"multi","tags":["testing:api"],"type":"api"}'
66
headers:
77
accept:
88
- application/json
@@ -12,17 +12,17 @@ interactions:
1212
uri: https://api.datadoghq.com/api/v1/synthetics/tests/api
1313
response:
1414
body:
15-
string: '{"status":"live","public_id":"kia-hd8-bct","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD
16-
test payload: synthetics_api_test_multi_step_payload.json","deleted_at":null,"name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1641430276","monitor_id":59800856,"type":"api","created_at":"2022-01-06T00:51:16.950611+00:00","modified_at":"2022-01-06T00:51:16.950611+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"request
17-
is sent","request":{"url":"https://datadoghq.com","method":"GET","timeout":10},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":true,"id":"st2-8kw-wzc"}],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":1000},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"monitor_priority":5,"monitor_name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1641430276","tick_every":60}}'
15+
string: '{"status":"live","public_id":"b9s-ywq-qhf","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD
16+
test payload: synthetics_api_test_multi_step_payload.json","deleted_at":null,"name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1644495855","monitor_id":63812390,"type":"api","created_at":"2022-02-10T12:24:16.216698+00:00","modified_at":"2022-02-10T12:24:16.216698+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"request
17+
is sent","request":{"url":"https://datadoghq.com","method":"GET","timeout":10},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":true,"id":"78t-9y9-ejd"}],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":1000},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"monitor_priority":5,"monitor_name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1644495855","tick_every":60}}'
1818
headers:
1919
content-type:
2020
- application/json
2121
status:
2222
code: 200
2323
message: OK
2424
- request:
25-
body: '{"public_ids":["kia-hd8-bct"]}'
25+
body: '{"public_ids":["b9s-ywq-qhf"]}'
2626
headers:
2727
accept:
2828
- application/json
@@ -32,7 +32,7 @@ interactions:
3232
uri: https://api.datadoghq.com/api/v1/synthetics/tests/delete
3333
response:
3434
body:
35-
string: '{"deleted_tests":[{"deleted_at":"2022-01-06T00:51:17.196033+00:00","public_id":"kia-hd8-bct"}]}'
35+
string: '{"deleted_tests":[{"deleted_at":"2022-02-10T12:24:16.747773+00:00","public_id":"b9s-ywq-qhf"}]}'
3636
headers:
3737
content-type:
3838
- application/json

0 commit comments

Comments
 (0)