Skip to content

Commit c180b83

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fcaeb52 of spec repo
1 parent 96b1048 commit c180b83

3 files changed

Lines changed: 75 additions & 75 deletions

File tree

features/v2/scorecards.feature

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,28 @@ Feature: Scorecards
99
And a valid "appKeyAuth" key in the system
1010
And an instance of "Scorecards" API
1111

12-
@generated @skip @team:DataDog/service-catalog
12+
@generated @skip @team:DataDog/idp
1313
Scenario: Create a new campaign returns "Bad Request" response
1414
Given new "CreateScorecardCampaign" request
1515
And body with value {"data": {"attributes": {"description": "Campaign to improve security posture for Q1 2024.", "due_date": "2024-03-31T23:59:59Z", "entity_scope": "kind:service AND team:platform", "guidance": "Please ensure all services pass the security requirements.", "key": "q1-security-2024", "name": "Q1 Security Campaign", "owner_id": "550e8400-e29b-41d4-a716-446655440000", "rule_ids": ["q8MQxk8TCqrHnWkx", "r9NRyl9UDrsIoXly"], "start_date": "2024-01-01T00:00:00Z", "status": "in_progress"}, "type": "campaign"}}
1616
When the request is sent
1717
Then the response status is 400 Bad Request
1818

19-
@generated @skip @team:DataDog/service-catalog
19+
@generated @skip @team:DataDog/idp
2020
Scenario: Create a new campaign returns "Created" response
2121
Given new "CreateScorecardCampaign" request
2222
And body with value {"data": {"attributes": {"description": "Campaign to improve security posture for Q1 2024.", "due_date": "2024-03-31T23:59:59Z", "entity_scope": "kind:service AND team:platform", "guidance": "Please ensure all services pass the security requirements.", "key": "q1-security-2024", "name": "Q1 Security Campaign", "owner_id": "550e8400-e29b-41d4-a716-446655440000", "rule_ids": ["q8MQxk8TCqrHnWkx", "r9NRyl9UDrsIoXly"], "start_date": "2024-01-01T00:00:00Z", "status": "in_progress"}, "type": "campaign"}}
2323
When the request is sent
2424
Then the response status is 201 Created
2525

26-
@team:DataDog/service-catalog
26+
@team:DataDog/idp
2727
Scenario: Create a new rule returns "Bad Request" response
2828
Given new "CreateScorecardRule" request
2929
And body with value {"data": {"attributes": {"enabled": true, "level": 2, "name": "Team Defined", "scorecard_id": "NOT.FOUND"}, "type": "rule"}}
3030
When the request is sent
3131
Then the response status is 400 Bad Request
3232

33-
@team:DataDog/service-catalog
33+
@team:DataDog/idp
3434
Scenario: Create a new rule returns "Created" response
3535
Given new "CreateScorecardRule" request
3636
And body with value {"data": {"attributes": {"enabled": true, "name": "{{unique}}", "scorecard_name": "Observability Best Practices"}, "type": "rule"}}
@@ -39,7 +39,7 @@ Feature: Scorecards
3939
And the response "data.attributes.scorecard_name" is equal to "Observability Best Practices"
4040
And the response "data.relationships.scorecard.data" has field "id"
4141

42-
@team:DataDog/service-catalog
42+
@team:DataDog/idp
4343
Scenario: Create outcomes batch returns "Bad Request" response
4444
Given there is a valid "create_scorecard_rule" in the system
4545
And operation "CreateScorecardOutcomesBatch" enabled
@@ -48,7 +48,7 @@ Feature: Scorecards
4848
When the request is sent
4949
Then the response status is 400 Bad Request
5050

51-
@team:DataDog/service-catalog
51+
@team:DataDog/idp
5252
Scenario: Create outcomes batch returns "OK" response
5353
Given there is a valid "create_scorecard_rule" in the system
5454
And operation "CreateScorecardOutcomesBatch" enabled
@@ -57,95 +57,95 @@ Feature: Scorecards
5757
When the request is sent
5858
Then the response status is 200 OK
5959

60-
@generated @skip @team:DataDog/service-catalog
60+
@generated @skip @team:DataDog/idp
6161
Scenario: Delete a campaign returns "Bad Request" response
6262
Given new "DeleteScorecardCampaign" request
6363
And request contains "campaign_id" parameter from "REPLACE.ME"
6464
When the request is sent
6565
Then the response status is 400 Bad Request
6666

67-
@generated @skip @team:DataDog/service-catalog
67+
@generated @skip @team:DataDog/idp
6868
Scenario: Delete a campaign returns "No Content" response
6969
Given new "DeleteScorecardCampaign" request
7070
And request contains "campaign_id" parameter from "REPLACE.ME"
7171
When the request is sent
7272
Then the response status is 204 No Content
7373

