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

Update example for synthetics device_id with new format #1850

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
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-01-26 14:49:53.454768",
"spec_repo_commit": "a9a258a4"
"regenerated": "2024-01-26 15:59:24.698075",
"spec_repo_commit": "28baf464"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-01-26 14:49:53.548375",
"spec_repo_commit": "a9a258a4"
"regenerated": "2024-01-26 15:59:24.713107",
"spec_repo_commit": "28baf464"
}
}
}
2 changes: 1 addition & 1 deletion .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14667,7 +14667,7 @@ components:
- edge.laptop_large
- edge.tablet
- edge.mobile_small
example: laptop_large
example: chrome.laptop_large
type: string
x-enum-varnames:
- LAPTOP_LARGE
Expand Down
2 changes: 1 addition & 1 deletion examples/v1/synthetics/CreateSyntheticsAPITest.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
execution_rule=SyntheticsTestExecutionRule.BLOCKING,
),
device_ids=[
SyntheticsDeviceID.LAPTOP_LARGE,
SyntheticsDeviceID.CHROME_LAPTOP_LARGE,
],
http_version=SyntheticsTestOptionsHTTPVersion.HTTP1,
monitor_options=SyntheticsTestOptionsMonitorOptions(),
Expand Down
2 changes: 1 addition & 1 deletion examples/v1/synthetics/CreateSyntheticsBrowserTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
accept_self_signed=False,
allow_insecure=True,
device_ids=[
SyntheticsDeviceID.TABLET,
SyntheticsDeviceID.CHROME_LAPTOP_LARGE,
],
disable_cors=True,
follow_redirects=True,
Expand Down
2 changes: 1 addition & 1 deletion examples/v1/synthetics/TriggerCITests.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
username="my_username",
),
device_ids=[
SyntheticsDeviceID.LAPTOP_LARGE,
SyntheticsDeviceID.CHROME_LAPTOP_LARGE,
],
locations=[
"aws:eu-west-3",
Expand Down
2 changes: 1 addition & 1 deletion examples/v1/synthetics/UpdateBrowserTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
execution_rule=SyntheticsTestExecutionRule.BLOCKING,
),
device_ids=[
SyntheticsDeviceID.LAPTOP_LARGE,
SyntheticsDeviceID.CHROME_LAPTOP_LARGE,
],
http_version=SyntheticsTestOptionsHTTPVersion.HTTP1,
monitor_options=SyntheticsTestOptionsMonitorOptions(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023-09-26T16:16:35.258Z
2024-01-26T10:20:21.858Z
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interactions:
- request:
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
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
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
page","params":{},"type":"refresh"}],"tags":["testing:browser"],"type":"browser"}'
headers:
accept:
Expand All @@ -12,8 +12,8 @@ interactions:
uri: https://api.datadoghq.com/api/v1/synthetics/tests/browser
response:
body:
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
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
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
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
page","params":{},"type":"refresh","allowFailure":false,"isCritical":true}],"stepCount":{"assertions":0,"subtests":0,"total":1}}'
headers:
content-type:
Expand All @@ -22,7 +22,7 @@ interactions:
code: 200
message: OK
- request:
body: '{"public_ids":["xe7-4ub-t2m"]}'
body: '{"public_ids":["y2r-gnr-i3n"]}'
headers:
accept:
- application/json
Expand All @@ -32,7 +32,7 @@ interactions:
uri: https://api.datadoghq.com/api/v1/synthetics/tests/delete
response:
body:
string: '{"deleted_tests":[{"public_id":"xe7-4ub-t2m","deleted_at":"2023-09-26T16:16:35.702812+00:00"}]}
string: '{"deleted_tests":[{"public_id":"y2r-gnr-i3n","deleted_at":"2024-01-26T10:20:23.057714+00:00"}]}

'
headers:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023-09-26T16:16:35.839Z
2024-01-26T13:21:41.908Z
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interactions:
- request:
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
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
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
page","params":{},"type":"refresh"}],"tags":["testing:browser"],"type":"browser"}'
headers:
accept:
Expand All @@ -12,8 +12,8 @@ interactions:
uri: https://api.datadoghq.com/api/v1/synthetics/tests/browser
response:
body:
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
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
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
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
page","params":{},"type":"refresh","allowFailure":false,"isCritical":true}],"stepCount":{"assertions":0,"subtests":0,"total":1}}'
headers:
content-type:
Expand All @@ -22,7 +22,7 @@ interactions:
code: 200
message: OK
- request:
body: '{"public_ids":["nrw-sne-nnu"]}'
body: '{"public_ids":["s58-re2-v8s"]}'
headers:
accept:
- application/json
Expand All @@ -32,7 +32,7 @@ interactions:
uri: https://api.datadoghq.com/api/v1/synthetics/tests/delete
response:
body:
string: '{"deleted_tests":[{"public_id":"nrw-sne-nnu","deleted_at":"2023-09-26T16:16:36.330841+00:00"}]}
string: '{"deleted_tests":[{"public_id":"s58-re2-v8s","deleted_at":"2024-01-26T13:21:42.969942+00:00"}]}

'
headers:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023-09-26T16:16:36.921Z
2024-01-26T10:20:25.056Z
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interactions:
- request:
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
message","name":"Test-Create_a_browser_test_with_advanced_scheduling_options_returns_OK_Returns_the_created_test_details_r-1695744996","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},"scheduling":{"timeframes":[{"day":1,"from":"07:00","to":"16:00"},{"day":3,"from":"07:00","to":"16:00"}],"timezone":"America/New_York"},"tick_every":300},"steps":[{"allowFailure":false,"isCritical":true,"name":"Refresh
message","name":"Test-Create_a_browser_test_with_advanced_scheduling_options_returns_OK_Returns_the_created_test_details_r-1706264425","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},"scheduling":{"timeframes":[{"day":1,"from":"07:00","to":"16:00"},{"day":3,"from":"07:00","to":"16:00"}],"timezone":"America/New_York"},"tick_every":300},"steps":[{"allowFailure":false,"isCritical":true,"name":"Refresh
page","params":{},"type":"refresh"}],"tags":["testing:browser"],"type":"browser"}'
headers:
accept:
Expand All @@ -12,8 +12,8 @@ interactions:
uri: https://api.datadoghq.com/api/v1/synthetics/tests/browser
response:
body:
string: '{"public_id":"6mk-9ey-6p5","name":"Test-Create_a_browser_test_with_advanced_scheduling_options_returns_OK_Returns_the_created_test_details_r-1695744996","status":"paused","type":"browser","tags":["testing:browser"],"created_at":"2023-09-26T16:16:37.134602+00:00","modified_at":"2023-09-26T16:16:37.134602+00:00","config":{"assertions":[],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"method":"GET","url":"https://datadoghq.com"},"setCookie":"name:test"},"message":"Test
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},"scheduling":{"timeframes":[{"day":1,"from":"07:00","to":"16:00"},{"day":3,"from":"07:00","to":"16:00"}],"timezone":"America/New_York"},"tick_every":300},"locations":["aws:us-east-2"],"created_by":{"name":null,"handle":"[email protected]","email":"[email protected]"},"deleted_at":null,"monitor_id":132050367,"org_id":321813,"modified_by":{"name":null,"handle":"[email protected]","email":"[email protected]"},"steps":[{"name":"Refresh
string: '{"public_id":"un5-mtk-j4v","name":"Test-Create_a_browser_test_with_advanced_scheduling_options_returns_OK_Returns_the_created_test_details_r-1706264425","status":"paused","type":"browser","tags":["testing:browser"],"created_at":"2024-01-26T10:20:25.632372+00:00","modified_at":"2024-01-26T10:20:25.632372+00:00","config":{"assertions":[],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"method":"GET","url":"https://datadoghq.com"},"setCookie":"name:test"},"message":"Test
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},"scheduling":{"timeframes":[{"day":1,"from":"07:00","to":"16:00"},{"day":3,"from":"07:00","to":"16:00"}],"timezone":"America/New_York"},"tick_every":300},"locations":["aws:us-east-2"],"created_by":{"name":"Frog","handle":"[email protected]","email":"[email protected]"},"deleted_at":null,"monitor_id":138446064,"org_id":569509,"modified_by":{"name":"Frog","handle":"[email protected]","email":"[email protected]"},"steps":[{"name":"Refresh
page","params":{},"type":"refresh","allowFailure":false,"isCritical":true}],"stepCount":{"assertions":0,"subtests":0,"total":1}}'
headers:
content-type:
Expand All @@ -22,7 +22,7 @@ interactions:
code: 200
message: OK
- request:
body: '{"public_ids":["6mk-9ey-6p5"]}'
body: '{"public_ids":["un5-mtk-j4v"]}'
headers:
accept:
- application/json
Expand All @@ -32,7 +32,7 @@ interactions:
uri: https://api.datadoghq.com/api/v1/synthetics/tests/delete
response:
body:
string: '{"deleted_tests":[{"public_id":"6mk-9ey-6p5","deleted_at":"2023-09-26T16:16:37.344201+00:00"}]}
string: '{"deleted_tests":[{"public_id":"un5-mtk-j4v","deleted_at":"2024-01-26T10:20:26.205695+00:00"}]}

'
headers:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023-05-23T13:41:47.597Z
2024-01-26T10:20:27.109Z
Loading
Loading