Skip to content

Commit 47205a4

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-specHantingZhang2
authored
Enable delete and update aws tests (#1431)
* Regenerate client from commit bfa2e051 of spec repo * Support undo of given * Regenerate client from commit 07df9ec5 of spec repo --------- Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: HantingZhang2 <[email protected]>
1 parent f2a2dd5 commit 47205a4

File tree

10 files changed

+338
-35
lines changed

10 files changed

+338
-35
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.6",
7-
"regenerated": "2023-12-04 15:37:46.423606",
8-
"spec_repo_commit": "e66bf244"
7+
"regenerated": "2023-12-04 18:32:04.096708",
8+
"spec_repo_commit": "07df9ec5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-12-04 15:37:46.444320",
13-
"spec_repo_commit": "e66bf244"
12+
"regenerated": "2023-12-04 18:32:04.111110",
13+
"spec_repo_commit": "07df9ec5"
1414
}
1515
}
1616
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2023-11-21T19:25:15.118Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
{
2+
"log": {
3+
"_recordingName": "AWS Integration/Delete an AWS integration returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "bb29ad65cdffba55412405b976907dc1",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 340,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 566,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"account_id\":\"170059471500\",\"account_specific_namespace_rules\":{\"auto_scaling\":false},\"cspm_resource_collection_enabled\":true,\"excluded_regions\":[\"us-east-1\",\"us-west-2\"],\"filter_tags\":[\"$KEY:$VALUE\"],\"host_tags\":[\"$KEY:$VALUE\"],\"metrics_collection_enabled\":false,\"resource_collection_enabled\":true,\"role_name\":\"DatadogAWSIntegrationRole\"}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v1/integration/aws"
39+
},
40+
"response": {
41+
"bodySize": 51,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 51,
45+
"text": "{\"external_id\":\"77c77ead62584b0fa1bb6a9fe7d2fa28\"}\n"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 516,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2023-11-21T19:25:15.135Z",
61+
"time": 1335
62+
},
63+
{
64+
"_id": "c922634dc5c2ad1983b0cbb0aad81180",
65+
"_order": 0,
66+
"cache": {},
67+
"request": {
68+
"bodySize": 69,
69+
"cookies": [],
70+
"headers": [
71+
{
72+
"_fromType": "array",
73+
"name": "accept",
74+
"value": "application/json"
75+
},
76+
{
77+
"_fromType": "array",
78+
"name": "content-type",
79+
"value": "application/json"
80+
}
81+
],
82+
"headersSize": 567,
83+
"httpVersion": "HTTP/1.1",
84+
"method": "DELETE",
85+
"postData": {
86+
"mimeType": "application/json",
87+
"params": [],
88+
"text": "{\"account_id\":\"170059471500\",\"role_name\":\"DatadogAWSIntegrationRole\"}"
89+
},
90+
"queryString": [],
91+
"url": "https://api.datadoghq.com/api/v1/integration/aws"
92+
},
93+
"response": {
94+
"bodySize": 3,
95+
"content": {
96+
"mimeType": "application/json",
97+
"size": 3,
98+
"text": "{}\n"
99+
},
100+
"cookies": [],
101+
"headers": [
102+
{
103+
"name": "content-type",
104+
"value": "application/json"
105+
}
106+
],
107+
"headersSize": 492,
108+
"httpVersion": "HTTP/1.1",
109+
"redirectURL": "",
110+
"status": 200,
111+
"statusText": "OK"
112+
},
113+
"startedDateTime": "2023-11-21T19:25:16.482Z",
114+
"time": 1225
115+
},
116+
{
117+
"_id": "c922634dc5c2ad1983b0cbb0aad81180",
118+
"_order": 1,
119+
"cache": {},
120+
"request": {
121+
"bodySize": 69,
122+
"cookies": [],
123+
"headers": [
124+
{
125+
"_fromType": "array",
126+
"name": "accept",
127+
"value": "application/json"
128+
},
129+
{
130+
"_fromType": "array",
131+
"name": "content-type",
132+
"value": "application/json"
133+
}
134+
],
135+
"headersSize": 567,
136+
"httpVersion": "HTTP/1.1",
137+
"method": "DELETE",
138+
"postData": {
139+
"mimeType": "application/json",
140+
"params": [],
141+
"text": "{\"account_id\":\"170059471500\",\"role_name\":\"DatadogAWSIntegrationRole\"}"
142+
},
143+
"queryString": [],
144+
"url": "https://api.datadoghq.com/api/v1/integration/aws"
145+
},
146+
"response": {
147+
"bodySize": 69,
148+
"content": {
149+
"mimeType": "application/json",
150+
"size": 69,
151+
"text": "{\"errors\":[\"AWS account 170059471500 does not exist in integration\"]}"
152+
},
153+
"cookies": [],
154+
"headers": [
155+
{
156+
"name": "content-type",
157+
"value": "application/json"
158+
}
159+
],
160+
"headersSize": 516,
161+
"httpVersion": "HTTP/1.1",
162+
"redirectURL": "",
163+
"status": 400,
164+
"statusText": "Bad Request"
165+
},
166+
"startedDateTime": "2023-11-21T19:25:17.719Z",
167+
"time": 646
168+
}
169+
],
170+
"pages": [],
171+
"version": "1.2"
172+
}
173+
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022-05-17T15:38:07.190Z"
1+
"2023-11-23T18:16:16.323Z"

