@@ -221,15 +221,15 @@ Feature: On-Call
221
221
Scenario : Update On-Call schedule returns "Bad Request" response
222
222
Given new "UpdateOnCallSchedule" request
223
223
And request contains "schedule_id" parameter from "REPLACE.ME"
224
- And body with value {"data" : {"attributes" : {"layers" : [{"effective_date" : "2025-02-03T05:00:00Z" , "end_date" : "2025-12-31T00:00:00Z" , "interval" : {"seconds" : 300 }, "members" : [{"user" : {"id" : "00000000-aba1-0000-0000-000000000000" }}], "name" : "Layer 1" , "restrictions" : [{"end_day" : "friday" , "end_time" : "17:00:00" , "start_day" : "monday" , "start_time" : "09:00:00" }], "rotation_start" : "2025-02-01T00:00:00Z" }], "name" : "On-Call Schedule Updated" , "time_zone" : "America/New_York" }, "id" : "3653d3c6-0c75-11ea-ad28-fb5701eabc7d" , "relationships" : {"teams" : {"data" : [{"id" : "00000000-da3a-0000-0000-000000000000" , "type" : "teams" }]}}, "type" : "schedules" }}
224
+ And body with value {"data" : {"attributes" : {"layers" : [{"effective_date" : "2025-02-03T05:00:00Z" , "end_date" : "2025-12-31T00:00:00Z" , "interval" : {"seconds" : 3600 }, "members" : [{"user" : {"id" : "00000000-aba1-0000-0000-000000000000" }}], "name" : "Layer 1" , "restrictions" : [{"end_day" : "friday" , "end_time" : "17:00:00" , "start_day" : "monday" , "start_time" : "09:00:00" }], "rotation_start" : "2025-02-01T00:00:00Z" }], "name" : "On-Call Schedule Updated" , "time_zone" : "America/New_York" }, "id" : "3653d3c6-0c75-11ea-ad28-fb5701eabc7d" , "relationships" : {"teams" : {"data" : [{"id" : "00000000-da3a-0000-0000-000000000000" , "type" : "teams" }]}}, "type" : "schedules" }}
225
225
When the request is sent
226
226
Then the response status is 400 Bad Request
227
227
228
228
@generated @skip @team:DataDog/bugle
229
229
Scenario : Update On-Call schedule returns "Not Found" response
230
230
Given new "UpdateOnCallSchedule" request
231
231
And request contains "schedule_id" parameter from "REPLACE.ME"
232
- And body with value {"data" : {"attributes" : {"layers" : [{"effective_date" : "2025-02-03T05:00:00Z" , "end_date" : "2025-12-31T00:00:00Z" , "interval" : {"seconds" : 300 }, "members" : [{"user" : {"id" : "00000000-aba1-0000-0000-000000000000" }}], "name" : "Layer 1" , "restrictions" : [{"end_day" : "friday" , "end_time" : "17:00:00" , "start_day" : "monday" , "start_time" : "09:00:00" }], "rotation_start" : "2025-02-01T00:00:00Z" }], "name" : "On-Call Schedule Updated" , "time_zone" : "America/New_York" }, "id" : "3653d3c6-0c75-11ea-ad28-fb5701eabc7d" , "relationships" : {"teams" : {"data" : [{"id" : "00000000-da3a-0000-0000-000000000000" , "type" : "teams" }]}}, "type" : "schedules" }}
232
+ And body with value {"data" : {"attributes" : {"layers" : [{"effective_date" : "2025-02-03T05:00:00Z" , "end_date" : "2025-12-31T00:00:00Z" , "interval" : {"seconds" : 3600 }, "members" : [{"user" : {"id" : "00000000-aba1-0000-0000-000000000000" }}], "name" : "Layer 1" , "restrictions" : [{"end_day" : "friday" , "end_time" : "17:00:00" , "start_day" : "monday" , "start_time" : "09:00:00" }], "rotation_start" : "2025-02-01T00:00:00Z" }], "name" : "On-Call Schedule Updated" , "time_zone" : "America/New_York" }, "id" : "3653d3c6-0c75-11ea-ad28-fb5701eabc7d" , "relationships" : {"teams" : {"data" : [{"id" : "00000000-da3a-0000-0000-000000000000" , "type" : "teams" }]}}, "type" : "schedules" }}
233
233
When the request is sent
234
234
Then the response status is 404 Not Found
235
235
@@ -240,6 +240,6 @@ Feature: On-Call
240
240
And there is a valid "schedule" in the system
241
241
And there is a valid "dd_team" in the system
242
242
And request contains "schedule_id" parameter from "schedule.data.id"
243
- And body with value {"data" : { "id" : "{{ schedule.data.id }}" , "attributes" : {"layers" : [{"id" : "{{ schedule.data.relationships.layers.data[0].id }}" , "effective_date" : "{{ timeISO('now - 10d') }}" , "end_date" : "{{ timeISO('now + 10d') }}" , "interval" : {"seconds" : 300 }, "members" : [{"user" : {"id" : "{{user.data.id}}" }}], "name" : "Layer 1" , "restrictions" : [{"end_day" : "friday" , "end_time" : "17:00:00" , "start_day" : "monday" , "start_time" : "09:00:00" }], "rotation_start" : "{{ timeISO('now - 5d') }}" }], "name" : "{{ unique }}" , "time_zone" : "America/New_York" }, "relationships" : {"teams" : {"data" : [{"id" : "{{dd_team.data.id}}" , "type" : "teams" }]}}, "type" : "schedules" }}
243
+ And body with value {"data" : { "id" : "{{ schedule.data.id }}" , "attributes" : {"layers" : [{"id" : "{{ schedule.data.relationships.layers.data[0].id }}" , "effective_date" : "{{ timeISO('now - 10d') }}" , "end_date" : "{{ timeISO('now + 10d') }}" , "interval" : {"seconds" : 3600 }, "members" : [{"user" : {"id" : "{{user.data.id}}" }}], "name" : "Layer 1" , "restrictions" : [{"end_day" : "friday" , "end_time" : "17:00:00" , "start_day" : "monday" , "start_time" : "09:00:00" }], "rotation_start" : "{{ timeISO('now - 5d') }}" }], "name" : "{{ unique }}" , "time_zone" : "America/New_York" }, "relationships" : {"teams" : {"data" : [{"id" : "{{dd_team.data.id}}" , "type" : "teams" }]}}, "type" : "schedules" }}
244
244
When the request is sent
245
245
Then the response status is 200 OK
0 commit comments