Skip to content

Commit 513cf20

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 4602cff of spec repo
1 parent dfdbfb1 commit 513cf20

27 files changed

+1549
-145
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83879,7 +83879,7 @@ paths:
8387983879
- teams_read
8388083880
summary: Delete team connections
8388183881
tags:
83882-
- Team Connections
83882+
- Teams
8388383883
x-permission:
8388483884
operator: OR
8388583885
permissions:
@@ -83958,7 +83958,7 @@ paths:
8395883958
- teams_read
8395983959
summary: List team connections
8396083960
tags:
83961-
- Team Connections
83961+
- Teams
8396283962
x-pagination:
8396383963
limitParam: page[size]
8396483964
pageParam: page[number]
@@ -84002,7 +84002,7 @@ paths:
8400284002
- teams_read
8400384003
summary: Create team connections
8400484004
tags:
84005-
- Team Connections
84005+
- Teams
8400684006
x-permission:
8400784007
operator: OR
8400884008
permissions:
@@ -87323,9 +87323,6 @@ tags:
8732387323
use Datadog\u2019s API to\nmanage both test types programmatically.\n\nFor more
8732487324
information about Synthetics, see the [Synthetics overview](https://docs.datadoghq.com/synthetics/)."
8732587325
name: Synthetics
87326-
- description: View and manage relationships between Datadog teams and teams from
87327-
external sources, such as GitHub.
87328-
name: Team Connections
8732987326
- description: View and manage teams within Datadog. See the [Teams page](https://docs.datadoghq.com/account_management/teams/)
8733087327
for more information.
8733187328
name: Teams

features/v2/given.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@
12091209
"source": "data.data[0]",
12101210
"step": "there is a valid \"team_connection\" in the system",
12111211
"key": "team_connection",
1212-
"tag": "Team Connections",
1212+
"tag": "Teams",
12131213
"operationId": "CreateTeamConnections"
12141214
},
12151215
{

features/v2/team_connections.feature

Lines changed: 0 additions & 93 deletions
This file was deleted.

features/v2/teams.feature

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

features/v2/undo.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4494,19 +4494,19 @@
44944494
}
44954495
},
44964496
"DeleteTeamConnections": {
4497-
"tag": "Team Connections",
4497+
"tag": "Teams",
44984498
"undo": {
44994499
"type": "idempotent"
45004500
}
45014501
},
45024502
"ListTeamConnections": {
4503-
"tag": "Team Connections",
4503+
"tag": "Teams",
45044504
"undo": {
45054505
"type": "safe"
45064506
}
45074507
},
45084508
"CreateTeamConnections": {
4509-
"tag": "Team Connections",
4509+
"tag": "Teams",
45104510
"undo": {
45114511
"operationId": "DeleteTeamConnections",
45124512
"type": "unsafe"

packages/datadog-api-client/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,6 @@ apiInstance
439439
| Static Analysis | @datadog/datadog-api-client-static-analysis | [README.md](../../services/static-analysis/README.md) |
440440
| Synthetics | @datadog/datadog-api-client-synthetics | [README.md](../../services/synthetics/README.md) |
441441
| Tags | @datadog/datadog-api-client-tags | [README.md](../../services/tags/README.md) |
442-
| Team Connections | @datadog/datadog-api-client-team-connections | [README.md](../../services/team-connections/README.md) |
443442
| Teams | @datadog/datadog-api-client-teams | [README.md](../../services/teams/README.md) |
444443
| Test Optimization | @datadog/datadog-api-client-test-optimization | [README.md](../../services/test-optimization/README.md) |
445444
| Usage Metering | @datadog/datadog-api-client-usage-metering | [README.md](../../services/usage-metering/README.md) |

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -8957,6 +8957,47 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
89578957
},
89588958
operationResponseType: "{}",
89598959
},
8960+
"TeamsApi.V2.ListTeamConnections": {
8961+
pageSize: {
8962+
type: "number",
8963+
format: "int64",
8964+
},
8965+
pageNumber: {
8966+
type: "number",
8967+
format: "int64",
8968+
},
8969+
filterSources: {
8970+
type: "Array<string>",
8971+
format: "",
8972+
},
8973+
filterTeamIds: {
8974+
type: "Array<string>",
8975+
format: "",
8976+
},
8977+
filterConnectedTeamIds: {
8978+
type: "Array<string>",
8979+
format: "",
8980+
},
8981+
filterConnectionIds: {
8982+
type: "Array<string>",
8983+
format: "",
8984+
},
8985+
operationResponseType: "TeamConnectionsResponse",
8986+
},
8987+
"TeamsApi.V2.CreateTeamConnections": {
8988+
body: {
8989+
type: "TeamConnectionCreateRequest",
8990+
format: "",
8991+
},
8992+
operationResponseType: "TeamConnectionsResponse",
8993+
},
8994+
"TeamsApi.V2.DeleteTeamConnections": {
8995+
body: {
8996+
type: "TeamConnectionDeleteRequest",
8997+
format: "",
8998+
},
8999+
operationResponseType: "{}",
9000+
},
89609001
"TeamsApi.V2.GetTeamSync": {
89619002
filterSource: {
89629003
type: "TeamSyncAttributesSource",
@@ -9181,47 +9222,6 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
91819222
},
91829223
operationResponseType: "UserTeamsResponse",
91839224
},
9184-
"TeamConnectionsApi.V2.ListTeamConnections": {
9185-
pageSize: {
9186-
type: "number",
9187-
format: "int64",
9188-
},
9189-
pageNumber: {
9190-
type: "number",
9191-
format: "int64",
9192-
},
9193-
filterSources: {
9194-
type: "Array<string>",
9195-
format: "",
9196-
},
9197-
filterTeamIds: {
9198-
type: "Array<string>",
9199-
format: "",
9200-
},
9201-
filterConnectedTeamIds: {
9202-
type: "Array<string>",
9203-
format: "",
9204-
},
9205-
filterConnectionIds: {
9206-
type: "Array<string>",
9207-
format: "",
9208-
},
9209-
operationResponseType: "TeamConnectionsResponse",
9210-
},
9211-
"TeamConnectionsApi.V2.CreateTeamConnections": {
9212-
body: {
9213-
type: "TeamConnectionCreateRequest",
9214-
format: "",
9215-
},
9216-
operationResponseType: "TeamConnectionsResponse",
9217-
},
9218-
"TeamConnectionsApi.V2.DeleteTeamConnections": {
9219-
body: {
9220-
type: "TeamConnectionDeleteRequest",
9221-
format: "",
9222-
},
9223-
operationResponseType: "{}",
9224-
},
92259225
"IncidentTeamsApi.V2.ListIncidentTeams": {
92269226
include: {
92279227
type: "IncidentRelatedObject",

0 commit comments

Comments
 (0)