Skip to content

Commit 4da4c8f

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fd2aa418 of spec repo
1 parent bf48c08 commit 4da4c8f

14 files changed

+123
-20
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-07-19 06:39:08.119643",
8-
"spec_repo_commit": "0fe2fba6"
7+
"regenerated": "2022-07-19 07:52:30.890419",
8+
"spec_repo_commit": "fd2aa418"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-07-19 06:39:08.148025",
13-
"spec_repo_commit": "0fe2fba6"
12+
"regenerated": "2022-07-19 07:52:30.902679",
13+
"spec_repo_commit": "fd2aa418"
1414
}
1515
}
1616
}

examples/v1/synthetics/GetAPITestLatestResults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
with ApiClient(configuration) as api_client:
1010
api_instance = SyntheticsApi(api_client)
1111
response = api_instance.get_api_test_latest_results(
12-
public_id="public_id",
12+
public_id="hwb-332-3xe",
1313
)
1414

1515
print(response)

examples/v1/synthetics/GetAPITestResult.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
with ApiClient(configuration) as api_client:
1010
api_instance = SyntheticsApi(api_client)
1111
response = api_instance.get_api_test_result(
12-
public_id="public_id",
13-
result_id="result_id",
12+
public_id="hwb-332-3xe",
13+
result_id="3420446318379485707",
1414
)
1515

1616
print(response)

examples/v1/synthetics/GetBrowserTestLatestResults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
with ApiClient(configuration) as api_client:
1010
api_instance = SyntheticsApi(api_client)
1111
response = api_instance.get_browser_test_latest_results(
12-
public_id="public_id",
12+
public_id="2yy-sem-mjh",
1313
)
1414

1515
print(response)

examples/v1/synthetics/GetBrowserTestResult.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
with ApiClient(configuration) as api_client:
1010
api_instance = SyntheticsApi(api_client)
1111
response = api_instance.get_browser_test_result(
12-
public_id="public_id",
13-
result_id="result_id",
12+
public_id="2yy-sem-mjh",
13+
result_id="5671719892074090418",
1414
)
1515

