@@ -90,7 +90,7 @@ Feature: Dashboards
9090 @generated @skip @team:DataDog/dashboards-backend
9191 Scenario : Create a new dashboard returns "Bad Request" response
9292 Given new "CreateDashboard" request
93- And body with value {"description" : null, "is_read_only" : false, "layout_type" : "ordered" , "notify_list" : [], "reflow_type" : "auto" , "restricted_roles" : [], "tabs" : [{"id" : "" , "name" : "L" , "widget_ids" : [0]}], "tags" : [], "template_variable_presets" : [{"template_variables" : [{"values" : []}]}], "template_variables" : [{"available_values" : ["my-host" , "host1" , "host2" ], "default" : "my-host" , "defaults" : ["my-host-1" , "my-host-2" ], "name" : "host1" , "prefix" : "host" , "type" : "group" }], "title" : "" , "widgets" : [{"definition" : {"requests" : {"fill" : {"q" : "avg:system.cpu.user{*}" }}, "type" : "hostmap" }}]}
93+ And body with value {"default_timeframe" : { "type" : "live" , "unit" : "minute" , "value" : 4}, " description" : null, "is_read_only" : false, "layout_type" : "ordered" , "notify_list" : [], "reflow_type" : "auto" , "restricted_roles" : [], "tabs" : [{"id" : "" , "name" : "L" , "widget_ids" : [0]}], "tags" : [], "template_variable_presets" : [{"template_variables" : [{"values" : []}]}], "template_variables" : [{"available_values" : ["my-host" , "host1" , "host2" ], "default" : "my-host" , "defaults" : ["my-host-1" , "my-host-2" ], "name" : "host1" , "prefix" : "host" , "type" : "group" }], "title" : "" , "widgets" : [{"definition" : {"requests" : {"fill" : {"q" : "avg:system.cpu.user{*}" }}, "type" : "hostmap" }}]}
9494 When the request is sent
9595 Then the response status is 400 Bad Request
9696
@@ -1463,15 +1463,15 @@ Feature: Dashboards
14631463 Scenario : Update a dashboard returns "Bad Request" response
14641464 Given new "UpdateDashboard" request
14651465 And request contains "dashboard_id" parameter from "REPLACE.ME"
1466- And body with value {"description" : null, "is_read_only" : false, "layout_type" : "ordered" , "notify_list" : [], "reflow_type" : "auto" , "restricted_roles" : [], "tabs" : [{"id" : "" , "name" : "L" , "widget_ids" : [0]}], "tags" : [], "template_variable_presets" : [{"template_variables" : [{"values" : []}]}], "template_variables" : [{"available_values" : ["my-host" , "host1" , "host2" ], "default" : "my-host" , "defaults" : ["my-host-1" , "my-host-2" ], "name" : "host1" , "prefix" : "host" , "type" : "group" }], "title" : "" , "widgets" : [{"definition" : {"requests" : {"fill" : {"q" : "avg:system.cpu.user{*}" }}, "type" : "hostmap" }}]}
1466+ And body with value {"default_timeframe" : { "type" : "live" , "unit" : "minute" , "value" : 4}, " description" : null, "is_read_only" : false, "layout_type" : "ordered" , "notify_list" : [], "reflow_type" : "auto" , "restricted_roles" : [], "tabs" : [{"id" : "" , "name" : "L" , "widget_ids" : [0]}], "tags" : [], "template_variable_presets" : [{"template_variables" : [{"values" : []}]}], "template_variables" : [{"available_values" : ["my-host" , "host1" , "host2" ], "default" : "my-host" , "defaults" : ["my-host-1" , "my-host-2" ], "name" : "host1" , "prefix" : "host" , "type" : "group" }], "title" : "" , "widgets" : [{"definition" : {"requests" : {"fill" : {"q" : "avg:system.cpu.user{*}" }}, "type" : "hostmap" }}]}
14671467 When the request is sent
14681468 Then the response status is 400 Bad Request
14691469
14701470 @generated @skip @team:DataDog/dashboards-backend
14711471 Scenario : Update a dashboard returns "Item Not Found" response
14721472 Given new "UpdateDashboard" request
14731473 And request contains "dashboard_id" parameter from "REPLACE.ME"
1474- And body with value {"description" : null, "is_read_only" : false, "layout_type" : "ordered" , "notify_list" : [], "reflow_type" : "auto" , "restricted_roles" : [], "tabs" : [{"id" : "" , "name" : "L" , "widget_ids" : [0]}], "tags" : [], "template_variable_presets" : [{"template_variables" : [{"values" : []}]}], "template_variables" : [{"available_values" : ["my-host" , "host1" , "host2" ], "default" : "my-host" , "defaults" : ["my-host-1" , "my-host-2" ], "name" : "host1" , "prefix" : "host" , "type" : "group" }], "title" : "" , "widgets" : [{"definition" : {"requests" : {"fill" : {"q" : "avg:system.cpu.user{*}" }}, "type" : "hostmap" }}]}
1474+ And body with value {"default_timeframe" : { "type" : "live" , "unit" : "minute" , "value" : 4}, " description" : null, "is_read_only" : false, "layout_type" : "ordered" , "notify_list" : [], "reflow_type" : "auto" , "restricted_roles" : [], "tabs" : [{"id" : "" , "name" : "L" , "widget_ids" : [0]}], "tags" : [], "template_variable_presets" : [{"template_variables" : [{"values" : []}]}], "template_variables" : [{"available_values" : ["my-host" , "host1" , "host2" ], "default" : "my-host" , "defaults" : ["my-host-1" , "my-host-2" ], "name" : "host1" , "prefix" : "host" , "type" : "group" }], "title" : "" , "widgets" : [{"definition" : {"requests" : {"fill" : {"q" : "avg:system.cpu.user{*}" }}, "type" : "hostmap" }}]}
14751475 When the request is sent
14761476 Then the response status is 404 Item Not Found
14771477
0 commit comments