@@ -13,19 +13,19 @@ Feature: Notebooks
13
13
@generated @skip @team:DataDog/notebooks
14
14
Scenario : Create a notebook returns "Bad Request" response
15
15
Given new "CreateNotebook" request
16
- 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" }], "metadata" : {"is_template" : false, "take_snapshots" : false, "type" : "investigation" }, "name" : "Example Notebook" , "status" : "published" , "time" : {"live_span" : "1h" }}, "type" : "notebooks" }}
16
+ 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" }], "metadata" : {"is_template" : false, "take_snapshots" : false, "type" : "investigation" }, "name" : "Example Notebook" , "status" : "published" , "time" : {"live_span" : "1h" }}, "type" : "notebooks" }}
17
17
When the request is sent
18
18
Then the response status is 400 Bad Request
19
19
20
20
@team:DataDog/notebooks
21
21
Scenario : Create a notebook returns "OK" response
22
22
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" }}
24
24
When the request is sent
25
25
Then the response status is 200 OK
26
26
And the response "data.type" is equal to "notebooks"
27
27
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 ```"
29
29
30
30
@skip @team:DataDog/notebooks
31
31
Scenario : Delete a notebook returns "Bad Request" response
@@ -98,23 +98,23 @@ Feature: Notebooks
98
98
Scenario : Update a notebook returns "Bad Request" response
99
99
Given new "UpdateNotebook" request
100
100
And request contains "notebook_id" parameter from "REPLACE.ME"
101
- 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" }}, "id" : "bzbycoya" , "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}, "id" : "9k6bc6xc" , "type" : "notebook_cells" }], "metadata" : {"is_template" : false, "take_snapshots" : false, "type" : "investigation" }, "name" : "Example Notebook" , "status" : "published" , "time" : {"live_span" : "1h" }}, "type" : "notebooks" }}
101
+ 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" }}, "id" : "bzbycoya" , "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}, "id" : "9k6bc6xc" , "type" : "notebook_cells" }], "metadata" : {"is_template" : false, "take_snapshots" : false, "type" : "investigation" }, "name" : "Example Notebook" , "status" : "published" , "time" : {"live_span" : "1h" }}, "type" : "notebooks" }}
102
102
When the request is sent
103
103
Then the response status is 400 Bad Request
104
104
105
105
@generated @skip @team:DataDog/notebooks
106
106
Scenario : Update a notebook returns "Conflict" response
107
107
Given new "UpdateNotebook" request
108
108
And request contains "notebook_id" parameter from "REPLACE.ME"
109
- 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" }}, "id" : "bzbycoya" , "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}, "id" : "9k6bc6xc" , "type" : "notebook_cells" }], "metadata" : {"is_template" : false, "take_snapshots" : false, "type" : "investigation" }, "name" : "Example Notebook" , "status" : "published" , "time" : {"live_span" : "1h" }}, "type" : "notebooks" }}
109
+ 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" }}, "id" : "bzbycoya" , "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}, "id" : "9k6bc6xc" , "type" : "notebook_cells" }], "metadata" : {"is_template" : false, "take_snapshots" : false, "type" : "investigation" }, "name" : "Example Notebook" , "status" : "published" , "time" : {"live_span" : "1h" }}, "type" : "notebooks" }}
110
110
When the request is sent
111
111
Then the response status is 409 Conflict
112
112
113
113
@generated @skip @team:DataDog/notebooks
114
114
Scenario : Update a notebook returns "Not Found" response
115
115
Given new "UpdateNotebook" request
116
116
And request contains "notebook_id" parameter from "REPLACE.ME"
117
- 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" }}, "id" : "bzbycoya" , "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}, "id" : "9k6bc6xc" , "type" : "notebook_cells" }], "metadata" : {"is_template" : false, "take_snapshots" : false, "type" : "investigation" }, "name" : "Example Notebook" , "status" : "published" , "time" : {"live_span" : "1h" }}, "type" : "notebooks" }}
117
+ 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" }}, "id" : "bzbycoya" , "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}, "id" : "9k6bc6xc" , "type" : "notebook_cells" }], "metadata" : {"is_template" : false, "take_snapshots" : false, "type" : "investigation" }, "name" : "Example Notebook" , "status" : "published" , "time" : {"live_span" : "1h" }}, "type" : "notebooks" }}
118
118
When the request is sent
119
119
Then the response status is 404 Not Found
120
120
@@ -123,7 +123,7 @@ Feature: Notebooks
123
123
Given new "UpdateNotebook" request
124
124
And there is a valid "notebook" in the system
125
125
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" }}
127
127
When the request is sent
128
128
Then the response status is 200 OK
129
129
And the response "data.attributes.name" is equal to "{{ unique }}-updated"
0 commit comments