74-
@generated @skip @team:DataDog/service-catalog
74+
@generated @skip @team:DataDog/idp
7575
Scenario: Delete a campaign returns "Not Found" response
7676
Given new "DeleteScorecardCampaign" request
7777
And request contains "campaign_id" parameter from "REPLACE.ME"
7878
When the request is sent
7979
Then the response status is 404 Not Found
8080

81-
@generated @skip @team:DataDog/service-catalog
81+
@generated @skip @team:DataDog/idp
8282
Scenario: Delete a rule returns "Bad Request" response
8383
Given new "DeleteScorecardRule" request
8484
And request contains "rule_id" parameter from "REPLACE.ME"
8585
When the request is sent
8686
Then the response status is 400 Bad Request
8787

88-
@team:DataDog/service-catalog
88+
@team:DataDog/idp
8989
Scenario: Delete a rule returns "Not Found" response
9090
Given new "DeleteScorecardRule" request
9191
And request contains "rule_id" parameter with value "2a4f524e-168a-429d-bb75-7b1ffeab0cbb"
9292
When the request is sent
9393
Then the response status is 404 Not Found
9494

95-
@team:DataDog/service-catalog
95+
@team:DataDog/idp
9696
Scenario: Delete a rule returns "OK" response
9797
Given there is a valid "create_scorecard_rule" in the system
9898
And new "DeleteScorecardRule" request
9999
And request contains "rule_id" parameter from "create_scorecard_rule.data.id"
100100
When the request is sent
101101
Then the response status is 204 OK
102102

103-
@generated @skip @team:DataDog/service-catalog
103+
@generated @skip @team:DataDog/idp
104104
Scenario: Get a campaign returns "Bad Request" response
105105
Given new "GetScorecardCampaign" request
106106
And request contains "campaign_id" parameter from "REPLACE.ME"
107107
When the request is sent
108108
Then the response status is 400 Bad Request
109109

110-
@generated @skip @team:DataDog/service-catalog
110+
@generated @skip @team:DataDog/idp
111111
Scenario: Get a campaign returns "Not Found" response
112112
Given new "GetScorecardCampaign" request
113113
And request contains "campaign_id" parameter from "REPLACE.ME"
114114
When the request is sent
115115
Then the response status is 404 Not Found
116116

117-
@generated @skip @team:DataDog/service-catalog
117+
@generated @skip @team:DataDog/idp
118118
Scenario: Get a campaign returns "OK" response
119119
Given new "GetScorecardCampaign" request
120120
And request contains "campaign_id" parameter from "REPLACE.ME"
121121
When the request is sent
122122
Then the response status is 200 OK
123123

124-
@generated @skip @team:DataDog/service-catalog
124+
@generated @skip @team:DataDog/idp
125125
Scenario: List all campaigns returns "Bad Request" response
126126
Given new "ListScorecardCampaigns" request
127127
When the request is sent
128128
Then the response status is 400 Bad Request
129129

130-
@generated @skip @team:DataDog/service-catalog
130+
@generated @skip @team:DataDog/idp
131131
Scenario: List all campaigns returns "OK" response
132132
Given new "ListScorecardCampaigns" request
133133
When the request is sent
134134
Then the response status is 200 OK
135135

136-
@generated @skip @team:DataDog/service-catalog
136+
@generated @skip @team:DataDog/idp
137137
Scenario: List all rule outcomes returns "Bad Request" response
138138
Given new "ListScorecardOutcomes" request
139139
When the request is sent
140140
Then the response status is 400 Bad Request
141141

142-
@team:DataDog/service-catalog
142+
@team:DataDog/idp
143143
Scenario: List all rule outcomes returns "OK" response
144144
Given new "ListScorecardOutcomes" request
145145
When the request is sent
146146
Then the response status is 200 OK
147147

148-
@replay-only @skip-validation @team:DataDog/service-catalog @with-pagination
148+
@replay-only @skip-validation @team:DataDog/idp @with-pagination
149149
Scenario: List all rule outcomes returns "OK" response with pagination
150150
Given new "ListScorecardOutcomes" request
151151
And request contains "page[size]" parameter with value 2
@@ -155,19 +155,19 @@ Feature: Scorecards
155155
Then the response status is 200 OK
156156
And the response has 2 items
157157

158-
@generated @skip @team:DataDog/service-catalog
158+
@generated @skip @team:DataDog/idp
159159
Scenario: List all rules returns "Bad Request" response
160160
Given new "ListScorecardRules" request
161161
When the request is sent
162162
Then the response status is 400 Bad Request
163163

164-
@team:DataDog/service-catalog
164+
@team:DataDog/idp
165165
Scenario: List all rules returns "OK" response
166166
Given new "ListScorecardRules" request
167167
When the request is sent
168168
Then the response status is 200 OK
169169

