Skip to content

Commit 994a15f

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[OMG-1161] Update BDD tests for Teams API (#3795)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent e96ef4a commit 994a15f

File tree

5 files changed

+506
-5
lines changed

5 files changed

+506
-5
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2026-03-25T10:51:13.320Z"
Lines changed: 327 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,327 @@
1+
{
2+
"log": {
3+
"_recordingName": "Teams/Remove a user from a team returns \"No Content\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "06adab815152105a98eb24da866c8255",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 115,
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": 572,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"handle\":\"test-handle-789e569afaa52bde\",\"name\":\"test-name-789e569afaa52bde\"},\"type\":\"team\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/team"
39+
},
40+
"response": {
41+
"bodySize": 660,
42+
"content": {
43+
"mimeType": "application/vnd.api+json",
44+
"size": 660,
45+
"text": "{\"data\":{\"id\":\"1d059472-0eff-4857-a6c8-5e5041448b54\",\"type\":\"team\",\"attributes\":{\"avatar\":null,\"banner\":5,\"created_at\":\"2026-03-25T10:51:13.938804+00:00\",\"description\":null,\"handle\":\"test-handle-789e569afaa52bde\",\"hidden_modules\":null,\"is_managed\":false,\"link_count\":0,\"modified_at\":\"2026-03-25T10:51:13.938804+00:00\",\"name\":\"test-name-789e569afaa52bde\",\"summary\":null,\"user_count\":0,\"visible_modules\":null},\"relationships\":{\"team_links\":{\"data\":[],\"links\":{\"related\":\"/api/v2/team/1d059472-0eff-4857-a6c8-5e5041448b54/links\"}},\"user_team_permissions\":{\"data\":null,\"links\":{\"related\":\"/api/v2/team/1d059472-0eff-4857-a6c8-5e5041448b54/permission-settings\"}}}}}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/vnd.api+json"
52+
}
53+
],
54+
"headersSize": 662,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 201,
58+
"statusText": "Created"
59+
},
60+
"startedDateTime": "2026-03-25T10:51:13.323Z",
61+
"time": 517
62+
},
63+
{
64+
"_id": "3dc77df119011be1eb29329a067fc083",
65+
"_order": 0,
66+
"cache": {},
67+
"request": {
68+
"bodySize": 155,
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": 573,
83+
"httpVersion": "HTTP/1.1",
84+
"method": "POST",
85+
"postData": {
86+
"mimeType": "application/json",
87+
"params": [],
88+
"text": "{\"data\":{\"attributes\":{\"email\":\"Test-Remove_a_user_from_a_team_returns_No_Content_response-1774435873@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}"
89+
},
90+
"queryString": [],
91+
"url": "https://api.datadoghq.com/api/v2/users"
92+
},
93+
"response": {
94+
"bodySize": 774,
95+
"content": {
96+
"mimeType": "application/json",
97+
"size": 774,
98+
"text": "{\"data\": {\"type\": \"users\", \"id\": \"66e25b0b-3f3b-427e-b162-e779f4535abb\", \"attributes\": {\"name\": null, \"handle\": \"test-remove_a_user_from_a_team_returns_no_content_response-1774435873@datadoghq.com\", \"created_at\": \"2026-03-25T10:51:14.481612+00:00\", \"modified_at\": \"2026-03-25T10:51:14.481612+00:00\", \"email\": \"test-remove_a_user_from_a_team_returns_no_content_response-1774435873@datadoghq.com\", \"icon\": \"https://secure.gravatar.com/avatar/be9f1c5abecde28b4c01cc8aa0680377?s=48&d=retro\", \"title\": \"user title\", \"verified\": false, \"service_account\": false, \"disabled\": false, \"allowed_login_methods\": [], \"status\": \"Pending\", \"last_login_time\": null}, \"relationships\": {\"roles\": {\"data\": []}, \"org\": {\"data\": {\"type\": \"orgs\", \"id\": \"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}"
99+
},
100+
"cookies": [],
101+
"headers": [
102+
{
103+
"name": "content-type",
104+
"value": "application/json"
105+
}
106+
],
107+
"headersSize": 681,
108+
"httpVersion": "HTTP/1.1",
109+
"redirectURL": "",
110+
"status": 201,
111+
"statusText": "Created"
112+
},
113+
"startedDateTime": "2026-03-25T10:51:13.861Z",
114+
"time": 521
115+
},
116+
{
117+
"_id": "ad5388a00a4853638709c59f5cbfee62",
118+
"_order": 0,
119+
"cache": {},
120+
"request": {
121+
"bodySize": 161,
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": 631,
136+
"httpVersion": "HTTP/1.1",
137+
"method": "POST",
138+
"postData": {
139+
"mimeType": "application/json",
140+
"params": [],
141+
"text": "{\"data\":{\"attributes\":{\"role\":\"admin\"},\"relationships\":{\"user\":{\"data\":{\"id\":\"66e25b0b-3f3b-427e-b162-e779f4535abb\",\"type\":\"users\"}}},\"type\":\"team_memberships\"}}"
142+
},
143+
"queryString": [],
144+
"url": "https://api.datadoghq.com/api/v2/team/1d059472-0eff-4857-a6c8-5e5041448b54/memberships"
145+
},
146+
"response": {
147+
"bodySize": 755,
148+
"content": {
149+
"mimeType": "application/vnd.api+json",
150+
"size": 755,
151+
"text": "{\"data\":{\"id\":\"TeamMembership-1d059472-0eff-4857-a6c8-5e5041448b54-66092046\",\"type\":\"team_memberships\",\"attributes\":{\"provisioned_by\":null,\"provisioned_by_id\":\"a1d5ff5a-c6dd-11f0-9cb6-06640ca27ad4\",\"role\":\"admin\"},\"relationships\":{\"user\":{\"data\":{\"id\":\"66e25b0b-3f3b-427e-b162-e779f4535abb\",\"type\":\"users\"}}}},\"included\":[{\"id\":\"66e25b0b-3f3b-427e-b162-e779f4535abb\",\"type\":\"users\",\"attributes\":{\"disabled\":false,\"email\":\"test-remove_a_user_from_a_team_returns_no_content_response-1774435873@datadoghq.com\",\"handle\":\"test-remove_a_user_from_a_team_returns_no_content_response-1774435873@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/be9f1c5abecde28b4c01cc8aa0680377?d=retro\\u0026s=48\",\"name\":null,\"service_account\":false,\"status\":\"Pending\"}}]}"
152+
},
153+
"cookies": [],
154+
"headers": [
155+
{
156+
"name": "content-type",
157+
"value": "application/vnd.api+json"
158+
}
159+
],
160+
"headersSize": 662,
161+
"httpVersion": "HTTP/1.1",
162+
"redirectURL": "",
163+
"status": 200,
164+
"statusText": "OK"
165+
},
166+
"startedDateTime": "2026-03-25T10:51:14.391Z",
167+
"time": 214
168+
},
169+
{
170+
"_id": "3aeec0bdeac4015d33e53eade6d0f1cf",
171+
"_order": 0,
172+
"cache": {},
173+
"request": {
174+
"bodySize": 0,
175+
"cookies": [],
176+
"headers": [
177+
{
178+
"_fromType": "array",
179+
"name": "accept",
180+
"value": "*/*"
181+
}
182+
],
183+
"headersSize": 604,
184+
"httpVersion": "HTTP/1.1",
185+
"method": "DELETE",
186+
"queryString": [],
187+
"url": "https://api.datadoghq.com/api/v2/team/1d059472-0eff-4857-a6c8-5e5041448b54/memberships/66e25b0b-3f3b-427e-b162-e779f4535abb"
188+
},
189+
"response": {
190+
"bodySize": 0,
191+
"content": {
192+
"mimeType": "text/plain",
193+
"size": 0
194+
},
195+
"cookies": [],
196+
"headers": [],
197+
"headersSize": 632,
198+
"httpVersion": "HTTP/1.1",
199+
"redirectURL": "",
200+
"status": 204,
201+
"statusText": "No Content"
202+
},
203+
"startedDateTime": "2026-03-25T10:51:14.614Z",
204+
"time": 513
205+
},
206+
{
207+
"_id": "3aeec0bdeac4015d33e53eade6d0f1cf",
208+
"_order": 1,
209+
"cache": {},
210+
"request": {
211+
"bodySize": 0,
212+
"cookies": [],
213+
"headers": [
214+
{
215+
"_fromType": "array",
216+
"name": "accept",
217+
"value": "*/*"
218+
}
219+
],
220+
"headersSize": 604,
221+
"httpVersion": "HTTP/1.1",
222+
"method": "DELETE",
223+
"queryString": [],
224+
"url": "https://api.datadoghq.com/api/v2/team/1d059472-0eff-4857-a6c8-5e5041448b54/memberships/66e25b0b-3f3b-427e-b162-e779f4535abb"
225+
},
226+
"response": {
227+
"bodySize": 127,
228+
"content": {
229+
"mimeType": "application/json",
230+
"size": 127,
231+
"text": "{\"errors\":[\"User 66e25b0b-3f3b-427e-b162-e779f4535abb is not a member of Team 1d059472-0eff-4857-a6c8-5e5041448b54 not found\"]}"
232+
},
233+
"cookies": [],
234+
"headers": [
235+
{
236+
"name": "content-type",
237+
"value": "application/json"
238+
}
239+
],
240+
"headersSize": 685,
241+
"httpVersion": "HTTP/1.1",
242+
"redirectURL": "",
243+
"status": 404,
244+
"statusText": "Not Found"
245+
},
246+
"startedDateTime": "2026-03-25T10:51:15.139Z",
247+
"time": 542
248+
},
249+
{
250+
"_id": "d4b0b03d26439397d8c09dfe0a6b9934",
251+
"_order": 0,
252+
"cache": {},
253+
"request": {
254+
"bodySize": 0,
255+
"cookies": [],
256+
"headers": [
257+
{
258+
"_fromType": "array",
259+
"name": "accept",
260+
"value": "*/*"
261+
}
262+
],
263+
"headersSize": 547,
264+
"httpVersion": "HTTP/1.1",
265+
"method": "DELETE",
266+
"queryString": [],
267+
"url": "https://api.datadoghq.com/api/v2/users/66e25b0b-3f3b-427e-b162-e779f4535abb"
268+
},
269+
"response": {
270+
"bodySize": 0,
271+
"content": {
272+
"mimeType": "text/plain",
273+
"size": 0
274+
},
275+
"cookies": [],
276+
"headers": [],
277+
"headersSize": 495,
278+
"httpVersion": "HTTP/1.1",
279+
"redirectURL": "",
280+
"status": 204,
281+
"statusText": "No Content"
282+
},
283+
"startedDateTime": "2026-03-25T10:51:15.686Z",
284+
"time": 745
285+
},
286+
{
287+
"_id": "6dd9b9f9509141eb17468737f2857a45",
288+
"_order": 0,
289+
"cache": {},
290+
"request": {
291+
"bodySize": 0,
292+
"cookies": [],
293+
"headers": [
294+
{
295+
"_fromType": "array",
296+
"name": "accept",
297+
"value": "*/*"
298+
}
299+
],
300+
"headersSize": 545,
301+
"httpVersion": "HTTP/1.1",
302+
"method": "DELETE",
303+
"queryString": [],
304+
"url": "https://api.datadoghq.com/api/v2/team/1d059472-0eff-4857-a6c8-5e5041448b54"
305+
},
306+
"response": {
307+
"bodySize": 0,
308+
"content": {
309+
"mimeType": "text/plain",
310+
"size": 0
311+
},
312+
"cookies": [],
313+
"headers": [],
314+
"headersSize": 632,
315+
"httpVersion": "HTTP/1.1",
316+
"redirectURL": "",
317+
"status": 204,
318+
"statusText": "No Content"
319+
},
320+
"startedDateTime": "2026-03-25T10:51:16.436Z",
321+
"time": 580
322+
}
323+
],
324+
"pages": [],
325+
"version": "1.2"
326+
}
327+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2026-03-25T11:58:33.497Z"

0 commit comments

Comments
 (0)