Skip to content

Commit 8371e9d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-specHantingZhang2
authored
Adds given condition in field_team test (#1832)
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 c5a4db4 commit 8371e9d

File tree

4 files changed

+41
-7
lines changed

4 files changed

+41
-7
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.358208",
8-
"spec_repo_commit": "ba6497ef"
7+
"regenerated": "2024-01-10 16:13:59.439362",
8+
"spec_repo_commit": "f84630e6"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-01-09 20:22:57.374955",
13-
"spec_repo_commit": "ba6497ef"
12+
"regenerated": "2024-01-10 16:13:59.452938",
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

tests/v2/cassettes/test_scenarios/test_get_all_teams_with_fields_team_parameter_returns_ok_response.yaml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
interactions:
2+
- request:
3+
body: '{"data":{"attributes":{"handle":"test-handle-c164c08030364bd8","name":"test-name-c164c08030364bd8"},"type":"team"}}'
4+
headers:
5+
accept:
6+
- application/json
7+
content-type:
8+
- application/json
9+
method: POST
10+
uri: https://api.datadoghq.com/api/v2/team
11+
response:
12+
body:
13+
string: '{"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"}}}}}
14+
15+
'
16+
headers:
17+
content-type:
18+
- application/json
19+
status:
20+
code: 201
21+
message: Created
222
- request:
323
body: null
424
headers:
@@ -8,8 +28,7 @@ interactions:
828
uri: https://api.datadoghq.com/api/v2/team?fields%5Bteam%5D=id%2Cname%2Chandle
929
response:
1030
body:
11-
string: '{"data":[{"type":"team","id":"ac73040e-c8d4-11ed-b2ea-da7ad0900002","attributes":{"name":"Example
12-
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"}}
31+
string: '{"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"}}
1332
1433
'
1534
headers:
@@ -18,4 +37,18 @@ interactions:
1837
status:
1938
code: 200
2039
message: OK
40+
- request:
41+
body: null
42+
headers:
43+
accept:
44+
- '*/*'
45+
method: DELETE
46+
uri: https://api.datadoghq.com/api/v2/team/bfc08ce5-4a3c-4336-8544-0a366a1656fb
47+
response:
48+
body:
49+
string: ''
50+
headers: {}
51+
status:
52+
code: 204
53+
message: No Content
2154
version: 1

tests/v2/features/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)