Skip to content

Commit 955141d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-specHantingZhang2
authored
Adds given condition in field_team test (#1481)
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> Co-authored-by: HantingZhang2 <[email protected]>
1 parent 7505af3 commit 955141d

File tree

4 files changed

+101
-10
lines changed

4 files changed

+101
-10
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": "2024-01-09 20:22:57.679859",
8-
"spec_repo_commit": "ba6497ef"
7+
"regenerated": "2024-01-10 16:14:07.606876",
8+
"spec_repo_commit": "f84630e6"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-01-09 20:22:57.694347",
13-
"spec_repo_commit": "ba6497ef"
12+
"regenerated": "2024-01-10 16:14:07.627893",
13+
"spec_repo_commit": "f84630e6"
1414
}
1515
}
1616
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-10-11T17:40:11.903Z"
1+
"2024-01-10T16:09:28.980Z"

cassettes/v2/Teams_3116892301/Get-all-teams-with-fields_team-parameter-returns-OK-response_3146995176/recording.har

Lines changed: 95 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,59 @@
77
"version": "6.0.5"
88
},
99
"entries": [
10+
{
11+
"_id": "7f064970c780fad9467947f46becb6b1",
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": 549,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"handle\":\"test-handle-c164c08030364bd8\",\"name\":\"test-name-c164c08030364bd8\"},\"type\":\"team\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/team"
39+
},
40+
"response": {
41+
"bodySize": 616,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 616,
45+
"text": "{\"data\":{\"type\":\"team\",\"id\":\"bfc08ce5-4a3c-4336-8544-0a366a1656fb\",\"attributes\":{\"name\":\"test-name-c164c08030364bd8\",\"handle\":\"test-handle-c164c08030364bd8\",\"summary\":null,\"description\":null,\"avatar\":null,\"banner\":1,\"visible_modules\":[],\"hidden_modules\":[],\"created_at\":\"2024-01-10T16:09:16.773654+00:00\",\"modified_at\":\"2024-01-10T16:09:16.773660+00:00\",\"user_count\":0,\"link_count\":0},\"relationships\":{\"team_links\":{\"links\":{\"related\":\"/api/v2/team/bfc08ce5-4a3c-4336-8544-0a366a1656fb/links\"}},\"user_team_permissions\":{\"links\":{\"related\":\"/api/v2/team/bfc08ce5-4a3c-4336-8544-0a366a1656fb/permission-settings\"}}}}}\n"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 654,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 201,
58+
"statusText": "Created"
59+
},
60+
"startedDateTime": "2024-01-10T16:09:29.014Z",
61+
"time": 753
62+
},
1063
{
1164
"_id": "e8920722757839c9ea01a896837e687d",
1265
"_order": 0,
@@ -35,11 +88,11 @@
3588
"url": "https://api.datadoghq.com/api/v2/team?fields%5Bteam%5D=id%2Cname%2Chandle"
3689
},
3790
"response": {
38-
"bodySize": 938,
91+
"bodySize": 795,
3992
"content": {
4093
"mimeType": "application/json",
41-
"size": 938,
42-
"text": "{\"data\":[{\"type\":\"team\",\"id\":\"ac73040e-c8d4-11ed-b2ea-da7ad0900002\",\"attributes\":{\"name\":\"Example Team\",\"handle\":\"api-spec-test-team\"}},{\"type\":\"team\",\"id\":\"cc338b02-405b-11ee-835e-da7ad0900002\",\"attributes\":{\"name\":\"test-name-12938712938\",\"handle\":\"test-handle-12938712938\"}},{\"type\":\"team\",\"id\":\"ecc8affc-27d6-11ee-b33c-da7ad0900002\",\"attributes\":{\"name\":\"tf-testaccteamlinkbasic-local-1689951453\",\"handle\":\"tf-testaccteamlinkbasic-local-1689951453\"}}],\"meta\":{\"pagination\":{\"offset\":0,\"first_offset\":0,\"prev_offset\":0,\"next_offset\":100,\"last_offset\":0,\"limit\":100,\"type\":\"offset_limit\",\"total\":3}},\"links\":{\"self\":\"https://api.datadoghq.com/api/v2/team?fields%5Bteam%5D=id,name,handle\",\"last\":null,\"next\":\"https://api.datadoghq.com/api/v2/team?fields%5Bteam%5D=id,name,handle&page[offset]=100&page[limit]=100\",\"prev\":null,\"first\":\"https://api.datadoghq.com/api/v2/team?fields%5Bteam%5D=id,name,handle&page[offset]=0&page[limit]=100\"}}\n"
94+
"size": 795,
95+
"text": "{\"data\":[{\"type\":\"team\",\"id\":\"2e06bf2c-193b-41d4-b3c2-afccc080458f\",\"attributes\":{\"name\":\"test-name-0d5eae310f4bffff\",\"handle\":\"test-handle-0d5eae310f4bffff\"}},{\"type\":\"team\",\"id\":\"bfc08ce5-4a3c-4336-8544-0a366a1656fb\",\"attributes\":{\"name\":\"test-name-c164c08030364bd8\",\"handle\":\"test-handle-c164c08030364bd8\"}}],\"meta\":{\"pagination\":{\"offset\":0,\"first_offset\":0,\"prev_offset\":0,\"next_offset\":100,\"last_offset\":0,\"limit\":100,\"type\":\"offset_limit\",\"total\":2}},\"links\":{\"self\":\"https://api.datadoghq.com/api/v2/team?fields%5Bteam%5D=id,name,handle\",\"last\":null,\"next\":\"https://api.datadoghq.com/api/v2/team?fields%5Bteam%5D=id,name,handle&page[offset]=100&page[limit]=100\",\"prev\":null,\"first\":\"https://api.datadoghq.com/api/v2/team?fields%5Bteam%5D=id,name,handle&page[offset]=0&page[limit]=100\"}}\n"
4396
},
4497
"cookies": [],
4598
"headers": [
@@ -54,8 +107,45 @@
54107
"status": 200,
55108
"statusText": "OK"
56109
},
57-
"startedDateTime": "2023-10-11T17:40:11.911Z",
58-
"time": 202
110+
"startedDateTime": "2024-01-10T16:09:29.787Z",
111+
"time": 382
112+
},
113+
{
114+
"_id": "62120b2cf70538534b6ea924d5d6de31",
115+
"_order": 0,
116+
"cache": {},
117+
"request": {
118+
"bodySize": 0,
119+
"cookies": [],
120+
"headers": [
121+
{
122+
"_fromType": "array",
123+
"name": "accept",
124+
"value": "*/*"
125+
}
126+
],
127+
"headersSize": 522,
128+
"httpVersion": "HTTP/1.1",
129+
"method": "DELETE",
130+
"queryString": [],
131+
"url": "https://api.datadoghq.com/api/v2/team/bfc08ce5-4a3c-4336-8544-0a366a1656fb"
132+
},
133+
"response": {
134+
"bodySize": 0,
135+
"content": {
136+
"mimeType": "text/plain",
137+
"size": 0
138+
},
139+
"cookies": [],
140+
"headers": [],
141+
"headersSize": 601,
142+
"httpVersion": "HTTP/1.1",
143+
"redirectURL": "",
144+
"status": 204,
145+
"statusText": "No Content"
146+
},
147+
"startedDateTime": "2024-01-10T16:09:30.190Z",
148+
"time": 496
59149
}
60150
],
61151
"pages": [],

features/v2/teams.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ Feature: Teams
129129
@team:DataDog/core-app
130130
Scenario: Get all teams with fields_team parameter returns "OK" response
131131
Given new "ListTeams" request
132+
And there is a valid "dd_team" in the system
132133
And request contains "fields[team]" parameter with value ["id", "name", "handle"]
133134
When the request is sent
134135
Then the response status is 200 OK

0 commit comments

Comments
 (0)