170-
@replay-only @skip-validation @team:DataDog/service-catalog @with-pagination
170+
@replay-only @skip-validation @team:DataDog/idp @with-pagination
171171
Scenario: List all rules returns "OK" response with pagination
172172
Given new "ListScorecardRules" request
173173
And request contains "page[size]" parameter with value 2
@@ -177,35 +177,35 @@ Feature: Scorecards
177177
Then the response status is 200 OK
178178
And the response has 4 items
179179

180-
@generated @skip @team:DataDog/service-catalog
180+
@generated @skip @team:DataDog/idp
181181
Scenario: List all scorecards returns "OK" response
182182
Given new "ListScorecards" request
183183
When the request is sent
184184
Then the response status is 200 OK
185185

186-
@generated @skip @team:DataDog/service-catalog
186+
@generated @skip @team:DataDog/idp
187187
Scenario: List all scores returns "Bad Request" response
188188
Given new "ListScorecardScores" request
189189
And request contains "aggregation" parameter from "REPLACE.ME"
190190
When the request is sent
191191
Then the response status is 400 Bad Request
192192

193-
@generated @skip @team:DataDog/service-catalog
193+
@generated @skip @team:DataDog/idp
194194
Scenario: List all scores returns "OK" response
195195
Given new "ListScorecardScores" request
196196
And request contains "aggregation" parameter from "REPLACE.ME"
197197
When the request is sent
198198
Then the response status is 200 OK
199199

200-
@team:DataDog/service-catalog
200+
@team:DataDog/idp
201201
Scenario: Update Scorecard outcomes asynchronously returns "Accepted" response
202202
Given there is a valid "create_scorecard_rule" in the system
203203
And new "UpdateScorecardOutcomes" request
204204
And body with value {"data": {"attributes": {"results": [{"rule_id": "{{create_scorecard_rule.data.id}}", "entity_reference": "service:my-service", "remarks": "See: <a href=\"https://app.datadoghq.com/services\">Services</a>", "state": "pass"}]}, "type": "batched-outcome"}}
205205
When the request is sent
206206
Then the response status is 202 Accepted
207207

208-
@team:DataDog/service-catalog
208+
@team:DataDog/idp
209209
Scenario: Update Scorecard outcomes asynchronously returns "Bad Request" response
210210
Given there is a valid "create_scorecard_rule" in the system
211211
And new "UpdateScorecardOutcomes" request
@@ -215,60 +215,60 @@ Feature: Scorecards
215215
And the response "errors" has length 1
216216
And the response "errors[0]" has field "detail"
217217

218-
@team:DataDog/service-catalog
218+
@team:DataDog/idp
219219
Scenario: Update Scorecard outcomes asynchronously returns "Conflict" response
220220
Given new "UpdateScorecardOutcomes" request
221221
And body with value {"data": {"attributes": {"results": [{"rule_id": "INVALID.RULE_ID", "entity_reference": "service:my-service", "remarks": "See: <a href=\"https://app.datadoghq.com/services\">Services</a>", "state": "pass"}]}, "type": "batched-outcome"}}
222222
When the request is sent
223223
Then the response status is 409 Conflict
224224
And the response "errors" has length 1
225225

226-
@generated @skip @team:DataDog/service-catalog
226+
@generated @skip @team:DataDog/idp
227227
Scenario: Update Scorecard outcomes returns "Accepted" response
228228
Given new "UpdateScorecardOutcomes" request
229229
And body with value {"data": {"attributes": {"results": [{"entity_reference": "service:my-service", "remarks": "See: <a href=\"https://app.datadoghq.com/services\">Services</a>", "rule_id": "q8MQxk8TCqrHnWkx", "state": "pass"}]}, "type": "batched-outcome"}}
230230
When the request is sent
231231
Then the response status is 202 Accepted
232232

233-
@generated @skip @team:DataDog/service-catalog
233+
@generated @skip @team:DataDog/idp
234234
Scenario: Update Scorecard outcomes returns "Bad Request" response
235235
Given new "UpdateScorecardOutcomes" request
236236
And body with value {"data": {"attributes": {"results": [{"entity_reference": "service:my-service", "remarks": "See: <a href=\"https://app.datadoghq.com/services\">Services</a>", "rule_id": "q8MQxk8TCqrHnWkx", "state": "pass"}]}, "type": "batched-outcome"}}
237237
When the request is sent
238238
Then the response status is 400 Bad Request
239239

240-
@generated @skip @team:DataDog/service-catalog
240+
@generated @skip @team:DataDog/idp
241241
Scenario: Update Scorecard outcomes returns "Conflict" response
242242
Given new "UpdateScorecardOutcomes" request
243243
And body with value {"data": {"attributes": {"results": [{"entity_reference": "service:my-service", "remarks": "See: <a href=\"https://app.datadoghq.com/services\">Services</a>", "rule_id": "q8MQxk8TCqrHnWkx", "state": "pass"}]}, "type": "batched-outcome"}}
244244
When the request is sent
245245
Then the response status is 409 Conflict
246246

