Skip to content

Commit

Permalink
Regenerate client from commit 3b593f9 of spec repo (#369)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Nov 16, 2021
1 parent 5537a44 commit 4e8801d
Show file tree
Hide file tree
Showing 9 changed files with 371 additions and 8 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.5.1.dev2",
"regenerated": "2021-11-15 10:48:22.030021",
"spec_repo_commit": "ec0039a"
"regenerated": "2021-11-16 09:32:30.706371",
"spec_repo_commit": "3b593f9"
},
"v2": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2021-11-15 10:48:22.060268",
"spec_repo_commit": "ec0039a"
"regenerated": "2021-11-16 09:32:30.733243",
"spec_repo_commit": "3b593f9"
}
}
}
6 changes: 4 additions & 2 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10766,7 +10766,7 @@ components:
SyntheticsTestDetailsSubType:
description: 'The subtype of the Synthetic API test, `http`, `ssl`, `tcp`,

`dns`, `icmp`, `udp` or `multi`.'
`dns`, `icmp`, `udp`, `websocket` or `multi`.'
enum:
- http
- ssl
Expand All @@ -10775,6 +10775,7 @@ components:
- multi
- icmp
- udp
- websocket
example: http
type: string
x-enum-varnames:
Expand All @@ -10785,6 +10786,7 @@ components:
- MULTI
- ICMP
- UDP
- WEBSOCKET
SyntheticsTestDetailsType:
description: Type of the Synthetic test, either `api` or `browser`.
enum:
Expand Down Expand Up @@ -10977,7 +10979,7 @@ components:
description: Host name to perform the test with.
type: string
message:
description: Message to send for UDP tests.
description: Message to send for UDP or WebSocket tests.
type: string
method:
$ref: '#/components/schemas/HTTPMethod'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2021-11-15T18:07:45.924Z"
Original file line number Diff line number Diff line change
@@ -0,0 +1,316 @@
{
"log": {
"_recordingName": "Synthetics/Create an API test with WEBSOCKET subtype returns \"OK - Returns the created test details.\" response",
"creator": {
"comment": "persister:fs",
"name": "Polly.JS",
"version": "5.1.0"
},
"entries": [
{
"_id": "2a448c37dd4044dd1c0eaacf771bb7e1",
"_order": 0,
"cache": {},
"request": {
"bodySize": 844,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "user-agent",
"value": "datadog-api-client-typescript/1.0.0-beta.6 (node 14.18.1; os Linux; arch x64)"
},
{
"_fromType": "array",
"name": "accept",
"value": "application/json, */*;q=0.8"
},
{
"_fromType": "array",
"name": "content-type",
"value": "application/json"
},
{
"_fromType": "array",
"name": "x-datadog-parent-id",
"value": "4580709451748564676"
},
{
"_fromType": "array",
"name": "x-datadog-trace-id",
"value": "7130359786114391756"
},
{
"_fromType": "array",
"name": "content-length",
"value": "844"
},
{
"_fromType": "array",
"name": "connection",
"value": "close"
},
{
"name": "host",
"value": "api.datadoghq.com"
}
],
"headersSize": 487,
"httpVersion": "HTTP/1.1",
"method": "POST",
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"config\":{\"assertions\":[{\"operator\":\"is\",\"target\":\"message\",\"type\":\"receivedMessage\"},{\"operator\":\"lessThan\",\"target\":2000,\"type\":\"responseTime\"}],\"configVariables\":[],\"request\":{\"message\":\"message\",\"url\":\"ws://datadoghq.com\"}},\"locations\":[\"aws:us-east-2\"],\"message\":\"BDD test payload: synthetics_api_test_websocket_payload.json\",\"name\":\"Test-Create_an_API_test_with_WEBSOCKET_subtype_returns_OK_Returns_the_created_test_details_response-1636999665\",\"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_WEBSOCKET_subtype_returns_OK_Returns_the_created_test_details_response-1636999665\",\"monitor_priority\":5,\"retry\":{\"count\":3,\"interval\":10},\"tick_every\":60},\"subtype\":\"websocket\",\"tags\":[\"testing:api\"],\"type\":\"api\"}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/synthetics/tests/api"
},
"response": {
"bodySize": 1039,
"content": {
"mimeType": "application/json",
"size": 1039,
"text": "{\"status\":\"live\",\"public_id\":\"7f2-txy-a7p\",\"tags\":[\"testing:api\"],\"org_id\":321813,\"locations\":[\"aws:us-east-2\"],\"message\":\"BDD test payload: synthetics_api_test_websocket_payload.json\",\"deleted_at\":null,\"name\":\"Test-Create_an_API_test_with_WEBSOCKET_subtype_returns_OK_Returns_the_created_test_details_response-1636999665\",\"monitor_id\":54531314,\"type\":\"api\",\"created_at\":\"2021-11-15T18:07:46.215484+00:00\",\"modified_at\":\"2021-11-15T18:07:46.215484+00:00\",\"subtype\":\"websocket\",\"config\":{\"request\":{\"url\":\"ws://datadoghq.com\",\"message\":\"message\"},\"assertions\":[{\"operator\":\"is\",\"type\":\"receivedMessage\",\"target\":\"message\"},{\"operator\":\"lessThan\",\"type\":\"responseTime\",\"target\":2000}],\"configVariables\":[]},\"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_with_WEBSOCKET_subtype_returns_OK_Returns_the_created_test_details_response-1636999665\",\"tick_every\":60}}"
},
"cookies": [],
"headers": [
{
"name": "date",
"value": "Mon, 15 Nov 2021 18:07:46 GMT"
},
{
"name": "content-type",
"value": "application/json"
},
{
"name": "content-length",
"value": "1039"
},
{
"name": "connection",
"value": "close"
},
{
"name": "pragma",
"value": "no-cache"
},
{
"name": "cache-control",
"value": "no-cache"
},
{
"name": "x-ratelimit-limit",
"value": "12000"
},
{
"name": "x-ratelimit-period",
"value": "60"
},
{
"name": "x-ratelimit-reset",
"value": "14"
},
{
"name": "x-ratelimit-remaining",
"value": "11999"
},
{
"name": "x-envoy-upstream-service-time",
"value": "264"
},
{
"name": "vary",
"value": "Accept-Encoding"
},
{
"name": "x-content-type-options",
"value": "nosniff"
},
{
"name": "strict-transport-security",
"value": "max-age=15724800;"
},
{
"name": "content-security-policy",
"value": "frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report"
},
{
"name": "x-frame-options",
"value": "SAMEORIGIN"
}
],
"headersSize": 523,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2021-11-15T18:07:45.950Z",
"time": 345,
"timings": {
"blocked": -1,
"connect": -1,
"dns": -1,
"receive": 0,
"send": 0,
"ssl": -1,
"wait": 345
}
},
{
"_id": "139366de8ae213158bd70ca04c990462",
"_order": 0,
"cache": {},
"request": {
"bodySize": 30,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "user-agent",
"value": "datadog-api-client-typescript/1.0.0-beta.6 (node 14.18.1; os Linux; arch x64)"
},
{
"_fromType": "array",
"name": "accept",
"value": "application/json, */*;q=0.8"
},
{
"_fromType": "array",
"name": "content-type",
"value": "application/json"
},
{
"_fromType": "array",
"name": "x-datadog-parent-id",
"value": "8010816681933148738"
},
{
"_fromType": "array",
"name": "x-datadog-trace-id",
"value": "7130359786114391756"
},
{
"_fromType": "array",
"name": "content-length",
"value": "30"
},
{
"_fromType": "array",
"name": "connection",
"value": "close"
},
{
"name": "host",
"value": "api.datadoghq.com"
}
],
"headersSize": 489,
"httpVersion": "HTTP/1.1",
"method": "POST",
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"public_ids\":[\"7f2-txy-a7p\"]}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/synthetics/tests/delete"
},
"response": {
"bodySize": 95,
"content": {
"mimeType": "application/json",
"size": 95,
"text": "{\"deleted_tests\":[{\"deleted_at\":\"2021-11-15T18:07:46.397039+00:00\",\"public_id\":\"7f2-txy-a7p\"}]}"
},
"cookies": [],
"headers": [
{
"name": "date",
"value": "Mon, 15 Nov 2021 18:07:46 GMT"
},
{
"name": "content-type",
"value": "application/json"
},
{
"name": "content-length",
"value": "95"
},
{
"name": "connection",
"value": "close"
},
{
"name": "pragma",
"value": "no-cache"
},
{
"name": "cache-control",
"value": "no-cache"
},
{
"name": "x-ratelimit-limit",
"value": "12000"
},
{
"name": "x-ratelimit-period",
"value": "60"
},
{
"name": "x-ratelimit-reset",
"value": "14"
},
{
"name": "x-ratelimit-remaining",
"value": "11999"
},
{
"name": "x-envoy-upstream-service-time",
"value": "143"
},
{
"name": "vary",
"value": "Accept-Encoding"
},
{
"name": "x-content-type-options",
"value": "nosniff"
},
{
"name": "strict-transport-security",
"value": "max-age=15724800;"
},
{
"name": "content-security-policy",
"value": "frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report"
},
{
"name": "x-frame-options",
"value": "SAMEORIGIN"
}
],
"headersSize": 521,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2021-11-15T18:07:46.309Z",
"time": 159,
"timings": {
"blocked": -1,
"connect": -1,
"dns": -1,
"receive": 0,
"send": 0,
"ssl": -1,
"wait": 159
}
}
],
"pages": [],
"version": "1.2"
}
}
7 changes: 7 additions & 0 deletions features/v1/synthetics.feature
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ Feature: Synthetics
Then the response status is 200 OK - Returns the created test details.
And the response "name" is equal to "{{ unique }}"

Scenario: Create an API test with WEBSOCKET subtype returns "OK - Returns the created test details." response
Given new "CreateSyntheticsAPITest" request
And body from file "synthetics_api_test_websocket_payload.json"
When the request is sent
Then the response status is 200 OK - Returns the created test details.
And the response "name" is equal to "{{ unique }}"

@generated @skip
Scenario: Delete a global variable returns "JSON format is wrong" response
Given new "DeleteGlobalVariable" request
Expand Down
Loading

0 comments on commit 4e8801d

Please sign in to comment.