Skip to content

Commit e7bbf22

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1e692e4 of spec repo
1 parent 75f4c7f commit e7bbf22

22 files changed

+2691
-64
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 616 additions & 0 deletions
Large diffs are not rendered by default.

features/v2/fleet_automation.feature

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,48 @@ Feature: Fleet Automation
232232
When the request is sent
233233
Then the response status is 200 OK
234234

235+
@generated @skip @team:DataDog/fleet-automation
236+
Scenario: List all fleet clusters returns "Bad Request" response
237+
Given operation "ListFleetClusters" enabled
238+
And new "ListFleetClusters" request
239+
When the request is sent
240+
Then the response status is 400 Bad Request
241+
242+
@generated @skip @team:DataDog/fleet-automation
243+
Scenario: List all fleet clusters returns "Not Found" response
244+
Given operation "ListFleetClusters" enabled
245+
And new "ListFleetClusters" request
246+
When the request is sent
247+
Then the response status is 404 Not Found
248+
249+
@generated @skip @team:DataDog/fleet-automation
250+
Scenario: List all fleet clusters returns "OK" response
251+
Given operation "ListFleetClusters" enabled
252+
And new "ListFleetClusters" request
253+
When the request is sent
254+
Then the response status is 200 OK
255+
256+
@generated @skip @team:DataDog/fleet-automation
257+
Scenario: List all fleet tracers returns "Bad Request" response
258+
Given operation "ListFleetTracers" enabled
259+
And new "ListFleetTracers" request
260+
When the request is sent
261+
Then the response status is 400 Bad Request
262+
263+
@generated @skip @team:DataDog/fleet-automation
264+
Scenario: List all fleet tracers returns "Not Found" response
265+
Given operation "ListFleetTracers" enabled
266+
And new "ListFleetTracers" request
267+
When the request is sent
268+
Then the response status is 404 Not Found
269+
270+
@generated @skip @team:DataDog/fleet-automation
271+
Scenario: List all fleet tracers returns "OK" response
272+
Given operation "ListFleetTracers" enabled
273+
And new "ListFleetTracers" request
274+
When the request is sent
275+
Then the response status is 200 OK
276+
235277
@generated @skip @team:DataDog/fleet-automation
236278
Scenario: List all schedules returns "Bad Request" response
237279
Given operation "ListFleetSchedules" enabled
@@ -246,6 +288,54 @@ Feature: Fleet Automation
246288
When the request is sent
247289
Then the response status is 200 OK
248290

291+
@generated @skip @team:DataDog/fleet-automation
292+
Scenario: List instrumented pods for a cluster returns "Bad Request" response
293+
Given operation "ListFleetInstrumentedPods" enabled
294+
And new "ListFleetInstrumentedPods" request
295+
And request contains "cluster_name" parameter from "REPLACE.ME"
296+
When the request is sent
297+
Then the response status is 400 Bad Request
298+
299+
@generated @skip @team:DataDog/fleet-automation
300+
Scenario: List instrumented pods for a cluster returns "Not Found" response
301+
Given operation "ListFleetInstrumentedPods" enabled
302+
And new "ListFleetInstrumentedPods" request
303+
And request contains "cluster_name" parameter from "REPLACE.ME"
304+
When the request is sent
305+
Then the response status is 404 Not Found
306+
307+
@generated @skip @team:DataDog/fleet-automation
308+
Scenario: List instrumented pods for a cluster returns "OK" response
309+
Given operation "ListFleetInstrumentedPods" enabled
310+
And new "ListFleetInstrumentedPods" request
311+
And request contains "cluster_name" parameter from "REPLACE.ME"
312+
When the request is sent
313+
Then the response status is 200 OK
314+
315+
@generated @skip @team:DataDog/fleet-automation
316+
Scenario: List tracers for a specific agent returns "Bad Request" response
317+
Given operation "ListFleetAgentTracers" enabled
318+
And new "ListFleetAgentTracers" request
319+
And request contains "agent_key" parameter from "REPLACE.ME"
320+
When the request is sent
321+
Then the response status is 400 Bad Request
322+
323+
@generated @skip @team:DataDog/fleet-automation
324+
Scenario: List tracers for a specific agent returns "Not Found" response
325+
Given operation "ListFleetAgentTracers" enabled
326+
And new "ListFleetAgentTracers" request
327+
And request contains "agent_key" parameter from "REPLACE.ME"
328+
When the request is sent
329+
Then the response status is 404 Not Found
330+
331+
@generated @skip @team:DataDog/fleet-automation
332+
Scenario: List tracers for a specific agent returns "OK" response
333+
Given operation "ListFleetAgentTracers" enabled
334+
And new "ListFleetAgentTracers" request
335+
And request contains "agent_key" parameter from "REPLACE.ME"
336+
When the request is sent
337+
Then the response status is 200 OK
338+
249339
@generated @skip @team:DataDog/fleet-automation
250340
Scenario: Trigger a schedule deployment returns "Bad Request" response
251341
Given operation "TriggerFleetSchedule" enabled

