Skip to content

Commit 73de2e2

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update example for synthetics device_id with new format (#1850)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent a475101 commit 73de2e2

File tree

40 files changed

+160
-151
lines changed

40 files changed

+160
-151
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": "2024-01-26 14:49:53.454768",
8-
"spec_repo_commit": "a9a258a4"
7+
"regenerated": "2024-01-26 15:59:24.698075",
8+
"spec_repo_commit": "28baf464"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-01-26 14:49:53.548375",
13-
"spec_repo_commit": "a9a258a4"
12+
"regenerated": "2024-01-26 15:59:24.713107",
13+
"spec_repo_commit": "28baf464"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14667,7 +14667,7 @@ components:
1466714667
- edge.laptop_large
1466814668
- edge.tablet
1466914669
- edge.mobile_small
14670-
example: laptop_large
14670+
example: chrome.laptop_large
1467114671
type: string
1467214672
x-enum-varnames:
1467314673
- LAPTOP_LARGE

examples/v1/synthetics/CreateSyntheticsAPITest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
execution_rule=SyntheticsTestExecutionRule.BLOCKING,
5252
),
5353
device_ids=[
54-
SyntheticsDeviceID.LAPTOP_LARGE,
54+
SyntheticsDeviceID.CHROME_LAPTOP_LARGE,
5555
],
5656
http_version=SyntheticsTestOptionsHTTPVersion.HTTP1,
5757
monitor_options=SyntheticsTestOptionsMonitorOptions(),

examples/v1/synthetics/CreateSyntheticsBrowserTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
accept_self_signed=False,
5555
allow_insecure=True,
5656
device_ids=[
57-
SyntheticsDeviceID.TABLET,
57+
SyntheticsDeviceID.CHROME_LAPTOP_LARGE,
5858
],
5959
disable_cors=True,
6060
follow_redirects=True,

examples/v1/synthetics/TriggerCITests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
username="my_username",
2626
),
2727
device_ids=[
28-
SyntheticsDeviceID.LAPTOP_LARGE,
28+
SyntheticsDeviceID.CHROME_LAPTOP_LARGE,
2929
],
3030
locations=[
3131
"aws:eu-west-3",

examples/v1/synthetics/UpdateBrowserTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
execution_rule=SyntheticsTestExecutionRule.BLOCKING,
8383
),
8484
device_ids=[
85-
SyntheticsDeviceID.LAPTOP_LARGE,
85+
SyntheticsDeviceID.CHROME_LAPTOP_LARGE,
8686
],
8787
http_version=SyntheticsTestOptionsHTTPVersion.HTTP1,
8888
monitor_options=SyntheticsTestOptionsMonitorOptions(),
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2023-09-26T16:16:35.258Z
1+
2024-01-26T10:20:21.858Z

