@@ -20,12 +20,12 @@ Feature: Notebooks
2020 @team:DataDog/notebooks
2121 Scenario : Create a notebook returns "OK" response
2222 Given new "CreateNotebook" request
23- And body with value {"data" : {"attributes" : {"cells" : [{"attributes" : {"definition" : {"text" : "## Some test markdown\n\n ```js \n var x, y;\n x = 5;\n y = 6;\n ```" , "type" : "markdown" }}, "type" : "notebook_cells" }, {"attributes" : {"definition" : {"requests" : [{"display_type" : "line" , "q" : "avg:system.load.1{*}" , "style" : {"line_type" : "solid" , "line_width" : "normal" , "palette" : "dog_classic" }}], "show_legend" : true, "type" : "timeseries" , "yaxis" : {"scale" : "linear" }}, "graph_size" : "m" , "split_by" : {"keys" : [], "tags" : []}, "time" : null}, "type" : "notebook_cells" }], "name" : "{{ unique }}" , "status" : "published" , "time" : {"live_span" : "1h" }}, "type" : "notebooks" }}
23+ And body with value {"data" : {"attributes" : {"cells" : [{"attributes" : {"definition" : {"text" : "## Some test markdown\n\n ```\n var x, y;\n x = 5;\n y = 6;\n ```" , "type" : "markdown" }}, "type" : "notebook_cells" }, {"attributes" : {"definition" : {"requests" : [{"display_type" : "line" , "q" : "avg:system.load.1{*}" , "style" : {"line_type" : "solid" , "line_width" : "normal" , "palette" : "dog_classic" }}], "show_legend" : true, "type" : "timeseries" , "yaxis" : {"scale" : "linear" }}, "graph_size" : "m" , "split_by" : {"keys" : [], "tags" : []}, "time" : null}, "type" : "notebook_cells" }], "name" : "{{ unique }}" , "status" : "published" , "time" : {"live_span" : "1h" }}, "type" : "notebooks" }}
2424 When the request is sent
2525 Then the response status is 200 OK
2626 And the response "data.type" is equal to "notebooks"
2727 And the response "data.attributes.name" is equal to "{{ unique }}"
28- And the response "data.attributes.cells[0].attributes.definition.text" is equal to "## Some test markdown\n\n ```js \n var x, y;\n x = 5;\n y = 6;\n ```"
28+ And the response "data.attributes.cells[0].attributes.definition.text" is equal to "## Some test markdown\n\n ```\n var x, y;\n x = 5;\n y = 6;\n ```"
2929
3030 @skip @team:DataDog/notebooks
3131 Scenario : Delete a notebook returns "Bad Request" response
@@ -123,7 +123,7 @@ Feature: Notebooks
123123 Given new "UpdateNotebook" request
124124 And there is a valid "notebook" in the system
125125 And request contains "notebook_id" parameter from "notebook.data.id"
126- And body with value {"data" : {"attributes" : {"cells" : [{"attributes" : {"definition" : {"text" : "## Some test markdown\n\n ```js \n var x, y;\n x = 5;\n y = 6;\n ```" , "type" : "markdown" }}, "type" : "notebook_cells" }, {"attributes" : {"definition" : {"requests" : [{"display_type" : "line" , "q" : "avg:system.load.1{*}" , "style" : {"line_type" : "solid" , "line_width" : "normal" , "palette" : "dog_classic" }}], "show_legend" : true, "type" : "timeseries" , "yaxis" : {"scale" : "linear" }}, "graph_size" : "m" , "split_by" : {"keys" : [], "tags" : []}, "time" : null}, "type" : "notebook_cells" }], "name" : "{{ unique }}-updated" , "status" : "published" , "time" : {"live_span" : "1h" }}, "type" : "notebooks" }}
126+ And body with value {"data" : {"attributes" : {"cells" : [{"attributes" : {"definition" : {"text" : "## Some test markdown\n\n ```\n var x, y;\n x = 5;\n y = 6;\n ```" , "type" : "markdown" }}, "type" : "notebook_cells" }, {"attributes" : {"definition" : {"requests" : [{"display_type" : "line" , "q" : "avg:system.load.1{*}" , "style" : {"line_type" : "solid" , "line_width" : "normal" , "palette" : "dog_classic" }}], "show_legend" : true, "type" : "timeseries" , "yaxis" : {"scale" : "linear" }}, "graph_size" : "m" , "split_by" : {"keys" : [], "tags" : []}, "time" : null}, "type" : "notebook_cells" }], "name" : "{{ unique }}-updated" , "status" : "published" , "time" : {"live_span" : "1h" }}, "type" : "notebooks" }}
127127 When the request is sent
128128 Then the response status is 200 OK
129129 And the response "data.attributes.name" is equal to "{{ unique }}-updated"
0 commit comments