247-
@generated @skip @team:DataDog/service-catalog
247+
@generated @skip @team:DataDog/idp
248248
Scenario: Update a campaign returns "Bad Request" response
249249
Given new "UpdateScorecardCampaign" request
250250
And request contains "campaign_id" parameter from "REPLACE.ME"
251251
And body with value {"data": {"attributes": {"description": "Campaign to improve security posture for Q1 2024.", "due_date": "2024-03-31T23:59:59Z", "entity_scope": "kind:service AND team:platform", "guidance": "Please ensure all services pass the security requirements.", "key": "q1-security-2024", "name": "Q1 Security Campaign", "owner_id": "550e8400-e29b-41d4-a716-446655440000", "rule_ids": ["q8MQxk8TCqrHnWkx", "r9NRyl9UDrsIoXly"], "start_date": "2024-01-01T00:00:00Z", "status": "in_progress"}, "type": "campaign"}}
252252
When the request is sent
253253
Then the response status is 400 Bad Request
254254

255-
@generated @skip @team:DataDog/service-catalog
255+
@generated @skip @team:DataDog/idp
256256
Scenario: Update a campaign returns "Not Found" response
257257
Given new "UpdateScorecardCampaign" request
258258
And request contains "campaign_id" parameter from "REPLACE.ME"
259259
And body with value {"data": {"attributes": {"description": "Campaign to improve security posture for Q1 2024.", "due_date": "2024-03-31T23:59:59Z", "entity_scope": "kind:service AND team:platform", "guidance": "Please ensure all services pass the security requirements.", "key": "q1-security-2024", "name": "Q1 Security Campaign", "owner_id": "550e8400-e29b-41d4-a716-446655440000", "rule_ids": ["q8MQxk8TCqrHnWkx", "r9NRyl9UDrsIoXly"], "start_date": "2024-01-01T00:00:00Z", "status": "in_progress"}, "type": "campaign"}}
260260
When the request is sent
261261
Then the response status is 404 Not Found
262262

263-
@generated @skip @team:DataDog/service-catalog
263+
@generated @skip @team:DataDog/idp
264264
Scenario: Update a campaign returns "OK" response
265265
Given new "UpdateScorecardCampaign" request
266266
And request contains "campaign_id" parameter from "REPLACE.ME"
267267
And body with value {"data": {"attributes": {"description": "Campaign to improve security posture for Q1 2024.", "due_date": "2024-03-31T23:59:59Z", "entity_scope": "kind:service AND team:platform", "guidance": "Please ensure all services pass the security requirements.", "key": "q1-security-2024", "name": "Q1 Security Campaign", "owner_id": "550e8400-e29b-41d4-a716-446655440000", "rule_ids": ["q8MQxk8TCqrHnWkx", "r9NRyl9UDrsIoXly"], "start_date": "2024-01-01T00:00:00Z", "status": "in_progress"}, "type": "campaign"}}
268268
When the request is sent
269269
Then the response status is 200 OK
270270

271-
@team:DataDog/service-catalog
271+
@team:DataDog/idp
272272
Scenario: Update an existing rule returns "Rule updated successfully" response
273273
Given there is a valid "create_scorecard_rule" in the system
274274
And new "UpdateScorecardRule" request
@@ -277,7 +277,7 @@ Feature: Scorecards
277277
When the request is sent
278278
Then the response status is 200 Rule updated successfully
279279

280-
@team:DataDog/service-catalog
280+
@team:DataDog/idp
281281
Scenario: Update an existing scorecard rule returns "Bad Request" response
282282
Given there is a valid "create_scorecard_rule" in the system
283283
And new "UpdateScorecardRule" request
@@ -286,15 +286,15 @@ Feature: Scorecards
286286
When the request is sent
287287
Then the response status is 400 Bad Request
288288

289-
@team:DataDog/service-catalog
289+
@team:DataDog/idp
290290
Scenario: Update an existing scorecard rule returns "Not Found" response
291291
Given new "UpdateScorecardRule" request
292292
And request contains "rule_id" parameter with value "REPLACE.ME"
293293
And body with value {"data": {"attributes": {"enabled": true, "level": 2, "name": "Team Defined", "scorecard_name": "Deployments automated via Deployment Trains"}, "type": "rule"}}
294294
When the request is sent
295295
Then the response status is 404 Not Found
296296

297-
@generated @skip @team:DataDog/service-catalog
297+
@generated @skip @team:DataDog/idp
298298
Scenario: Update an existing scorecard rule returns "Rule updated successfully" response
299299
Given new "UpdateScorecardRule" request
300300
And request contains "rule_id" parameter from "REPLACE.ME"

0 commit comments

Comments
 (0)