Skip to content

Commit 343d32b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c854967 of spec repo
1 parent d4302f9 commit 343d32b

23 files changed

+2455
-2
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 638 additions & 1 deletion
Large diffs are not rendered by default.

features/v2/fleet_automation.feature

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,51 @@ Feature: Fleet Automation
152152
When the request is sent
153153
Then the response status is 200 OK
154154

155+
@generated @skip @team:DataDog/fleet-automation
156+
Scenario: Get detailed information about an agent returns "Bad Request" response
157+
Given operation "GetFleetAgentInfo" enabled
158+
And new "GetFleetAgentInfo" request
159+
And request contains "agent_key" parameter from "REPLACE.ME"
160+
When the request is sent
161+
Then the response status is 400 Bad Request
162+
163+
@generated @skip @team:DataDog/fleet-automation
164+
Scenario: Get detailed information about an agent returns "Not Found" response
165+
Given operation "GetFleetAgentInfo" enabled
166+
And new "GetFleetAgentInfo" request
167+
And request contains "agent_key" parameter from "REPLACE.ME"
168+
When the request is sent
169+
Then the response status is 404 Not Found
170+
171+
@generated @skip @team:DataDog/fleet-automation
172+
Scenario: Get detailed information about an agent returns "OK" response
173+
Given operation "GetFleetAgentInfo" enabled
174+
And new "GetFleetAgentInfo" request
175+
And request contains "agent_key" parameter from "REPLACE.ME"
176+
When the request is sent
177+
Then the response status is 200 OK
178+
179+
@generated @skip @team:DataDog/fleet-automation
180+
Scenario: List all Datadog Agents returns "Bad Request" response
181+
Given operation "ListFleetAgents" enabled
182+
And new "ListFleetAgents" request
183+
When the request is sent
184+
Then the response status is 400 Bad Request
185+
186+
@generated @skip @team:DataDog/fleet-automation
187+
Scenario: List all Datadog Agents returns "Not Found" response
188+
Given operation "ListFleetAgents" enabled
189+
And new "ListFleetAgents" request
190+
When the request is sent
191+
Then the response status is 404 Not Found
192+
193+
@generated @skip @team:DataDog/fleet-automation
194+
Scenario: List all Datadog Agents returns "OK" response
195+
Given operation "ListFleetAgents" enabled
196+
And new "ListFleetAgents" request
197+
When the request is sent
198+
Then the response status is 200 OK
199+
155200
@generated @skip @team:DataDog/fleet-automation
156201
Scenario: List all available Agent versions returns "Bad Request" response
157202
Given operation "ListFleetAgentVersions" enabled

features/v2/undo.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@
55
"type": "safe"
66
}
77
},
8+
"ListFleetAgents": {
9+
"tag": "Fleet Automation",
10+
"undo": {
11+
"type": "safe"
12+
}
13+
},
14+
"GetFleetAgentInfo": {
15+
"tag": "Fleet Automation",
16+
"undo": {
17+
"type": "safe"
18+
}
19+
},
820
"ListFleetDeployments": {
921
"tag": "Fleet Automation",
1022
"undo": {

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2353,6 +2353,40 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
23532353
"FleetAutomationApi.V2.ListFleetAgentVersions": {
23542354
operationResponseType: "FleetAgentVersionsResponse",
23552355
},
2356+
"FleetAutomationApi.V2.ListFleetAgents": {
2357+
pageNumber: {
2358+
type: "number",
2359+
format: "int64",
2360+
},
2361+
pageSize: {
2362+
type: "number",
2363+
format: "int64",
2364+
},
2365+
sortAttribute: {
2366+
type: "string",
2367+
format: "",
2368+
},
2369+
sortDescending: {
2370+
type: "boolean",
2371+
format: "",
2372+
},
2373+
tags: {
2374+
type: "string",
2375+
format: "",
2376+
},
2377+
filter: {
2378+
type: "string",
2379+
format: "",
2380+
},
2381+
operationResponseType: "FleetAgentsResponse",
2382+
},
2383+
"FleetAutomationApi.V2.GetFleetAgentInfo": {
2384+
agentKey: {
2385+
type: "string",
2386+
format: "",
2387+
},
2388+
operationResponseType: "FleetAgentInfoResponse",
2389+
},
23562390
"FleetAutomationApi.V2.ListFleetDeployments": {
23572391
pageSize: {
23582392
type: "number",

0 commit comments

Comments
 (0)