Skip to content

Commit 0a88f64

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 5c013ee5 of spec repo (#859)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 75d484d commit 0a88f64

File tree

6 files changed

+44
-44
lines changed

6 files changed

+44
-44
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.4",
7-
"regenerated": "2022-09-28 14:01:10.591063",
8-
"spec_repo_commit": "4a552860"
7+
"regenerated": "2022-09-28 16:41:33.701189",
8+
"spec_repo_commit": "5c013ee5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-09-28 14:01:10.605853",
13-
"spec_repo_commit": "4a552860"
12+
"regenerated": "2022-09-28 16:41:33.713516",
13+
"spec_repo_commit": "5c013ee5"
1414
}
1515
}
1616
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022-08-30T12:58:48.527Z"
1+
"2022-09-28T14:10:51.476Z"

cassettes/v1/Synthetics_2658572017/Create-a-global-variable-from-test-returns-OK-response_2967481205/recording.har

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "3734d43e541d3f843e5ff98d556dfbcd",
11+
"_id": "3a7b0e92d5b88888edcdc157ad4e4533",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -26,13 +26,13 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 579,
29+
"headersSize": 577,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "POST",
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"config\":{\"configVariables\":[{\"example\":\"content-type\",\"name\":\"PROPERTY\",\"pattern\":\"content-type\",\"type\":\"text\"}],\"steps\":[{\"allowFailure\":true,\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"extractedValues\":[{\"field\":\"server\",\"name\":\"EXTRACTED_VALUE\",\"parser\":{\"type\":\"raw\"},\"type\":\"http_header\"}],\"isCritical\":true,\"name\":\"request is sent\",\"request\":{\"method\":\"GET\",\"timeout\":10,\"url\":\"https://datadoghq.com\"},\"retry\":{\"count\":5,\"interval\":1000},\"subtype\":\"http\"}]},\"locations\":[\"aws:us-east-2\"],\"message\":\"BDD test payload: synthetics_api_test_multi_step_payload.json\",\"name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1661864328\",\"options\":{\"accept_self_signed\":false,\"allow_insecure\":true,\"follow_redirects\":true,\"min_failure_duration\":10,\"min_location_failed\":1,\"monitor_name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1661864328\",\"monitor_priority\":5,\"retry\":{\"count\":3,\"interval\":1000},\"tick_every\":60},\"subtype\":\"multi\",\"tags\":[\"testing:api\"],\"type\":\"api\"}"
35+
"text": "{\"config\":{\"configVariables\":[{\"example\":\"content-type\",\"name\":\"PROPERTY\",\"pattern\":\"content-type\",\"type\":\"text\"}],\"steps\":[{\"allowFailure\":true,\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"extractedValues\":[{\"field\":\"server\",\"name\":\"EXTRACTED_VALUE\",\"parser\":{\"type\":\"raw\"},\"type\":\"http_header\"}],\"isCritical\":true,\"name\":\"request is sent\",\"request\":{\"method\":\"GET\",\"timeout\":10,\"url\":\"https://datadoghq.com\"},\"retry\":{\"count\":5,\"interval\":1000},\"subtype\":\"http\"}]},\"locations\":[\"aws:us-east-2\"],\"message\":\"BDD test payload: synthetics_api_test_multi_step_payload.json\",\"name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1664374251\",\"options\":{\"accept_self_signed\":false,\"allow_insecure\":true,\"follow_redirects\":true,\"min_failure_duration\":10,\"min_location_failed\":1,\"monitor_name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1664374251\",\"monitor_priority\":5,\"retry\":{\"count\":3,\"interval\":1000},\"tick_every\":60},\"subtype\":\"multi\",\"tags\":[\"testing:api\"],\"type\":\"api\"}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v1/synthetics/tests/api"
@@ -42,7 +42,7 @@
4242
"content": {
4343
"mimeType": "application/json",
4444
"size": 1238,
45-
"text": "{\"status\":\"live\",\"public_id\":\"frc-8cs-fce\",\"tags\":[\"testing:api\"],\"org_id\":321813,\"locations\":[\"aws:us-east-2\"],\"message\":\"BDD test payload: synthetics_api_test_multi_step_payload.json\",\"deleted_at\":null,\"name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1661864328\",\"monitor_id\":81568613,\"type\":\"api\",\"created_at\":\"2022-08-30T12:58:49.246616+00:00\",\"modified_at\":\"2022-08-30T12:58:49.246616+00:00\",\"subtype\":\"multi\",\"config\":{\"steps\":[{\"retry\":{\"count\":5,\"interval\":1000},\"name\":\"request is sent\",\"request\":{\"url\":\"https://datadoghq.com\",\"method\":\"GET\",\"timeout\":10},\"subtype\":\"http\",\"allowFailure\":true,\"assertions\":[{\"operator\":\"is\",\"type\":\"statusCode\",\"target\":200}],\"isCritical\":true,\"id\":\"zty-xpv-7cw\",\"extractedValues\":[{\"field\":\"server\",\"parser\":{\"type\":\"raw\"},\"type\":\"http_header\",\"name\":\"EXTRACTED_VALUE\"}]}],\"configVariables\":[{\"pattern\":\"content-type\",\"type\":\"text\",\"example\":\"content-type\",\"name\":\"PROPERTY\"}]},\"options\":{\"accept_self_signed\":false,\"retry\":{\"count\":3,\"interval\":1000},\"min_location_failed\":1,\"allow_insecure\":true,\"follow_redirects\":true,\"min_failure_duration\":10,\"monitor_priority\":5,\"monitor_name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1661864328\",\"tick_every\":60}}"
45+
"text": "{\"status\":\"live\",\"public_id\":\"nsx-pp5-8tb\",\"tags\":[\"testing:api\"],\"org_id\":321813,\"locations\":[\"aws:us-east-2\"],\"message\":\"BDD test payload: synthetics_api_test_multi_step_payload.json\",\"deleted_at\":null,\"name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1664374251\",\"monitor_id\":92664497,\"type\":\"api\",\"created_at\":\"2022-09-28T14:10:52.140404+00:00\",\"modified_at\":\"2022-09-28T14:10:52.140404+00:00\",\"subtype\":\"multi\",\"config\":{\"steps\":[{\"retry\":{\"count\":5,\"interval\":1000},\"name\":\"request is sent\",\"request\":{\"url\":\"https://datadoghq.com\",\"method\":\"GET\",\"timeout\":10},\"subtype\":\"http\",\"allowFailure\":true,\"assertions\":[{\"operator\":\"is\",\"type\":\"statusCode\",\"target\":200}],\"isCritical\":true,\"id\":\"782-qng-yfe\",\"extractedValues\":[{\"field\":\"server\",\"parser\":{\"type\":\"raw\"},\"type\":\"http_header\",\"name\":\"EXTRACTED_VALUE\"}]}],\"configVariables\":[{\"pattern\":\"content-type\",\"type\":\"text\",\"example\":\"content-type\",\"name\":\"PROPERTY\"}]},\"options\":{\"accept_self_signed\":false,\"retry\":{\"count\":3,\"interval\":1000},\"min_location_failed\":1,\"allow_insecure\":true,\"follow_redirects\":true,\"min_failure_duration\":10,\"monitor_priority\":5,\"monitor_name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1664374251\",\"tick_every\":60}}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -51,21 +51,21 @@
5151
"value": "application/json"
5252
}
5353
],
54-
"headersSize": 624,
54+
"headersSize": 623,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2022-08-30T12:58:48.531Z",
61-
"time": 717
60+
"startedDateTime": "2022-09-28T14:10:51.487Z",
61+
"time": 775
6262
},
6363
{
64-
"_id": "d812322c60d02243f4e211d58d04a368",
64+
"_id": "cf6515ef523623e9deaae45f6888861a",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
68-
"bodySize": 219,
68+
"bodySize": 280,
6969
"cookies": [],
7070
"headers": [
7171
{
@@ -79,23 +79,23 @@
7979
"value": "application/json"
8080
}
8181
],
82-
"headersSize": 575,
82+
"headersSize": 573,
8383
"httpVersion": "HTTP/1.1",
8484
"method": "POST",
8585
"postData": {
8686
"mimeType": "application/json",
8787
"params": [],
88-
"text": "{\"description\":\"\",\"name\":\"GLOBAL_VARIABLE_PAYLOAD\",\"parse_test_options\":{\"localVariableName\":\"EXTRACTED_VALUE\",\"type\":\"local_variable\"},\"parse_test_public_id\":\"frc-8cs-fce\",\"tags\":[],\"value\":{\"secure\":false,\"value\":\"\"}}"
88+
"text": "{\"description\":\"\",\"name\":\"GLOBAL_VARIABLE_PAYLOAD_TESTCREATEAGLOBALVARIABLEFROMTESTRETURNSOKRESPONSE1664374251\",\"parse_test_options\":{\"localVariableName\":\"EXTRACTED_VALUE\",\"type\":\"local_variable\"},\"parse_test_public_id\":\"nsx-pp5-8tb\",\"tags\":[],\"value\":{\"secure\":false,\"value\":\"\"}}"
8989
},
9090
"queryString": [],
9191
"url": "https://api.datadoghq.com/api/v1/synthetics/variables"
9292
},
9393
"response": {
94-
"bodySize": 369,
94+
"bodySize": 430,
9595
"content": {
9696
"mimeType": "application/json",
97-
"size": 369,
98-
"text": "{\"parse_test_options\":{\"type\":\"local_variable\",\"localVariableName\":\"EXTRACTED_VALUE\"},\"parse_test_extracted_at\":null,\"description\":\"\",\"tags\":[],\"last_error\":null,\"is_totp\":null,\"value\":{\"secure\":false,\"value\":\"\"},\"parse_test_public_id\":\"frc-8cs-fce\",\"parse_test_name\":null,\"type\":\"variable\",\"id\":\"9dec05d1-27b9-4e16-9ec5-0305af3ac10a\",\"name\":\"GLOBAL_VARIABLE_PAYLOAD\"}\n"
97+
"size": 430,
98+
"text": "{\"parse_test_options\":{\"type\":\"local_variable\",\"localVariableName\":\"EXTRACTED_VALUE\"},\"parse_test_extracted_at\":null,\"description\":\"\",\"tags\":[],\"last_error\":null,\"is_totp\":null,\"value\":{\"secure\":false,\"value\":\"\"},\"parse_test_public_id\":\"nsx-pp5-8tb\",\"parse_test_name\":null,\"type\":\"variable\",\"id\":\"4507df9b-a12d-4dfe-b020-c76d4e96d286\",\"name\":\"GLOBAL_VARIABLE_PAYLOAD_TESTCREATEAGLOBALVARIABLEFROMTESTRETURNSOKRESPONSE1664374251\"}\n"
9999
},
100100
"cookies": [],
101101
"headers": [
@@ -104,17 +104,17 @@
104104
"value": "application/json"
105105
}
106106
],
107-
"headersSize": 623,
107+
"headersSize": 622,
108108
"httpVersion": "HTTP/1.1",
109109
"redirectURL": "",
110110
"status": 200,
111111
"statusText": "OK"
112112
},
113-
"startedDateTime": "2022-08-30T12:58:49.258Z",
114-
"time": 592
113+
"startedDateTime": "2022-09-28T14:10:52.274Z",
114+
"time": 495
115115
},
116116
{
117-
"_id": "0d5ab55cf3b7ef3c7b723fc2e111fdc9",
117+
"_id": "7e1777581e574f7470d4edd4151a0ad0",
118118
"_order": 0,
119119
"cache": {},
120120
"request": {
@@ -127,37 +127,36 @@
127127
"value": "*/*"
128128
}
129129
],
130-
"headersSize": 548,
130+
"headersSize": 546,
131131
"httpVersion": "HTTP/1.1",
132132
"method": "DELETE",
133133
"queryString": [],
134-
"url": "https://api.datadoghq.com/api/v1/synthetics/variables/9dec05d1-27b9-4e16-9ec5-0305af3ac10a"
134+
"url": "https://api.datadoghq.com/api/v1/synthetics/variables/4507df9b-a12d-4dfe-b020-c76d4e96d286"
135135
},
136136
"response": {
137-
"bodySize": 2,
137+
"bodySize": 0,
138138
"content": {
139-
"mimeType": "application/json",
140-
"size": 2,
141-
"text": "{}"
139+
"mimeType": "text/html; charset=utf-8",
140+
"size": 0
142141
},
143142
"cookies": [],
144143
"headers": [
145144
{
146145
"name": "content-type",
147-
"value": "application/json"
146+
"value": "text/html; charset=utf-8"
148147
}
149148
],
150-
"headersSize": 641,
149+
"headersSize": 605,
151150
"httpVersion": "HTTP/1.1",
152151
"redirectURL": "",
153152
"status": 200,
154153
"statusText": "OK"
155154
},
156-
"startedDateTime": "2022-08-30T12:58:49.857Z",
157-
"time": 530
155+
"startedDateTime": "2022-09-28T14:10:52.777Z",
156+
"time": 475
158157
},
159158
{
160-
"_id": "debd38c6bd8887f8a52793d906ee4b55",
159+
"_id": "c767bbcf1d98adc13f84dad576e9e3ed",
161160
"_order": 0,
162161
"cache": {},
163162
"request": {
@@ -175,23 +174,23 @@
175174
"value": "application/json"
176175
}
177176
],
178-
"headersSize": 568,
177+
"headersSize": 566,
179178
"httpVersion": "HTTP/1.1",
180179
"method": "POST",
181180
"postData": {
182181
"mimeType": "application/json",
183182
"params": [],
184-
"text": "{\"public_ids\":[\"frc-8cs-fce\"]}"
183+
"text": "{\"public_ids\":[\"nsx-pp5-8tb\"]}"
185184
},
186185
"queryString": [],
187186
"url": "https://api.datadoghq.com/api/v1/synthetics/tests/delete"
188187
},
189188
"response": {
190-
"bodySize": 95,
189+
"bodySize": 96,
191190
"content": {
192191
"mimeType": "application/json",
193-
"size": 95,
194-
"text": "{\"deleted_tests\":[{\"deleted_at\":\"2022-08-30T12:58:55.803154+00:00\",\"public_id\":\"frc-8cs-fce\"}]}"
192+
"size": 96,
193+
"text": "{\"deleted_tests\":[{\"deleted_at\":\"2022-09-28T14:10:58.657679+00:00\",\"public_id\":\"nsx-pp5-8tb\"}]}\n"
195194
},
196195
"cookies": [],
197196
"headers": [
@@ -200,14 +199,14 @@
200199
"value": "application/json"
201200
}
202201
],
203-
"headersSize": 665,
202+
"headersSize": 621,
204203
"httpVersion": "HTTP/1.1",
205204
"redirectURL": "",
206205
"status": 200,
207206
"statusText": "OK"
208207
},
209-
"startedDateTime": "2022-08-30T12:58:50.394Z",
210-
"time": 5506
208+
"startedDateTime": "2022-09-28T14:10:53.262Z",
209+
"time": 5583
211210
}
212211
],
213212
"pages": [],

