Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
639 changes: 638 additions & 1 deletion .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions features/v2/fleet_automation.feature
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,51 @@ Feature: Fleet Automation
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/fleet-automation
Scenario: Get detailed information about an agent returns "Bad Request" response
Given operation "GetFleetAgentInfo" enabled
And new "GetFleetAgentInfo" request
And request contains "agent_key" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/fleet-automation
Scenario: Get detailed information about an agent returns "Not Found" response
Given operation "GetFleetAgentInfo" enabled
And new "GetFleetAgentInfo" request
And request contains "agent_key" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 Not Found

@generated @skip @team:DataDog/fleet-automation
Scenario: Get detailed information about an agent returns "OK" response
Given operation "GetFleetAgentInfo" enabled
And new "GetFleetAgentInfo" request
And request contains "agent_key" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/fleet-automation
Scenario: List all Datadog Agents returns "Bad Request" response
Given operation "ListFleetAgents" enabled
And new "ListFleetAgents" request
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/fleet-automation
Scenario: List all Datadog Agents returns "Not Found" response
Given operation "ListFleetAgents" enabled
And new "ListFleetAgents" request
When the request is sent
Then the response status is 404 Not Found

@generated @skip @team:DataDog/fleet-automation
Scenario: List all Datadog Agents returns "OK" response
Given operation "ListFleetAgents" enabled
And new "ListFleetAgents" request
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/fleet-automation
Scenario: List all available Agent versions returns "Bad Request" response
Given operation "ListFleetAgentVersions" enabled
Expand Down
12 changes: 12 additions & 0 deletions features/v2/undo.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@
"type": "safe"
}
},
"ListFleetAgents": {
"tag": "Fleet Automation",
"undo": {
"type": "safe"
}
},
"GetFleetAgentInfo": {
"tag": "Fleet Automation",
"undo": {
"type": "safe"
}
},
"ListFleetDeployments": {
"tag": "Fleet Automation",
"undo": {
Expand Down
34 changes: 34 additions & 0 deletions private/bdd_runner/src/support/scenarios_model_mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2353,6 +2353,40 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
"FleetAutomationApi.V2.ListFleetAgentVersions": {
operationResponseType: "FleetAgentVersionsResponse",
},
"FleetAutomationApi.V2.ListFleetAgents": {
pageNumber: {
type: "number",
format: "int64",
},
pageSize: {
type: "number",
format: "int64",
},
sortAttribute: {
type: "string",
format: "",
},
sortDescending: {
type: "boolean",
format: "",
},
tags: {
type: "string",
format: "",
},
filter: {
type: "string",
format: "",
},
operationResponseType: "FleetAgentsResponse",
},
"FleetAutomationApi.V2.GetFleetAgentInfo": {
agentKey: {
type: "string",
format: "",
},
operationResponseType: "FleetAgentInfoResponse",
},
"FleetAutomationApi.V2.ListFleetDeployments": {
pageSize: {
type: "number",
Expand Down
Loading