Skip to content

Commit

Permalink
Regenerate client from commit fd2aa418 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jul 19, 2022
1 parent b945297 commit 1ad8f31
Show file tree
Hide file tree
Showing 14 changed files with 262 additions and 20 deletions.
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.2",
"regenerated": "2022-07-19 06:38:50.555238",
"spec_repo_commit": "0fe2fba6"
"regenerated": "2022-07-19 07:52:54.577154",
"spec_repo_commit": "fd2aa418"
},
"v2": {
"apigentools_version": "1.6.2",
"regenerated": "2022-07-19 06:38:50.567621",
"spec_repo_commit": "0fe2fba6"
"regenerated": "2022-07-19 07:52:54.601203",
"spec_repo_commit": "fd2aa418"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2022-07-14T19:05:28.528Z"
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"log": {
"_recordingName": "Synthetics/Get a browser test result returns \"OK\" response",
"creator": {
"comment": "persister:fs",
"name": "Polly.JS",
"version": "6.0.4"
},
"entries": [
{
"_id": "c9288df8c73cbe6b2c8ceaf8893a271c",
"_order": 0,
"cache": {},
"request": {
"bodySize": 0,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "application/json"
}
],
"headersSize": 561,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/synthetics/tests/browser/2yy-sem-mjh/results/5671719892074090418"
},
"response": {
"bodySize": 3688,
"content": {
"mimeType": "application/json",
"size": 3688,
"text": "{\"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 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 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 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 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 Large\",\"height\":1100,\"width\":1440,\"userAgent\":\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36 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\"}"
},
"cookies": [],
"headers": [
{
"name": "content-type",
"value": "application/json"
}
],
"headersSize": 667,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2022-07-14T19:05:28.545Z",
"time": 194
}
],
"pages": [],
"version": "1.2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2022-07-14T18:28:01.484Z"
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"log": {
"_recordingName": "Synthetics/Get a browser test's latest results summaries returns \"OK\" response",
"creator": {
"comment": "persister:fs",
"name": "Polly.JS",
"version": "6.0.4"
},
"entries": [
{
"_id": "99d8c7457b7efb440bf006b9b9250b5a",
"_order": 0,
"cache": {},
"request": {
"bodySize": 0,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "application/json"
}
],
"headersSize": 552,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/synthetics/tests/browser/2yy-sem-mjh/results"
},
"response": {
"bodySize": 1852,
"content": {
"mimeType": "application/json",
"size": 1852,
"text": "{\"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 Large\",\"height\":1100,\"width\":1440,\"userAgent\":\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36 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 Large\",\"height\":1100,\"width\":1440,\"userAgent\":\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36 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 Large\",\"height\":1100,\"width\":1440,\"userAgent\":\"Mozilla/5.0 (X11; Linux x86_64) 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\"}]}"
},
"cookies": [],
"headers": [
{
"name": "content-type",
"value": "application/json"
}
],
"headersSize": 681,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2022-07-14T18:28:01.498Z",
"time": 641
}
],
"pages": [],
"version": "1.2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2022-07-14T18:46:34.950Z"
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"log": {
"_recordingName": "Synthetics/Get an API test result returns \"OK\" response",
"creator": {
"comment": "persister:fs",
"name": "Polly.JS",
"version": "6.0.4"
},
"entries": [
{
"_id": "15689fcec0f15ce2702303851b0cde98",
"_order": 0,
"cache": {},
"request": {
"bodySize": 0,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "application/json"
}
],
"headersSize": 553,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/synthetics/tests/hwb-332-3xe/results/3420446318379485707"
},
"response": {
"bodySize": 1331,
"content": {
"mimeType": "application/json",
"size": 1331,
"text": "{\"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; 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; 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\"}}}"
},
"cookies": [],
"headers": [
{
"name": "content-type",
"value": "application/json"
}
],
"headersSize": 667,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2022-07-14T18:46:34.968Z",
"time": 196
}
],
"pages": [],
"version": "1.2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2022-07-14T18:37:24.177Z"

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/v1/synthetics/GetAPITestLatestResults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const configuration = client.createConfiguration();
const apiInstance = new v1.SyntheticsApi(configuration);

const params: v1.SyntheticsApiGetAPITestLatestResultsRequest = {
publicId: "public_id",
publicId: "hwb-332-3xe",
};

apiInstance
Expand Down
4 changes: 2 additions & 2 deletions examples/v1/synthetics/GetAPITestResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const configuration = client.createConfiguration();
const apiInstance = new v1.SyntheticsApi(configuration);

const params: v1.SyntheticsApiGetAPITestResultRequest = {
publicId: "public_id",
resultId: "result_id",
publicId: "hwb-332-3xe",
resultId: "3420446318379485707",
};

apiInstance
Expand Down
2 changes: 1 addition & 1 deletion examples/v1/synthetics/GetBrowserTestLatestResults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const configuration = client.createConfiguration();
const apiInstance = new v1.SyntheticsApi(configuration);

const params: v1.SyntheticsApiGetBrowserTestLatestResultsRequest = {
publicId: "public_id",
publicId: "2yy-sem-mjh",
};

apiInstance
Expand Down
4 changes: 2 additions & 2 deletions examples/v1/synthetics/GetBrowserTestResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const configuration = client.createConfiguration();
const apiInstance = new v1.SyntheticsApi(configuration);

const params: v1.SyntheticsApiGetBrowserTestResultRequest = {
publicId: "public_id",
resultId: "result_id",
publicId: "2yy-sem-mjh",
resultId: "5671719892074090418",
};

apiInstance
Expand Down
30 changes: 20 additions & 10 deletions features/v1/synthetics.feature
Original file line number Diff line number Diff line change
Expand Up @@ -318,13 +318,15 @@ Feature: Synthetics
When the request is sent
Then the response status is 404 - Synthetic is not activated for the user

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

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

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

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

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

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

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

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

0 comments on commit 1ad8f31

Please sign in to comment.