tests/v1/cassettes/test_scenarios/test_create_a_browser_test_returns_ok_returns_saved_rumsettings_response.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: '{"config":{"assertions":[],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"certificateDomains":["https://datadoghq.com"],"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_saved_rumSettings_response-1695744995","options":{"accept_self_signed":false,"allow_insecure":true,"ci":{"executionRule":"skipped"},"device_ids":["tablet"],"disableCors":true,"disableCsp":true,"follow_redirects":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":200,"min_failure_duration":10,"min_location_failed":1,"noScreenshot":true,"retry":{"count":2,"interval":10},"rumSettings":{"applicationId":"mockApplicationId","clientTokenId":12345,"isEnabled":true},"tick_every":300},"steps":[{"allowFailure":false,"isCritical":true,"name":"Refresh
4+
message","name":"Test-Create_a_browser_test_returns_OK_Returns_saved_rumSettings_response-1706264421","options":{"accept_self_signed":false,"allow_insecure":true,"ci":{"executionRule":"skipped"},"device_ids":["tablet"],"disableCors":true,"disableCsp":true,"follow_redirects":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":200,"min_failure_duration":10,"min_location_failed":1,"noScreenshot":true,"retry":{"count":2,"interval":10},"rumSettings":{"applicationId":"mockApplicationId","clientTokenId":12345,"isEnabled":true},"tick_every":300},"steps":[{"allowFailure":false,"isCritical":true,"name":"Refresh
55
page","params":{},"type":"refresh"}],"tags":["testing:browser"],"type":"browser"}'
66
headers:
77
accept:
@@ -12,8 +12,8 @@ interactions:
1212
uri: https://api.datadoghq.com/api/v1/synthetics/tests/browser
1313
response:
1414
body:
15-
string: '{"public_id":"xe7-4ub-t2m","name":"Test-Create_a_browser_test_returns_OK_Returns_saved_rumSettings_response-1695744995","status":"paused","type":"browser","tags":["testing:browser"],"created_at":"2023-09-26T16:16:35.485692+00:00","modified_at":"2023-09-26T16:16:35.485692+00:00","config":{"assertions":[],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"certificateDomains":["https://datadoghq.com"],"method":"GET","url":"https://datadoghq.com"},"setCookie":"name:test"},"message":"Test
16-
message","options":{"accept_self_signed":false,"allow_insecure":true,"ci":{"executionRule":"skipped"},"device_ids":["tablet"],"disableCors":true,"disableCsp":true,"follow_redirects":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":200,"min_failure_duration":10,"min_location_failed":1,"noScreenshot":true,"retry":{"count":2,"interval":10},"rumSettings":{"applicationId":"mockApplicationId","clientTokenId":12345,"isEnabled":true},"tick_every":300},"locations":["aws:us-east-2"],"created_by":{"name":null,"handle":"[email protected]","email":"[email protected]"},"deleted_at":null,"monitor_id":132050365,"org_id":321813,"modified_by":{"name":null,"handle":"[email protected]","email":"[email protected]"},"steps":[{"name":"Refresh
15+
string: '{"public_id":"y2r-gnr-i3n","name":"Test-Create_a_browser_test_returns_OK_Returns_saved_rumSettings_response-1706264421","status":"paused","type":"browser","tags":["testing:browser"],"created_at":"2024-01-26T10:20:22.506547+00:00","modified_at":"2024-01-26T10:20:22.506547+00:00","config":{"assertions":[],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"certificateDomains":["https://datadoghq.com"],"method":"GET","url":"https://datadoghq.com"},"setCookie":"name:test"},"message":"Test
16+
message","options":{"accept_self_signed":false,"allow_insecure":true,"ci":{"executionRule":"skipped"},"device_ids":["tablet"],"disableCors":true,"disableCsp":true,"follow_redirects":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":200,"min_failure_duration":10,"min_location_failed":1,"noScreenshot":true,"retry":{"count":2,"interval":10},"rumSettings":{"applicationId":"mockApplicationId","clientTokenId":12345,"isEnabled":true},"tick_every":300},"locations":["aws:us-east-2"],"created_by":{"name":"Frog","handle":"[email protected]","email":"[email protected]"},"deleted_at":null,"monitor_id":138446062,"org_id":569509,"modified_by":{"name":"Frog","handle":"[email protected]","email":"[email protected]"},"steps":[{"name":"Refresh
1717
page","params":{},"type":"refresh","allowFailure":false,"isCritical":true}],"stepCount":{"assertions":0,"subtests":0,"total":1}}'
1818
headers:
1919
content-type:
@@ -22,7 +22,7 @@ interactions:
2222
code: 200
2323
message: OK
2424
- request:
25-
body: '{"public_ids":["xe7-4ub-t2m"]}'
25+
body: '{"public_ids":["y2r-gnr-i3n"]}'
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":[{"public_id":"xe7-4ub-t2m","deleted_at":"2023-09-26T16:16:35.702812+00:00"}]}
35+
string: '{"deleted_tests":[{"public_id":"y2r-gnr-i3n","deleted_at":"2024-01-26T10:20:23.057714+00:00"}]}
3636
3737
'
3838
headers:
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2023-09-26T16:16:35.839Z
1+
2024-01-26T13:21:41.908Z

tests/v1/cassettes/test_scenarios/test_create_a_browser_test_returns_ok_returns_the_created_test_details_response.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: '{"config":{"assertions":[],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","secure":true,"type":"text"}],"request":{"method":"GET","url":"https://datadoghq.com"},"setCookie":"name:test","variables":[{"example":"secret","name":"TEST_VARIABLE","pattern":"secret","secure":true,"type":"text"}]},"locations":["aws:us-east-2"],"message":"Test
4-
message","name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1695744995","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":2,"interval":10},"tick_every":300},"steps":[{"allowFailure":false,"isCritical":true,"name":"Refresh
4+
message","name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1706275301","options":{"accept_self_signed":false,"allow_insecure":true,"device_ids":["chrome.laptop_large"],"disableCors":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"noScreenshot":true,"retry":{"count":2,"interval":10},"tick_every":300},"steps":[{"allowFailure":false,"isCritical":true,"name":"Refresh
55
page","params":{},"type":"refresh"}],"tags":["testing:browser"],"type":"browser"}'
66
headers:
77
accept:
@@ -12,8 +12,8 @@ interactions:
1212
uri: https://api.datadoghq.com/api/v1/synthetics/tests/browser
1313
response:
1414
body:
15-
string: '{"public_id":"nrw-sne-nnu","name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1695744995","status":"paused","type":"browser","tags":["testing:browser"],"created_at":"2023-09-26T16:16:36.081358+00:00","modified_at":"2023-09-26T16:16:36.081358+00:00","config":{"assertions":[],"configVariables":[{"name":"PROPERTY","secure":true,"type":"text"}],"request":{"method":"GET","url":"https://datadoghq.com"},"setCookie":"name:test","variables":[{"name":"TEST_VARIABLE","secure":true,"type":"text"}]},"message":"Test
16-
message","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":2,"interval":10},"tick_every":300},"locations":["aws:us-east-2"],"created_by":{"name":null,"handle":"[email protected]","email":"[email protected]"},"deleted_at":null,"monitor_id":132050366,"org_id":321813,"modified_by":{"name":null,"handle":"[email protected]","email":"[email protected]"},"steps":[{"name":"Refresh
15+
string: '{"public_id":"s58-re2-v8s","name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1706275301","status":"paused","type":"browser","tags":["testing:browser"],"created_at":"2024-01-26T13:21:42.472655+00:00","modified_at":"2024-01-26T13:21:42.472655+00:00","config":{"assertions":[],"configVariables":[{"name":"PROPERTY","secure":true,"type":"text"}],"request":{"method":"GET","url":"https://datadoghq.com"},"setCookie":"name:test","variables":[{"name":"TEST_VARIABLE","secure":true,"type":"text"}]},"message":"Test
16+
message","options":{"accept_self_signed":false,"allow_insecure":true,"device_ids":["chrome.laptop_large"],"disableCors":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"noScreenshot":true,"retry":{"count":2,"interval":10},"tick_every":300},"locations":["aws:us-east-2"],"created_by":{"name":"Frog","handle":"[email protected]","email":"[email protected]"},"deleted_at":null,"monitor_id":138453230,"org_id":569509,"modified_by":{"name":"Frog","handle":"[email protected]","email":"[email protected]"},"steps":[{"name":"Refresh
1717
page","params":{},"type":"refresh","allowFailure":false,"isCritical":true}],"stepCount":{"assertions":0,"subtests":0,"total":1}}'
1818
headers:
1919
content-type:
@@ -22,7 +22,7 @@ interactions:
2222
code: 200
2323
message: OK
2424
- request:
25-
body: '{"public_ids":["nrw-sne-nnu"]}'
25+
body: '{"public_ids":["s58-re2-v8s"]}'
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":[{"public_id":"nrw-sne-nnu","deleted_at":"2023-09-26T16:16:36.330841+00:00"}]}
35+
string: '{"deleted_tests":[{"public_id":"s58-re2-v8s","deleted_at":"2024-01-26T13:21:42.969942+00:00"}]}
3636
3737
'
3838
headers:

0 commit comments

Comments
 (0)