Skip to content

Commit c71cd71

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[FA] Add get agent-s endpoints (#3042)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent c18d80b commit c71cd71

File tree

30 files changed

+2504
-20
lines changed

30 files changed

+2504
-20
lines changed

.generator/schemas/v2/openapi.yaml

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

cassettes/v2/Deployment-Gates_4242274226/Create-deployment-rule-returns-OK-response_36464608/recording.har

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 571,
29+
"headersSize": 570,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "POST",
3232
"postData": {
@@ -79,7 +79,7 @@
7979
"value": "application/json"
8080
}
8181
],
82-
"headersSize": 614,
82+
"headersSize": 613,
8383
"httpVersion": "HTTP/1.1",
8484
"method": "POST",
8585
"postData": {
@@ -164,7 +164,7 @@
164164
"value": "*/*"
165165
}
166166
],
167-
"headersSize": 544,
167+
"headersSize": 543,
168168
"httpVersion": "HTTP/1.1",
169169
"method": "DELETE",
170170
"queryString": [],

cassettes/v2/Deployment-Gates_4242274226/Delete-deployment-rule-returns-No-Content-response_3926285415/recording.har

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
},
142142
"cookies": [],
143143
"headers": [],
144-
"headersSize": 623,
144+
"headersSize": 622,
145145
"httpVersion": "HTTP/1.1",
146146
"redirectURL": "",
147147
"status": 204,
@@ -184,7 +184,7 @@
184184
"value": "application/vnd.api+json"
185185
}
186186
],
187-
"headersSize": 683,
187+
"headersSize": 682,
188188
"httpVersion": "HTTP/1.1",
189189
"redirectURL": "",
190190
"status": 404,
@@ -221,7 +221,7 @@
221221
},
222222
"cookies": [],
223223
"headers": [],
224-
"headersSize": 623,
224+
"headersSize": 622,
225225
"httpVersion": "HTTP/1.1",
226226
"redirectURL": "",
227227
"status": 204,

cassettes/v2/Deployment-Gates_4242274226/Get-deployment-gate-returns-OK-response_1812155259/recording.har

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"value": "application/vnd.api+json"
5252
}
5353
],
54-
"headersSize": 683,
54+
"headersSize": 682,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 200,
@@ -94,7 +94,7 @@
9494
"value": "application/vnd.api+json"
9595
}
9696
],
97-
"headersSize": 681,
97+
"headersSize": 680,
9898
"httpVersion": "HTTP/1.1",
9999
"redirectURL": "",
100100
"status": 200,
@@ -131,7 +131,7 @@
131131
},
132132
"cookies": [],
133133
"headers": [],
134-
"headersSize": 623,
134+
"headersSize": 622,
135135
"httpVersion": "HTTP/1.1",
136136
"redirectURL": "",
137137
"status": 204,

cassettes/v2/Deployment-Gates_4242274226/Get-deployment-rule-returns-Bad-Request-response_2127960932/recording.har

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"value": "application/vnd.api+json"
5252
}
5353
],
54-
"headersSize": 683,
54+
"headersSize": 682,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 200,
@@ -79,7 +79,7 @@
7979
"value": "application/json"
8080
}
8181
],
82-
"headersSize": 614,
82+
"headersSize": 613,
8383
"httpVersion": "HTTP/1.1",
8484
"method": "POST",
8585
"postData": {
@@ -104,7 +104,7 @@
104104
"value": "application/vnd.api+json"
105105
}
106106
],
107-
"headersSize": 682,
107+
"headersSize": 681,
108108
"httpVersion": "HTTP/1.1",
109109
"redirectURL": "",
110110
"status": 200,

cassettes/v2/Deployment-Gates_4242274226/Get-deployment-rule-returns-OK-response_3558316506/recording.har

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"url": "https://api.datadoghq.com/api/v2/deployment_gates/defa04e5-9bb2-4a40-b854-1c2378ffcc58/rules"
9292
},
9393
"response": {
94-
"bodySize": 577,
94+
"bodySize": 575,
9595
"content": {
9696
"mimeType": "application/vnd.api+json",
9797
"size": 577,
@@ -134,7 +134,7 @@
134134
"url": "https://api.datadoghq.com/api/v2/deployment_gates/defa04e5-9bb2-4a40-b854-1c2378ffcc58/rules/c1009845-b7a4-4701-846b-df160891ab3d"
135135
},
136136
"response": {
137-
"bodySize": 577,
137+
"bodySize": 575,
138138
"content": {
139139
"mimeType": "application/vnd.api+json",
140140
"size": 577,

cassettes/v2/Deployment-Gates_4242274226/Update-deployment-gate-returns-OK-response_3515146080/recording.har

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"value": "application/json"
8080
}
8181
],
82-
"headersSize": 607,
82+
"headersSize": 606,
8383
"httpVersion": "HTTP/1.1",
8484
"method": "PUT",
8585
"postData": {
@@ -127,7 +127,7 @@
127127
"value": "*/*"
128128
}
129129
],
130-
"headersSize": 544,
130+
"headersSize": 543,
131131
"httpVersion": "HTTP/1.1",
132132
"method": "DELETE",
133133
"queryString": [],

cassettes/v2/Deployment-Gates_4242274226/Update-deployment-rule-returns-Bad-Request-response_1486779637/recording.har

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"value": "application/json"
8080
}
8181
],
82-
"headersSize": 614,
82+
"headersSize": 612,
8383
"httpVersion": "HTTP/1.1",
8484
"method": "POST",
8585
"postData": {
@@ -217,7 +217,7 @@
217217
"value": "*/*"
218218
}
219219
],
220-
"headersSize": 544,
220+
"headersSize": 543,
221221
"httpVersion": "HTTP/1.1",
222222
"method": "DELETE",
223223
"queryString": [],

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": {

0 commit comments

Comments
 (0)