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
Scenario: Create a new dashboard with alert_graph widget
53
+
Given there is a valid "monitor" in the system
54
+
And new "CreateDashboard" request
55
+
And body from file "dashboards_json_payload/alert_graph_widget.json"
56
+
When the request is sent
57
+
Then the response status is 200 OK
58
+
And the response "widgets[0].definition.type" is equal to "alert_graph"
59
+
And the response "widgets[0].definition.viz_type" is equal to "timeseries"
60
+
And the response "widgets[0].definition.alert_id" is equal to "{{ monitor.id }}"
61
+
62
+
@team:DataDog/dashboards
63
+
Scenario: Create a new dashboard with alert_value widget
64
+
Given there is a valid "monitor" in the system
65
+
And new "CreateDashboard" request
66
+
And body from file "dashboards_json_payload/alert_value_widget.json"
67
+
When the request is sent
68
+
Then the response status is 200 OK
69
+
And the response "widgets[0].definition.type" is equal to "alert_value"
70
+
And the response "widgets[0].definition.alert_id" is equal to "{{ monitor.id }}"
71
+
51
72
@team:DataDog/dashboards
52
73
Scenario: Create a new dashboard with an audit logs query
53
74
Given new "CreateDashboard" request
@@ -89,6 +110,16 @@ Feature: Dashboards
89
110
And the response "widgets[0].definition.requests[0].queries[0].primary_tag_name" is equal to "datacenter"
90
111
And the response "widgets[0].definition.requests[0].queries[0].operation_name" is equal to "cassandra.query"
91
112
113
+
@team:DataDog/dashboards
114
+
Scenario: Create a new dashboard with check_status widget
115
+
Given new "CreateDashboard" request
116
+
And body from file "dashboards_json_payload/check_status_widget.json"
117
+
When the request is sent
118
+
Then the response status is 200 OK
119
+
And the response "widgets[0].definition.type" is equal to "check_status"
120
+
And the response "widgets[0].definition.check" is equal to "datadog.agent.up"
121
+
And the response "widgets[0].definition.grouping" is equal to "check"
122
+
92
123
@team:DataDog/dashboards
93
124
Scenario: Create a new dashboard with distribution widget and apm stats data
94
125
Given new "CreateDashboard" request
@@ -101,6 +132,24 @@ Feature: Dashboards
101
132
And the response "widgets[0].definition.requests[0].apm_stats_query.service" is equal to "cassandra"
102
133
And the response "widgets[0].definition.requests[0].apm_stats_query.name" is equal to "cassandra.query"
103
134
135
+
@team:DataDog/dashboards
136
+
Scenario: Create a new dashboard with event_stream widget
137
+
Given new "CreateDashboard" request
138
+
And body from file "dashboards_json_payload/event_stream_widget.json"
139
+
When the request is sent
140
+
Then the response status is 200 OK
141
+
And the response "widgets[0].definition.type" is equal to "event_stream"
142
+
And the response "widgets[0].definition.query" is equal to "example-query"
143
+
144
+
@team:DataDog/dashboards
145
+
Scenario: Create a new dashboard with event_timeline widget
146
+
Given new "CreateDashboard" request
147
+
And body from file "dashboards_json_payload/event_timeline_widget.json"
148
+
When the request is sent
149
+
Then the response status is 200 OK
150
+
And the response "widgets[0].definition.type" is equal to "event_timeline"
151
+
And the response "widgets[0].definition.query" is equal to "status:error priority:all"
152
+
104
153
@team:DataDog/dashboards
105
154
Scenario: Create a new dashboard with formulas and functions scatterplot widget
106
155
Given new "CreateDashboard" request
@@ -123,93 +172,6 @@ Feature: Dashboards
123
172
And the response "widgets[0].definition.requests.table.queries[1].aggregator" is equal to "avg"
124
173
And the response "widgets[0].definition.requests.table.response_format" is equal to "scalar"
125
174
126
-
@team:DataDog/dashboards
127
-
Scenario: Create a new dashboard with funnel widget
128
-
Given new "CreateDashboard" request
129
-
And body with value {"layout_type": "ordered", "title": "{{ unique }} with funnel widget","widgets": [{"definition": {"type": "funnel","requests": [{"query":{"data_source":"rum","query_string":"","steps":[]},"request_type":"funnel"}]}}]}
130
-
When the request is sent
131
-
Then the response status is 200 OK
132
-
133
-
@team:DataDog/dashboards
134
-
Scenario: Create a new dashboard with list_stream widget
135
-
Given new "CreateDashboard" request
136
-
And body with value {"layout_type": "ordered", "title": "{{ unique }} with list_stream widget","widgets": [{"definition": {"type": "list_stream","requests": [{"columns":[{"width":"auto","field":"timestamp"}],"query":{"data_source":"issue_stream","query_string":""},"response_format":"event_list"}]}}]}
137
-
When the request is sent
138
-
Then the response status is 200 OK
139
-
140
-
@team:DataDog/dashboards
141
-
Scenario: Create a new dashboard with sunburst widget and metrics data
And the response "widgets[0].definition.requests[0].response_format" is equal to "scalar"
147
-
And the response "widgets[0].definition.requests[0].queries[0].query" is equal to "sum:system.mem.used{*} by {service}"
148
-
And the response "widgets[0].definition.requests[0].queries[0].data_source" is equal to "metrics"
149
-
And the response "widgets[0].definition.requests[0].queries[0].name" is equal to "query1"
150
-
And the response "widgets[0].definition.requests[0].queries[0].aggregator" is equal to "sum"
151
-
And the response "widgets[0].definition.requests[0].formulas[0].formula" is equal to "query1"
152
-
153
-
@team:DataDog/dashboards
154
-
Scenario: Create a new dashboard with timeseries widget containing style attributes
155
-
Given new "CreateDashboard" request
156
-
And body with value {"layout_type": "ordered", "title": "{{ unique }} with timeseries widget","widgets": [{"definition": {"type": "timeseries","requests": [{"q": "sum:trace.test.errors{env:prod,service:datadog-api-spec} by {resource_name}.as_count()","on_right_yaxis": false,"style": {"palette": "warm","line_type": "solid","line_width": "normal"},"display_type": "bars"}]}}]}
157
-
When the request is sent
158
-
Then the response status is 200 OK
159
-
And the response "widgets[0].definition.requests[0].on_right_yaxis" is false
160
-
And the response "widgets[0].definition.requests[0].style" is equal to {"palette": "warm","line_type": "solid","line_width": "normal"}
161
-
And the response "widgets[0].definition.requests[0].display_type" is equal to "bars"
162
-
And the response "widgets[0].definition.requests[0].q" is equal to "sum:trace.test.errors{env:prod,service:datadog-api-spec} by {resource_name}.as_count()"
163
-
164
-
@team:DataDog/dashboards
165
-
Scenario: Create a new dashboard with alert_graph widget
166
-
Given there is a valid "monitor" in the system
167
-
And new "CreateDashboard" request
168
-
And body from file "dashboards_json_payload/alert_graph_widget.json"
169
-
When the request is sent
170
-
Then the response status is 200 OK
171
-
And the response "widgets[0].definition.type" is equal to "alert_graph"
172
-
And the response "widgets[0].definition.viz_type" is equal to "timeseries"
173
-
And the response "widgets[0].definition.alert_id" is equal to "{{ monitor.id }}"
174
-
175
-
@team:DataDog/dashboards
176
-
Scenario: Create a new dashboard with alert_value widget
177
-
Given there is a valid "monitor" in the system
178
-
And new "CreateDashboard" request
179
-
And body from file "dashboards_json_payload/alert_value_widget.json"
180
-
When the request is sent
181
-
Then the response status is 200 OK
182
-
And the response "widgets[0].definition.type" is equal to "alert_value"
183
-
And the response "widgets[0].definition.alert_id" is equal to "{{ monitor.id }}"
184
-
185
-
@team:DataDog/dashboards
186
-
Scenario: Create a new dashboard with check_status widget
187
-
Given new "CreateDashboard" request
188
-
And body from file "dashboards_json_payload/check_status_widget.json"
189
-
When the request is sent
190
-
Then the response status is 200 OK
191
-
And the response "widgets[0].definition.type" is equal to "check_status"
192
-
And the response "widgets[0].definition.check" is equal to "datadog.agent.up"
193
-
And the response "widgets[0].definition.grouping" is equal to "check"
194
-
195
-
@team:DataDog/dashboards
196
-
Scenario: Create a new dashboard with event_stream widget
197
-
Given new "CreateDashboard" request
198
-
And body from file "dashboards_json_payload/event_stream_widget.json"
199
-
When the request is sent
200
-
Then the response status is 200 OK
201
-
And the response "widgets[0].definition.type" is equal to "event_stream"
202
-
And the response "widgets[0].definition.query" is equal to "example-query"
203
-
204
-
@team:DataDog/dashboards
205
-
Scenario: Create a new dashboard with event_timeline widget
206
-
Given new "CreateDashboard" request
207
-
And body from file "dashboards_json_payload/event_timeline_widget.json"
208
-
When the request is sent
209
-
Then the response status is 200 OK
210
-
And the response "widgets[0].definition.type" is equal to "event_timeline"
211
-
And the response "widgets[0].definition.query" is equal to "status:error priority:all"
212
-
213
175
@team:DataDog/dashboards
214
176
Scenario: Create a new dashboard with free_text widget
215
177
Given new "CreateDashboard" request
@@ -220,6 +182,13 @@ Feature: Dashboards
220
182
And the response "widgets[0].definition.text" is equal to "Example free text"
221
183
And the response "widgets[0].definition.color" is equal to "#4d4d4d"
222
184
185
+
@team:DataDog/dashboards
186
+
Scenario: Create a new dashboard with funnel widget
187
+
Given new "CreateDashboard" request
188
+
And body with value {"layout_type": "ordered", "title": "{{ unique }} with funnel widget","widgets": [{"definition": {"type": "funnel","requests": [{"query":{"data_source":"rum","query_string":"","steps":[]},"request_type":"funnel"}]}}]}
189
+
When the request is sent
190
+
Then the response status is 200 OK
191
+
223
192
@team:DataDog/dashboards
224
193
Scenario: Create a new dashboard with geomap widget
225
194
Given new "CreateDashboard" request
@@ -264,6 +233,13 @@ Feature: Dashboards
264
233
And the response "widgets[0].definition.type" is equal to "image"
265
234
And the response "widgets[0].definition.url" is equal to "https://example.com/image.png"
266
235
236
+
@team:DataDog/dashboards
237
+
Scenario: Create a new dashboard with list_stream widget
238
+
Given new "CreateDashboard" request
239
+
And body with value {"layout_type": "ordered", "title": "{{ unique }} with list_stream widget","widgets": [{"definition": {"type": "list_stream","requests": [{"columns":[{"width":"auto","field":"timestamp"}],"query":{"data_source":"issue_stream","query_string":""},"response_format":"event_list"}]}}]}
240
+
When the request is sent
241
+
Then the response status is 200 OK
242
+
267
243
@team:DataDog/dashboards
268
244
Scenario: Create a new dashboard with log_stream widget
269
245
Given new "CreateDashboard" request
@@ -291,6 +267,14 @@ Feature: Dashboards
291
267
And the response "widgets[0].definition.type" is equal to "note"
292
268
And the response "widgets[0].definition.content" is equal to "# Example Note"
293
269
270
+
@team:DataDog/dashboards
271
+
Scenario: Create a new dashboard with query_table widget
272
+
Given new "CreateDashboard" request
273
+
And body from file "dashboards_json_payload/query_table_widget.json"
274
+
When the request is sent
275
+
Then the response status is 200 OK
276
+
And the response "widgets[0].definition.type" is equal to "query_table"
277
+
294
278
@team:DataDog/dashboards
295
279
Scenario: Create a new dashboard with query_value widget
296
280
Given new "CreateDashboard" request
@@ -308,6 +292,15 @@ Feature: Dashboards
308
292
Then the response status is 200 OK
309
293
And the response "widgets[0].definition.type" is equal to "scatterplot"
310
294
295
+
@team:DataDog/dashboards
296
+
Scenario: Create a new dashboard with servicemap widget
297
+
Given new "CreateDashboard" request
298
+
And body from file "dashboards_json_payload/servicemap_widget.json"
299
+
When the request is sent
300
+
Then the response status is 200 OK
301
+
And the response "widgets[0].definition.type" is equal to "servicemap"
302
+
And the response "widgets[0].definition.filters" is equal to ["env:none","environment:*"]
303
+
311
304
@team:DataDog/dashboards
312
305
Scenario: Create a new dashboard with slo widget
313
306
Given there is a valid "slo" in the system
@@ -319,38 +312,45 @@ Feature: Dashboards
319
312
And the response "widgets[0].definition.slo_id" is equal to "{{ slo.data[0].id }}"
320
313
321
314
@team:DataDog/dashboards
322
-
Scenario: Create a new dashboard with servicemap widget
315
+
Scenario: Create a new dashboard with sunburst widget and metrics data
323
316
Given new "CreateDashboard" request
324
-
And body from file "dashboards_json_payload/servicemap_widget.json"
And the response "widgets[0].definition.type" is equal to "servicemap"
328
-
And the response "widgets[0].definition.filters" is equal to ["env:none","environment:*"]
320
+
And the response "widgets[0].definition.requests[0].response_format" is equal to "scalar"
321
+
And the response "widgets[0].definition.requests[0].queries[0].query" is equal to "sum:system.mem.used{*} by {service}"
322
+
And the response "widgets[0].definition.requests[0].queries[0].data_source" is equal to "metrics"
323
+
And the response "widgets[0].definition.requests[0].queries[0].name" is equal to "query1"
324
+
And the response "widgets[0].definition.requests[0].queries[0].aggregator" is equal to "sum"
325
+
And the response "widgets[0].definition.requests[0].formulas[0].formula" is equal to "query1"
329
326
330
327
@team:DataDog/dashboards
331
-
Scenario: Create a new dashboard with trace_service widget
328
+
Scenario: Create a new dashboard with timeseries widget containing style attributes
332
329
Given new "CreateDashboard" request
333
-
And body from file "dashboards_json_payload/trace_service_widget.json"
330
+
And body with value {"layout_type": "ordered", "title": "{{ unique }} with timeseries widget","widgets": [{"definition": {"type": "timeseries","requests": [{"q": "sum:trace.test.errors{env:prod,service:datadog-api-spec} by {resource_name}.as_count()","on_right_yaxis": false,"style": {"palette": "warm","line_type": "solid","line_width": "normal"},"display_type": "bars"}]}}]}
334
331
When the request is sent
335
332
Then the response status is 200 OK
336
-
And the response "widgets[0].definition.type" is equal to "trace_service"
337
-
And the response "widgets[0].definition.env" is equal to "none"
333
+
And the response "widgets[0].definition.requests[0].on_right_yaxis" is false
334
+
And the response "widgets[0].definition.requests[0].style" is equal to {"palette": "warm","line_type": "solid","line_width": "normal"}
335
+
And the response "widgets[0].definition.requests[0].display_type" is equal to "bars"
336
+
And the response "widgets[0].definition.requests[0].q" is equal to "sum:trace.test.errors{env:prod,service:datadog-api-spec} by {resource_name}.as_count()"
338
337
339
338
@team:DataDog/dashboards
340
-
Scenario: Create a new dashboard with query_table widget
339
+
Scenario: Create a new dashboard with toplist widget
341
340
Given new "CreateDashboard" request
342
-
And body from file "dashboards_json_payload/query_table_widget.json"
341
+
And body from file "dashboards_json_payload/toplist_widget.json"
343
342
When the request is sent
344
343
Then the response status is 200 OK
345
-
And the response "widgets[0].definition.type" is equal to "query_table"
344
+
And the response "widgets[0].definition.type" is equal to "toplist"
346
345
347
346
@team:DataDog/dashboards
348
-
Scenario: Create a new dashboard with toplist widget
347
+
Scenario: Create a new dashboard with trace_service widget
349
348
Given new "CreateDashboard" request
350
-
And body from file "dashboards_json_payload/toplist_widget.json"
349
+
And body from file "dashboards_json_payload/trace_service_widget.json"
351
350
When the request is sent
352
351
Then the response status is 200 OK
353
-
And the response "widgets[0].definition.type" is equal to "toplist"
352
+
And the response "widgets[0].definition.type" is equal to "trace_service"
353
+
And the response "widgets[0].definition.env" is equal to "none"
354
354
355
355
@generated@skip@team:DataDog/dashboards
356
356
Scenario: Delete a dashboard returns "Dashboards Not Found" response
0 commit comments