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: src/test/resources/com/datadog/api/client/v2/api/teams.feature
+20-5Lines changed: 20 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -573,12 +573,14 @@ Feature: Teams
573
573
When the request is sent
574
574
Then the response status is 404 API error response.
575
575
576
-
@skip@team:DataDog/aaa-omg
576
+
@team:DataDog/aaa-omg
577
577
Scenario: Remove a user from a team returns "No Content" response
578
578
Given new "DeleteTeamMembership" request
579
579
And there is a valid "dd_team" in the system
580
+
And there is a valid "user" in the system
581
+
And there is a valid "team_membership" in the system
580
582
And request contains "team_id" parameter from "dd_team.data.id"
581
-
And request contains "user_id" parameter from "REPLACE.ME"
583
+
And request contains "user_id" parameter from "user.data.id"
582
584
When the request is sent
583
585
Then the response status is 204 No Content
584
586
@@ -607,11 +609,13 @@ Feature: Teams
607
609
And the response "data.attributes.label" is equal to "New Label"
608
610
And the response "data.attributes.url" is equal to "https://example.com"
609
611
610
-
@generated@skip@team:DataDog/aaa-omg
612
+
@skip@team:DataDog/aaa-omg
611
613
Scenario: Update a team returns "API error response." response
612
614
Given new "UpdateTeam" request
613
-
And request contains "team_id" parameter from "REPLACE.ME"
614
-
And body with value {"data": {"attributes": {"avatar": "\ud83e\udd51", "banner": null, "handle": "example-team", "hidden_modules": [], "name": "Example Team", "visible_modules": []}, "relationships": {"team_links": {"data": [{"id": "f9bb8444-af7f-11ec-ac2c-da7ad0900001", "type": "team_links"}], "links": {"related": "/api/v2/team/c75a4a8e-20c7-11ee-a3a5-da7ad0900002/links"}}}, "type": "team"}}
615
+
And there is a valid "dd_team" in the system
616
+
And there is a valid "dd_team_2" in the system
617
+
And request contains "team_id" parameter from "dd_team.data.id"
618
+
And body with value {"data": {"attributes": {"handle": "{{dd_team_2.data.attributes.handle}}", "name": "{{dd_team.data.attributes.name}}"}, "type": "team"}}
615
619
When the request is sent
616
620
Then the response status is 409 API error response.
617
621
@@ -631,6 +635,17 @@ Feature: Teams
631
635
And the response "data.attributes.hidden_modules" is equal to ["m3"]
632
636
And the response "data.attributes.visible_modules" is equal to ["m1", "m2"]
633
637
638
+
@team:DataDog/aaa-omg
639
+
Scenario: Update a team with partial update returns "OK" response
640
+
Given new "UpdateTeam" request
641
+
And there is a valid "dd_team" in the system
642
+
And request contains "team_id" parameter from "dd_team.data.id"
643
+
And body with value {"data": {"attributes": {"handle": "{{dd_team.data.attributes.handle}}", "name": "{{dd_team.data.attributes.name}} updated"}, "type": "team"}}
644
+
When the request is sent
645
+
Then the response status is 200 OK
646
+
And the response "data.attributes.name" is equal to "{{dd_team.data.attributes.name}} updated"
647
+
And the response "data.attributes.handle" is equal to "{{dd_team.data.attributes.handle}}"
648
+
634
649
@team:DataDog/aaa-omg
635
650
Scenario: Update a user's membership attributes on a team returns "API error response." response
0 commit comments