features/v2/undo.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@
1717
"type": "safe"
1818
}
1919
},
20+
"ListFleetAgentTracers": {
21+
"tag": "Fleet Automation",
22+
"undo": {
23+
"type": "safe"
24+
}
25+
},
26+
"ListFleetClusters": {
27+
"tag": "Fleet Automation",
28+
"undo": {
29+
"type": "safe"
30+
}
31+
},
32+
"ListFleetInstrumentedPods": {
33+
"tag": "Fleet Automation",
34+
"undo": {
35+
"type": "safe"
36+
}
37+
},
2038
"ListFleetDeployments": {
2139
"tag": "Fleet Automation",
2240
"undo": {
@@ -111,6 +129,12 @@
111129
"type": "unsafe"
112130
}
113131
},
132+
"ListFleetTracers": {
133+
"tag": "Fleet Automation",
134+
"undo": {
135+
"type": "safe"
136+
}
137+
},
114138
"ListDatastores": {
115139
"tag": "Actions Datastores",
116140
"undo": {

private/bdd_runner/src/step_definitions/request_steps.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,8 @@ Then(
322322
Then(
323323
"the response {string} does not have field {string}",
324324
function (this: World, responsePath: string, field: string) {
325-
expect(
326-
pathLookup(this.response, responsePath)[field.toAttributeName()],
327-
).to.be.undefined;
325+
expect(pathLookup(this.response, responsePath)[field.toAttributeName()]).to
326+
.be.undefined;
328327
},
329328
);
330329

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2391,6 +2391,63 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
23912391
},
23922392
operationResponseType: "FleetAgentInfoResponse",
23932393
},
2394+
"FleetAutomationApi.V2.ListFleetAgentTracers": {
2395+
agentKey: {
2396+
type: "string",
2397+
format: "",
2398+
},
2399+
pageNumber: {
2400+
type: "number",
2401+
format: "int64",
2402+
},
2403+
pageSize: {
2404+
type: "number",
2405+
format: "int64",
2406+
},
2407+
sortAttribute: {
2408+
type: "string",
2409+
format: "",
2410+
},
2411+
sortDescending: {
2412+
type: "boolean",
2413+
format: "",
2414+
},
2415+
operationResponseType: "FleetTracersResponse",
2416+
},
2417+
"FleetAutomationApi.V2.ListFleetClusters": {
2418+
pageNumber: {
2419+
type: "number",
2420+
format: "int64",
2421+
},
2422+
pageSize: {
2423+
type: "number",
2424+
format: "int64",
2425+
},
2426+
sortAttribute: {
2427+
type: "string",
2428+
format: "",
2429+
},
2430+
sortDescending: {
2431+
type: "boolean",
2432+
format: "",
2433+
},
2434+
filter: {
2435+
type: "string",
2436+
format: "",
2437+
},
2438+
tags: {
2439+
type: "string",
2440+
format: "",
2441+
},
2442+
operationResponseType: "FleetClustersResponse",
2443+
},
2444+
"FleetAutomationApi.V2.ListFleetInstrumentedPods": {
2445+
clusterName: {
2446+
type: "string",
2447+
format: "",
2448+
},
2449+
operationResponseType: "FleetInstrumentedPodsResponse",
2450+
},
23942451
"FleetAutomationApi.V2.ListFleetDeployments": {
23952452
pageSize: {
23962453
type: "number",
@@ -2480,6 +2537,29 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
24802537
},
24812538
operationResponseType: "FleetDeploymentResponse",
24822539
},
2540+
"FleetAutomationApi.V2.ListFleetTracers": {
2541+
pageNumber: {
2542+
type: "number",
2543+
format: "int64",
2544+
},
2545+
pageSize: {
2546+
type: "number",
2547+
format: "int64",
2548+
},
2549+
sortAttribute: {
2550+
type: "string",
2551+
format: "",
2552+
},
2553+
sortDescending: {
2554+
type: "boolean",
2555+
format: "",
2556+
},
2557+
filter: {
2558+
type: "string",
2559+
format: "",
2560+
},
2561+
operationResponseType: "FleetTracersResponse",
2562+
},
24832563
"ActionsDatastoresApi.V2.ListDatastores": {
24842564
operationResponseType: "DatastoreArray",
24852565
},

0 commit comments

Comments
 (0)