cassettes/v1/AWS-Integration_2071210100/Update-an-AWS-integration-returns-OK-response_598706190/recording.har

Lines changed: 121 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "5a091278ee38e1a5fecb01ae94815ef4",
11+
"_id": "e683ecb697b42ae82b13f186c3db794e",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 347,
15+
"bodySize": 340,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -26,48 +26,154 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 632,
29+
"headersSize": 566,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"account_id\":\"170076337600\",\"account_specific_namespace_rules\":{\"auto_scaling\":false},\"cspm_resource_collection_enabled\":true,\"excluded_regions\":[\"us-east-1\",\"us-west-2\"],\"filter_tags\":[\"$KEY:$VALUE\"],\"host_tags\":[\"$KEY:$VALUE\"],\"metrics_collection_enabled\":false,\"resource_collection_enabled\":true,\"role_name\":\"DatadogAWSIntegrationRole\"}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v1/integration/aws"
39+
},
40+
"response": {
41+
"bodySize": 51,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 51,
45+
"text": "{\"external_id\":\"c7298c166e774bf1bd1bc0419e68f1a0\"}\n"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 516,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2023-11-23T18:16:16.343Z",
61+
"time": 2615
62+
},
63+
{
64+
"_id": "b9ef091797137f878c603a564f800395",
65+
"_order": 0,
66+
"cache": {},
67+
"request": {
68+
"bodySize": 340,
69+
"cookies": [],
70+
"headers": [
71+
{
72+
"_fromType": "array",
73+
"name": "accept",
74+
"value": "application/json"
75+
},
76+
{
77+
"_fromType": "array",
78+
"name": "content-type",
79+
"value": "application/json"
80+
}
81+
],
82+
"headersSize": 625,
3083
"httpVersion": "HTTP/1.1",
3184
"method": "PUT",
3285
"postData": {
3386
"mimeType": "application/json",
3487
"params": [],
35-
"text": "{\"account_id\":\"123456789012\",\"account_specific_namespace_rules\":{\"auto_scaling\":false},\"cspm_resource_collection_enabled\":true,\"excluded_regions\":[\"us-east-1\",\"us-west-2\"],\"filter_tags\":[\"$KEY:$VALUE\"],\"host_tags\":[\"$KEY:$VALUE\"],\"metrics_collection_enabled\":false,\"resource_collection_enabled\":true,\"role_name\":\"datadog-role\"}"
88+
"text": "{\"account_id\":\"170076337600\",\"account_specific_namespace_rules\":{\"auto_scaling\":false},\"cspm_resource_collection_enabled\":false,\"excluded_regions\":[\"us-east-1\",\"us-west-2\"],\"filter_tags\":[\"$KEY:$VALUE\"],\"host_tags\":[\"$KEY:$VALUE\"],\"metrics_collection_enabled\":true,\"resource_collection_enabled\":true,\"role_name\":\"DatadogAWSIntegrationRole\"}"
3689
},
3790
"queryString": [
3891
{
3992
"name": "account_id",
40-
"value": "123456789012"
93+
"value": "170076337600"
4194
},
4295
{
4396
"name": "role_name",
44-
"value": "datadog-role"
97+
"value": "DatadogAWSIntegrationRole"
98+
}
99+
],
100+
"url": "https://api.datadoghq.com/api/v1/integration/aws?account_id=170076337600&role_name=DatadogAWSIntegrationRole"
101+
},
102+
"response": {
103+
"bodySize": 3,
104+
"content": {
105+
"mimeType": "application/json",
106+
"size": 3,
107+
"text": "{}\n"
108+
},
109+
"cookies": [],
110+
"headers": [
111+
{
112+
"name": "content-type",
113+
"value": "application/json"
114+
}
115+
],
116+
"headersSize": 492,
117+
"httpVersion": "HTTP/1.1",
118+
"redirectURL": "",
119+
"status": 200,
120+
"statusText": "OK"
121+
},
122+
"startedDateTime": "2023-11-23T18:16:18.984Z",
123+
"time": 1204
124+
},
125+
{
126+
"_id": "9979a2c458fd639b7988df76fa0025d7",
127+
"_order": 0,
128+
"cache": {},
129+
"request": {
130+
"bodySize": 69,
131+
"cookies": [],
132+
"headers": [
133+
{
134+
"_fromType": "array",
135+
"name": "accept",
136+
"value": "application/json"
137+
},
138+
{
139+
"_fromType": "array",
140+
"name": "content-type",
141+
"value": "application/json"
45142
}
46143
],
47-
"url": "https://api.datadoghq.com/api/v1/integration/aws?account_id=123456789012&role_name=datadog-role"
144+
"headersSize": 567,
145+
"httpVersion": "HTTP/1.1",
146+
"method": "DELETE",
147+
"postData": {
148+
"mimeType": "application/json",
149+
"params": [],
150+
"text": "{\"account_id\":\"170076337600\",\"role_name\":\"DatadogAWSIntegrationRole\"}"
151+
},
152+
"queryString": [],
153+
"url": "https://api.datadoghq.com/api/v1/integration/aws"
48154
},
49155
"response": {
50-
"bodySize": 2,
156+
"bodySize": 3,
51157
"content": {
52-
"mimeType": "application/json;charset=utf-8",
53-
"size": 2,
54-
"text": "{}"
158+
"mimeType": "application/json",
159+
"size": 3,
160+
"text": "{}\n"
55161
},
56162
"cookies": [],
57163
"headers": [
58164
{
59165
"name": "content-type",
60-
"value": "application/json;charset=utf-8"
166+
"value": "application/json"
61167
}
62168
],
63-
"headersSize": 654,
169+
"headersSize": 492,
64170
"httpVersion": "HTTP/1.1",
65171
"redirectURL": "",
66172
"status": 200,
67173
"statusText": "OK"
68174
},
69-
"startedDateTime": "2022-05-17T15:38:07.204Z",
70-
"time": 878
175+
"startedDateTime": "2023-11-23T18:16:20.211Z",
176+
"time": 977
71177
}
72178
],
73179
"pages": [],

examples/v1/aws-integration/DeleteAWSAccount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const apiInstance = new v1.AWSIntegrationApi(configuration);
99

1010
const params: v1.AWSIntegrationApiDeleteAWSAccountRequest = {
1111
body: {
12-
accountId: "123456789012",
12+
accountId: "163662907100",
1313
roleName: "DatadogAWSIntegrationRole",
1414
},
1515
};

0 commit comments

Comments
 (0)