@@ -115,6 +115,60 @@ Feature: Teams
115115 And the response "data.attributes.visible_modules" is equal to ["m1" ,"m2" ]
116116 And the response "data.attributes.hidden_modules" is equal to ["m3" ]
117117
118+ @skip @team:DataDog/aaa-omg
119+ Scenario : Create team connections returns "Bad Request" response
120+ Given operation "CreateTeamConnections" enabled
121+ And new "CreateTeamConnections" request
122+ 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" }]}
123+ When the request is sent
124+ Then the response status is 400 Bad Request
125+
126+ @generated @skip @team:DataDog/aaa-omg
127+ Scenario : Create team connections returns "Conflict" response
128+ Given operation "CreateTeamConnections" enabled
129+ And new "CreateTeamConnections" request
130+ 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" }]}
131+ When the request is sent
132+ Then the response status is 409 Conflict
133+
134+ @skip @team:DataDog/aaa-omg
135+ Scenario : Create team connections returns "Created" response
136+ Given operation "CreateTeamConnections" enabled
137+ And new "CreateTeamConnections" request
138+ And there is a valid "dd_team" in the system
139+ 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" }}}}]}
140+ When the request is sent
141+ Then the response status is 201 Created
142+ And the response "data.data[0].attributes.source" is equal to "github"
143+ And the response "data.data[0].attributes.managed_by" is equal to "datadog"
144+ And the response "data.data[0].relationships.team.data.id" is equal to "{{ dd_team.data.id }}"
145+ And the response "data.data[0].relationships.connected_team.data.id" is equal to "@MyGitHubAccount/my-team-name"
146+ And the response "data.data[0].type" is equal to "team_connection"
147+
148+ @skip @team:DataDog/aaa-omg
149+ Scenario : Delete team connections returns "Bad Request" response
150+ Given operation "DeleteTeamConnections" enabled
151+ And new "DeleteTeamConnections" request
152+ And body with value {"data" : [{"type" : "team_connection" }]}
153+ When the request is sent
154+ Then the response status is 400 Bad Request
155+
156+ @generated @skip @team:DataDog/aaa-omg
157+ Scenario : Delete team connections returns "No Content" response
158+ Given operation "DeleteTeamConnections" enabled
159+ And new "DeleteTeamConnections" request
160+ And body with value {"data" : [{"id" : "12345678-1234-5678-9abc-123456789012" , "type" : "team_connection" }]}
161+ When the request is sent
162+ Then the response status is 204 No Content
163+
164+ @generated @skip @team:DataDog/aaa-omg
165+ Scenario : Delete team connections returns "Not Found" response
166+ Given operation "DeleteTeamConnections" enabled
167+ And new "DeleteTeamConnections" request
168+ And body with value {"data" : [{"id" : "12345678-1234-5678-9abc-123456789012" , "type" : "team_connection" }]}
169+ When the request is sent
170+ Then the response status is 404 Not Found
171+
118172 @team:DataDog/aaa-omg
119173 Scenario : Get a team hierarchy link returns "API error response." response
120174 Given new "GetTeamHierarchyLink" request
@@ -341,6 +395,36 @@ Feature: Teams
341395 When the request is sent
342396 Then the response status is 200 OK
343397
398+ @generated @skip @team:DataDog/aaa-omg
399+ Scenario : List team connections returns "Bad Request" response
400+ Given operation "ListTeamConnections" enabled
401+ And new "ListTeamConnections" request
402+ When the request is sent
403+ Then the response status is 400 Bad Request
404+
405+ @generated @skip @team:DataDog/aaa-omg
406+ Scenario : List team connections returns "OK" response
407+ Given operation "ListTeamConnections" enabled
408+ And new "ListTeamConnections" request
409+ When the request is sent
410+ Then the response status is 200 OK
411+
412+ @generated @skip @team:DataDog/aaa-omg @with-pagination
413+ Scenario : List team connections returns "OK" response with pagination
414+ Given operation "ListTeamConnections" enabled
415+ And new "ListTeamConnections" request
416+ When the request with pagination is sent
417+ Then the response status is 200 OK
418+
419+ @skip @team:DataDog/aaa-omg
420+ Scenario : List team connections with filters returns "OK" response
421+ Given operation "ListTeamConnections" enabled
422+ And new "ListTeamConnections" request
423+ And request contains "filter[sources]" parameter with value ["github" ]
424+ And request contains "page[size]" parameter with value 10
425+ When the request is sent
426+ Then the response status is 200 OK
427+
344428 @generated @skip @team:DataDog/aaa-omg
345429 Scenario : Remove a member team returns "API error response." response
346430 Given operation "RemoveMemberTeam" enabled
0 commit comments