@@ -96,6 +96,60 @@ Feature: Teams
9696 And the response "data.attributes.visible_modules" is equal to ["m1" ,"m2" ]
9797 And the response "data.attributes.hidden_modules" is equal to ["m3" ]
9898
99+ @skip @team:DataDog/aaa-omg
100+ Scenario : Create team connections returns "Bad Request" response
101+ Given operation "CreateTeamConnections" enabled
102+ And new "CreateTeamConnections" request
103+ And body with value {"data" : [{"attributes" : {"source" : "github" }, "relationships" : {"connected_team" : {"data" : {"id" : "@MyGitHubAccount/my-team-name" , "type" : "github_team" }}, "team" : {"data" : {"type" : "team" }}}, "type" : "team_connection" }]}
104+ When the request is sent
105+ Then the response status is 400 Bad Request
106+
107+ @generated @skip @team:DataDog/aaa-omg
108+ Scenario : Create team connections returns "Conflict" response
109+ Given operation "CreateTeamConnections" enabled
110+ And new "CreateTeamConnections" request
111+ And body with value {"data" : [{"attributes" : {"managed_by" : "github_sync" , "source" : "github" }, "relationships" : {"connected_team" : {"data" : {"id" : "@GitHubOrg/team-handle" , "type" : "github_team" }}, "team" : {"data" : {"id" : "87654321-4321-8765-dcba-210987654321" , "type" : "team" }}}, "type" : "team_connection" }]}
112+ When the request is sent
113+ Then the response status is 409 Conflict
114+
115+ @skip @team:DataDog/aaa-omg
116+ Scenario : Create team connections returns "Created" response
117+ Given operation "CreateTeamConnections" enabled
118+ And new "CreateTeamConnections" request
119+ And there is a valid "dd_team" in the system
120+ And body with value {"data" : [{"type" : "team_connection" , "attributes" : {"source" : "github" , "managed_by" : "datadog" }, "relationships" : {"team" : {"data" : {"id" : "{{ dd_team.data.id }}" , "type" : "team" }}, "connected_team" : {"data" : {"id" : "@MyGitHubAccount/my-team-name" , "type" : "github_team" }}}}]}
121+ When the request is sent
122+ Then the response status is 201 Created
123+ And the response "data.data[0].attributes.source" is equal to "github"
124+ And the response "data.data[0].attributes.managed_by" is equal to "datadog"
125+ And the response "data.data[0].relationships.team.data.id" is equal to "{{ dd_team.data.id }}"
126+ And the response "data.data[0].relationships.connected_team.data.id" is equal to "@MyGitHubAccount/my-team-name"
127+ And the response "data.data[0].type" is equal to "team_connection"
128+
129+ @skip @team:DataDog/aaa-omg
130+ Scenario : Delete team connections returns "Bad Request" response
131+ Given operation "DeleteTeamConnections" enabled
132+ And new "DeleteTeamConnections" request
133+ And body with value {"data" : [{"type" : "team_connection" }]}
134+ When the request is sent
135+ Then the response status is 400 Bad Request
136+
137+ @generated @skip @team:DataDog/aaa-omg
138+ Scenario : Delete team connections returns "No Content" response
139+ Given operation "DeleteTeamConnections" enabled
140+ And new "DeleteTeamConnections" request
141+ And body with value {"data" : [{"id" : "12345678-1234-5678-9abc-123456789012" , "type" : "team_connection" }]}
142+ When the request is sent
143+ Then the response status is 204 No Content
144+
145+ @generated @skip @team:DataDog/aaa-omg
146+ Scenario : Delete team connections returns "Not Found" response
147+ Given operation "DeleteTeamConnections" enabled
148+ And new "DeleteTeamConnections" request
149+ And body with value {"data" : [{"id" : "12345678-1234-5678-9abc-123456789012" , "type" : "team_connection" }]}
150+ When the request is sent
151+ Then the response status is 404 Not Found
152+
99153 @team:DataDog/aaa-omg
100154 Scenario : Get a team link returns "API error response." response
101155 Given new "GetTeamLink" request
@@ -275,6 +329,36 @@ Feature: Teams
275329 When the request is sent
276330 Then the response status is 200 OK
277331
332+ @generated @skip @team:DataDog/aaa-omg
333+ Scenario : List team connections returns "Bad Request" response
334+ Given operation "ListTeamConnections" enabled
335+ And new "ListTeamConnections" request
336+ When the request is sent
337+ Then the response status is 400 Bad Request
338+
339+ @generated @skip @team:DataDog/aaa-omg
340+ Scenario : List team connections returns "OK" response
341+ Given operation "ListTeamConnections" enabled
342+ And new "ListTeamConnections" request
343+ When the request is sent
344+ Then the response status is 200 OK
345+
346+ @generated @skip @team:DataDog/aaa-omg @with-pagination
347+ Scenario : List team connections returns "OK" response with pagination
348+ Given operation "ListTeamConnections" enabled
349+ And new "ListTeamConnections" request
350+ When the request with pagination is sent
351+ Then the response status is 200 OK
352+
353+ @skip @team:DataDog/aaa-omg
354+ Scenario : List team connections with filters returns "OK" response
355+ Given operation "ListTeamConnections" enabled
356+ And new "ListTeamConnections" request
357+ And request contains "filter[sources]" parameter with value ["github" ]
358+ And request contains "page[size]" parameter with value 10
359+ When the request is sent
360+ Then the response status is 200 OK
361+
278362 @generated @skip @team:DataDog/aaa-omg
279363 Scenario : Remove a member team returns "API error response." response
280364 Given operation "RemoveMemberTeam" enabled
0 commit comments