examples/v1/synthetics/CreateGlobalVariable_1068962881.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const SYNTHETICS_API_TEST_MULTI_STEP_PUBLIC_ID = process.env
1414
const params: v1.SyntheticsApiCreateGlobalVariableRequest = {
1515
body: {
1616
description: "",
17-
name: "GLOBAL_VARIABLE_PAYLOAD",
17+
name: "GLOBAL_VARIABLE_PAYLOAD_EXAMPLECREATEAGLOBALVARIABLEFROMTESTRETURNSOKRESPONSE",
1818
tags: [],
1919
value: {
2020
secure: false,

features/v1/synthetics.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Feature: Synthetics
7070
And body from file "synthetics_global_variable_payload.json"
7171
When the request is sent
7272
Then the response status is 200 OK
73+
And the response "name" is equal to "GLOBAL_VARIABLE_PAYLOAD_{{ unique_upper_alnum }}"
7374

7475
@generated @skip @team:DataDog/synthetics-app
7576
Scenario: Create a global variable returns "Invalid request" response

features/v1/synthetics_global_variable_payload.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"description": "",
3-
"name": "GLOBAL_VARIABLE_PAYLOAD",
3+
"name": "GLOBAL_VARIABLE_PAYLOAD_{{ unique_upper_alnum }}",
44
"tags": [],
55
"value": {
66
"secure": false,

0 commit comments

Comments
 (0)