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: cassettes/features/v2/teams/Add-a-user-to-a-team-returns-Represents-a-user-s-association-to-a-team-response.yml
Copy file name to clipboardExpand all lines: features/v2/teams.feature
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -27,21 +27,28 @@ Feature: Teams
27
27
When the request is sent
28
28
Then the response status is 204 Added
29
29
30
-
@generated@skip@team:DataDog/aaa-omg
30
+
@team:DataDog/aaa-omg
31
31
Scenario: Add a user to a team returns "API error response." response
32
32
Given new "CreateTeamMembership" request
33
-
And request contains "team_id" parameter from "REPLACE.ME"
34
-
And body with value {"data": {"attributes": {"role": "admin"}, "relationships": {"team": {"data": {"id": "d7e15d9d-d346-43da-81d8-3d9e71d9a5e9", "type": "team"}}, "user": {"data": {"id": "b8626d7e-cedd-11eb-abf5-da7ad0900001", "type": "users"}}}, "type": "team_memberships"}}
33
+
And there is a valid "dd_team" in the system
34
+
And there is a valid "user" in the system
35
+
And there is a valid "team_membership" in the system
36
+
And request contains "team_id" parameter from "dd_team.data.id"
37
+
And body with value {"data": {"attributes": {"role": "admin"}, "relationships": {"user": {"data": {"id": "{{user.data.id}}", "type": "users"}}}, "type": "team_memberships"}}
35
38
When the request is sent
36
39
Then the response status is 409 API error response.
37
40
38
-
@generated@skip@team:DataDog/aaa-omg
41
+
@team:DataDog/aaa-omg
39
42
Scenario: Add a user to a team returns "Represents a user's association to a team" response
40
43
Given new "CreateTeamMembership" request
41
-
And request contains "team_id" parameter from "REPLACE.ME"
42
-
And body with value {"data": {"attributes": {"role": "admin"}, "relationships": {"team": {"data": {"id": "d7e15d9d-d346-43da-81d8-3d9e71d9a5e9", "type": "team"}}, "user": {"data": {"id": "b8626d7e-cedd-11eb-abf5-da7ad0900001", "type": "users"}}}, "type": "team_memberships"}}
44
+
And there is a valid "dd_team" in the system
45
+
And there is a valid "user" in the system
46
+
And request contains "team_id" parameter from "dd_team.data.id"
47
+
And body with value {"data": {"attributes": {"role": "admin"}, "relationships": {"user": {"data": {"id": "{{user.data.id}}", "type": "users"}}}, "type": "team_memberships"}}
43
48
When the request is sent
44
49
Then the response status is 200 Represents a user's association to a team
50
+
And the response "data.attributes.role" is equal to "admin"
51
+
And the response "data.relationships.user.data.id" is equal to "{{ user.data.id }}"
45
52
46
53
@team:DataDog/aaa-omg
47
54
Scenario: Create a team hierarchy link returns "Conflict" response
0 commit comments