You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/v2/case_management.feature
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -263,6 +263,32 @@ Feature: Case Management
263
263
When the request is sent
264
264
Then the response status is 200 OK
265
265
266
+
@team:DataDog/case-management
267
+
Scenario: Update case attributes returns "Bad Request" response
268
+
Given new "UpdateAttributes" request
269
+
And there is a valid "case" in the system
270
+
And request contains "case_id" parameter from "case.id"
271
+
And body with value { "data": { "type": "case", "attributes": { "attributes": { "service": "web-store"}}}}
272
+
When the request is sent
273
+
Then the response status is 400 Bad Request
274
+
275
+
@team:DataDog/case-management
276
+
Scenario: Update case attributes returns "Not Found" response
277
+
Given new "UpdateAttributes" request
278
+
And request contains "case_id" parameter with value "67d80aa3-36ff-44b9-a694-c501a7591737"
279
+
And body with value { "data": { "type": "case", "attributes": { "attributes": {} } } }
280
+
When the request is sent
281
+
Then the response status is 404 Not Found
282
+
283
+
@team:DataDog/case-management
284
+
Scenario: Update case attributes returns "OK" response
285
+
Given new "UpdateAttributes" request
286
+
And there is a valid "case" in the system
287
+
And request contains "case_id" parameter from "case.id"
288
+
And body with value {"data": {"attributes": {"attributes": {"service": ["web-store", "web-api"], "env": ["test"], "team": ["engineer"]}}, "type": "case"}}
289
+
When the request is sent
290
+
Then the response status is 200 OK
291
+
266
292
@team:DataDog/case-management
267
293
Scenario: Update case priority returns "Bad Request" response
0 commit comments