1616
print(response)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2022-07-14T19:05:28.528Z
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
accept:
6+
- application/json
7+
method: GET
8+
uri: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2yy-sem-mjh/results/5671719892074090418
9+
response:
10+
body:
11+
string: '{"status":0,"run_type":0,"check_time":1657823117511,"check_version":2,"result":{"runType":0,"browserType":"edge","eventType":"finished","stepDetails":[{"browserErrors":[],"vitalsMetrics":[{"url":"https://docs.datadoghq.com/","lcp":805.599,"cls":0.001}],"skipped":false,"description":"Navigate
12+
to start URL","warnings":[],"url":"about:blank","snapshotBucketKey":false,"value":"https://docs.datadoghq.com/","rumContext":{"sessionId":"058f89c5-df45-4ecd-ada4-3cebd80ded90","applicationId":"737d835c-601a-46c1-853a-1af59907cff5","viewId":"8eaade39-8793-436f-b7fb-2e74858e0583"},"duration":2254,"emailMessageBucketKeys":false,"allowFailure":false,"screenshotBucketKey":true,"isCritical":false,"type":"goToUrlAndMeasureTti","stepId":-1},{"browserErrors":[],"vitalsMetrics":[],"skipped":false,"publicId":"s9n-dfr-cfw","description":"Type
13+
text on input \"s\"","emailMessageBucketKeys":false,"url":"https://docs.datadoghq.com/","snapshotBucketKey":false,"value":"api","rumContext":{"sessionId":"058f89c5-df45-4ecd-ada4-3cebd80ded90","applicationId":"737d835c-601a-46c1-853a-1af59907cff5","viewId":"8eaade39-8793-436f-b7fb-2e74858e0583"},"duration":814,"allowFailure":false,"screenshotBucketKey":true,"isCritical":true,"type":"typeText","stepId":11943140},{"browserErrors":[],"vitalsMetrics":[{"url":"https://docs.datadoghq.com/search/?s=api","lcp":474.8}],"skipped":false,"publicId":"tzz-gum-7rc","description":"Press
14+
key ''Enter''","emailMessageBucketKeys":false,"url":"https://docs.datadoghq.com/","snapshotBucketKey":false,"value":"Enter","rumContext":{"sessionId":"058f89c5-df45-4ecd-ada4-3cebd80ded90","applicationId":"737d835c-601a-46c1-853a-1af59907cff5","viewId":"2d5db8da-8605-4ca8-b001-c53b418f4cf0"},"duration":1973,"allowFailure":false,"screenshotBucketKey":true,"isCritical":true,"type":"pressKey","stepId":11943141},{"browserErrors":[],"vitalsMetrics":[{"url":"https://docs.datadoghq.com/api/latest/scopes/","lcp":434.4,"cls":0.001}],"skipped":false,"publicId":"waa-yji-ffq","description":"Click
15+
on link \"API\"","emailMessageBucketKeys":false,"url":"https://docs.datadoghq.com/search/?s=api","snapshotBucketKey":false,"rumContext":{"sessionId":"058f89c5-df45-4ecd-ada4-3cebd80ded90","applicationId":"737d835c-601a-46c1-853a-1af59907cff5","viewId":"18bd7286-d1a6-4218-896b-33c9af642aa9"},"duration":2090,"allowFailure":false,"screenshotBucketKey":true,"isCritical":true,"type":"click","stepId":11943142}],"browserVersion":"101.0.1210.32","mainDC":"us1.prod","timeToInteractive":1596.800000011921,"subtype":null,"device":{"name":"Laptop
16+
Large","height":1100,"width":1440,"userAgent":"Mozilla/5.0 (X11; Linux x86_64)
17+
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
18+
Edg/101.0.1210.32 DatadogSynthetics","id":"edge.laptop_large","isMobile":false,"browser":"edge"},"hasArtifacts":true,"passed":true,"duration":7131,"startUrl":"https://docs.datadoghq.com/"},"probe_dc":"aws:ca-central-1","result_id":"5671719892074090418","check":{"type":"browser","config":{"variables":[],"setCookie":"","request":{"url":"https://docs.datadoghq.com/","headers":{},"method":"GET"},"assertions":[],"configVariables":[]},"options":{"rumSettings":{"isEnabled":true,"applicationId":"737d835c-601a-46c1-853a-1af59907cff5","clientTokenId":94668},"retry":{"count":1,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"notify_no_data":false,"notify_audit":false,"new_host_delay":300,"renotify_interval":0},"noScreenshot":false,"tick_every":3600,"disableCsp":false,"disableCors":false,"device_ids":["chrome.laptop_large","firefox.laptop_large","edge.laptop_large"],"min_failure_duration":600,"ignoreServerCertificateError":false}},"device_id":"edge.laptop_large"}'
19+
headers:
20+
content-type:
21+
- application/json
22+
status:
23+
code: 200
24+
message: OK
25+
version: 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2022-07-14T18:28:01.484Z
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
accept:
6+
- application/json
7+
method: GET
8+
uri: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2yy-sem-mjh/results
9+
response:
10+
body:
11+
string: '{"last_timestamp_fetched":1652639281000,"results":[{"status":0,"check_time":1657823117511,"check_version":2,"result":{"runType":0,"tunnel":false,"errorMessage":null,"timings":null,"stepCountTotal":4,"stepCountCompleted":4,"duration":7131,"deviceId":"edge.laptop_large","passed":true,"device":{"name":"Laptop
12+
Large","height":1100,"width":1440,"userAgent":"Mozilla/5.0 (X11; Linux x86_64)
13+
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
14+
Edg/101.0.1210.32 DatadogSynthetics","id":"edge.laptop_large","isMobile":false,"browser":"edge"},"errorCount":0},"probe_dc":"aws:ca-central-1","result_id":"5671719892074090418","device_id":"edge.laptop_large"},{"status":0,"check_time":1657823117502,"check_version":2,"result":{"runType":0,"tunnel":false,"errorMessage":null,"timings":null,"stepCountTotal":4,"stepCountCompleted":4,"duration":4777,"deviceId":"chrome.laptop_large","passed":true,"device":{"name":"Laptop
15+
Large","height":1100,"width":1440,"userAgent":"Mozilla/5.0 (X11; Linux x86_64)
16+
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36
17+
DatadogSynthetics","id":"chrome.laptop_large","isMobile":false,"browser":"chrome"},"errorCount":1},"probe_dc":"aws:ca-central-1","result_id":"4818974208458839907","device_id":"chrome.laptop_large"},{"status":0,"check_time":1657823117502,"check_version":2,"result":{"runType":0,"tunnel":false,"errorMessage":null,"timings":null,"stepCountTotal":4,"stepCountCompleted":4,"duration":5838,"deviceId":"firefox.laptop_large","passed":true,"device":{"name":"Laptop
18+
Large","height":1100,"width":1440,"userAgent":"Mozilla/5.0 (X11; Linux x86_64)
19+
Gecko/20100101 Firefox/98.0.2 DatadogSynthetics","id":"firefox.laptop_large","isMobile":false,"browser":"firefox"},"errorCount":0},"probe_dc":"aws:ca-central-1","result_id":"5020771801584744095","device_id":"firefox.laptop_large"}]}'
20+
headers:
21+
content-type:
22+
- application/json
23+
status:
24+
code: 200
25+
message: OK
26+
version: 1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2022-07-14T18:46:34.950Z
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
accept:
6+
- application/json
7+
method: GET
8+
uri: https://api.datadoghq.com/api/v1/synthetics/tests/hwb-332-3xe/results/3420446318379485707
9+
response:
10+
body:
11+
string: '{"status":0,"run_type":0,"check_time":1657824307023,"check_version":1,"result":{"dnsServer":"8.8.4.4","eventType":"finished","resolutionAttempts":[],"timings":{"firstByte":21.2,"tcp":2.4,"ssl":18,"dns":10.9,"download":0.2,"total":52.7},"subtype":"http","mainDC":"us1.prod","passed":true,"resolvedIp":"142.250.189.238","runType":0,"httpStatusCode":301,"assertionResults":[{"expected":"2000","operator":"lessThan","valid":true,"actual":52.7,"type":"responseTime"},{"expected":"301","operator":"is","valid":true,"actual":301,"type":"statusCode"},{"actual":"text/html;
12+
charset=UTF-8","expected":"text/html; charset=UTF-8","valid":true,"operator":"is","property":"content-type","type":"header"}],"responseSize":220},"probe_dc":"aws:us-west-1","result_id":"3420446318379485707","check":{"type":"api","config":{"request":{"url":"https://google.com","method":"GET"},"assertions":[{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"is","type":"statusCode","target":301},{"operator":"is","property":"content-type","type":"header","target":"text/html;
13+
charset=UTF-8"}]},"options":{"min_location_failed":1,"monitor_options":{"include_tags":true,"notify_no_data":false,"notify_audit":false,"new_host_delay":300,"renotify_interval":0},"tick_every":60,"monitor_name":"Tesst","min_failure_duration":0,"httpVersion":"http1"}}}'
14+
headers:
15+
content-type:
16+
- application/json
17+
status:
18+
code: 200
19+
message: OK
20+
version: 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2022-07-14T18:37:24.177Z

tests/v1/cassettes/test_scenarios/test_get_an_api_tests_latest_results_summaries_returns_ok_response.yaml

Lines changed: 18 additions & 0 deletions
Large diffs are not rendered by default.

tests/v1/features/synthetics.feature

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -318,13 +318,15 @@ Feature: Synthetics
318318
When the request is sent
319319
Then the response status is 404 - Synthetic is not activated for the user
320320

321-
@generated @skip @team:DataDog/synthetics-app
321+
@replay-only @team:DataDog/synthetics-app
322322
Scenario: Get a browser test result returns "OK" response
323323
Given new "GetBrowserTestResult" request
324-
And request contains "public_id" parameter from "REPLACE.ME"
325-
And request contains "result_id" parameter from "REPLACE.ME"
324+
And request contains "public_id" parameter with value "2yy-sem-mjh"
325+
And request contains "result_id" parameter with value "5671719892074090418"
326326
When the request is sent
327327
Then the response status is 200 OK
328+
And the response "result_id" is equal to "5671719892074090418"
329+
And the response "probe_dc" is equal to "aws:ca-central-1"
328330

329331
@generated @skip @team:DataDog/synthetics-app
330332
Scenario: Get a browser test returns "- Synthetic is not activated for the user" response
@@ -347,12 +349,15 @@ Feature: Synthetics
347349
When the request is sent
348350
Then the response status is 404 - Synthetic is not activated for the user
349351

350-
@generated @skip @team:DataDog/synthetics-app
352+
@replay-only @team:DataDog/synthetics-app
351353
Scenario: Get a browser test's latest results summaries returns "OK" response
352354
Given new "GetBrowserTestLatestResults" request
353-
And request contains "public_id" parameter from "REPLACE.ME"
355+
And request contains "public_id" parameter with value "2yy-sem-mjh"
354356
When the request is sent
355357
Then the response status is 200 OK
358+
And the response "results" has length 3
359+
And the response "results[0].status" is equal to 0
360+
And the response "results[0].probe_dc" is equal to "aws:ca-central-1"
356361

357362
@generated @skip @team:DataDog/synthetics-app
358363
Scenario: Get a global variable returns "Not found" response
@@ -416,13 +421,15 @@ Feature: Synthetics
416421
When the request is sent
417422
Then the response status is 404 - Synthetic is not activated for the user
418423

419-
@generated @skip @team:DataDog/synthetics-app
424+
@replay-only @team:DataDog/synthetics-app
420425
Scenario: Get an API test result returns "OK" response
421426
Given new "GetAPITestResult" request
422-
And request contains "public_id" parameter from "REPLACE.ME"
423-
And request contains "result_id" parameter from "REPLACE.ME"
427+
And request contains "public_id" parameter with value "hwb-332-3xe"
428+
And request contains "result_id" parameter with value "3420446318379485707"
424429
When the request is sent
425430
Then the response status is 200 OK
431+
And the response "result_id" is equal to "3420446318379485707"
432+
And the response "probe_dc" is equal to "aws:us-west-1"
426433

427434
@team:DataDog/synthetics-app
428435
Scenario: Get an API test result returns result with failure object
@@ -457,12 +464,15 @@ Feature: Synthetics
457464
When the request is sent
458465
Then the response status is 404 - Synthetic is not activated for the user
459466

460-
@generated @skip @team:DataDog/synthetics-app
467+
@replay-only @team:DataDog/synthetics-app
461468
Scenario: Get an API test's latest results summaries returns "OK" response
462469
Given new "GetAPITestLatestResults" request
463-
And request contains "public_id" parameter from "REPLACE.ME"
470+
And request contains "public_id" parameter with value "hwb-332-3xe"
464471
When the request is sent
465472
Then the response status is 200 OK
473+
And the response "results" has length 150
474+
And the response "results[0].status" is equal to 0
475+
And the response "results[0].probe_dc" is equal to "aws:us-west-1"
466476

467477
@generated @skip @team:DataDog/synthetics-app
468478
Scenario: Get details of batch returns "Batch does not exist." response

0 commit comments

Comments
 (0)