You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/v2/teams.feature
+54Lines changed: 54 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,20 @@ Feature: Teams
43
43
When the request is sent
44
44
Then the response status is 200 Represents a user's association to a team
45
45
46
+
@generated@skip@team:DataDog/aaa-omg
47
+
Scenario: Create a team hierarchy link returns "CREATED" response
48
+
Given new "AddTeamHierarchyLink" request
49
+
And body with value {"data": {"relationships": {"parent_team": {"data": {"id": "692e8073-12c4-4c71-8408-5090bd44c9c8", "type": "team"}}, "sub_team": {"data": {"id": "692e8073-12c4-4c71-8408-5090bd44c9c8", "type": "team"}}}, "type": "team_hierarchy_links"}}
50
+
When the request is sent
51
+
Then the response status is 201 CREATED
52
+
53
+
@generated@skip@team:DataDog/aaa-omg
54
+
Scenario: Create a team hierarchy link returns "Conflict" response
55
+
Given new "AddTeamHierarchyLink" request
56
+
And body with value {"data": {"relationships": {"parent_team": {"data": {"id": "692e8073-12c4-4c71-8408-5090bd44c9c8", "type": "team"}}, "sub_team": {"data": {"id": "692e8073-12c4-4c71-8408-5090bd44c9c8", "type": "team"}}}, "type": "team_hierarchy_links"}}
57
+
When the request is sent
58
+
Then the response status is 409 Conflict
59
+
46
60
@team:DataDog/aaa-omg
47
61
Scenario: Create a team link returns "API error response." response
48
62
Given new "CreateTeamLink" request
@@ -96,6 +110,20 @@ Feature: Teams
96
110
And the response "data.attributes.visible_modules" is equal to ["m1","m2"]
97
111
And the response "data.attributes.hidden_modules" is equal to ["m3"]
98
112
113
+
@generated@skip@team:DataDog/aaa-omg
114
+
Scenario: Get a team hierarchy link returns "API error response." response
115
+
Given new "GetTeamHierarchyLink" request
116
+
And request contains "link_id" parameter from "REPLACE.ME"
117
+
When the request is sent
118
+
Then the response status is 404 API error response.
119
+
120
+
@generated@skip@team:DataDog/aaa-omg
121
+
Scenario: Get a team hierarchy link returns "OK" response
122
+
Given new "GetTeamHierarchyLink" request
123
+
And request contains "link_id" parameter from "REPLACE.ME"
124
+
When the request is sent
125
+
Then the response status is 200 OK
126
+
99
127
@team:DataDog/aaa-omg
100
128
Scenario: Get a team link returns "API error response." response
101
129
Given new "GetTeamLink" request
@@ -211,6 +239,18 @@ Feature: Teams
211
239
When the request is sent
212
240
Then the response status is 200 OK
213
241
242
+
@generated@skip@team:DataDog/aaa-omg
243
+
Scenario: Get team hierarchy links returns "OK" response
0 commit comments