Skip to content

Commit b60b070

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Split up split graph widget assertions to fit in synthetic tests (#1335)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent b7c39d1 commit b60b070

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

.apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2023-09-22 09:03:21.874813",
8-
"spec_repo_commit": "98de9afb"
7+
"regenerated": "2023-09-22 15:04:23.958502",
8+
"spec_repo_commit": "61ae9703"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-09-22 09:03:21.889787",
13-
"spec_repo_commit": "98de9afb"
12+
"regenerated": "2023-09-22 15:04:23.973644",
13+
"spec_repo_commit": "61ae9703"
1414
}
1515
}
1616
}

features/v1/dashboards.feature

+15-4
Original file line numberDiff line numberDiff line change
@@ -636,11 +636,22 @@ Feature: Dashboards
636636
When the request is sent
637637
Then the response status is 200 OK
638638
And the response "widgets[0].definition.type" is equal to "split_group"
639-
And the response "widgets[0].definition.source_widget_definition" is equal to {"title":"","title_size":"16","title_align":"left","type":"timeseries","requests":[{"response_format":"timeseries","queries":[{"name":"query1","data_source":"metrics","query":"avg:system.cpu.user{*}"}],"style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"},"display_type":"line"}]}
640-
And the response "widgets[0].definition.split_config.split_dimensions" is equal to [{"one_graph_per": "service"}]
639+
And the response "widgets[0].definition.source_widget_definition.type" is equal to "timeseries"
640+
And the response "widgets[0].definition.source_widget_definition.requests[0].response_format" is equal to "timeseries"
641+
And the response "widgets[0].definition.source_widget_definition.requests[0].queries[0].data_source" is equal to "metrics"
642+
And the response "widgets[0].definition.source_widget_definition.requests[0].queries[0].query" is equal to "avg:system.cpu.user{*}"
643+
And the response "widgets[0].definition.source_widget_definition.requests[0].style.palette" is equal to "dog_classic"
644+
And the response "widgets[0].definition.split_config.split_dimensions[0].one_graph_per" is equal to "service"
641645
And the response "widgets[0].definition.split_config.limit" is equal to 24
642-
And the response "widgets[0].definition.split_config.sort" is equal to {"compute": {"aggregation": "sum", "metric": "system.cpu.user"}, "order": "desc"}
643-
And the response "widgets[0].definition.split_config.static_splits" is equal to [[{"tag_key":"service","tag_values":["cassandra"]},{"tag_key":"datacenter","tag_values":[]}],[{"tag_key":"demo","tag_values":["env"]}]]
646+
And the response "widgets[0].definition.split_config.sort.compute.aggregation" is equal to "sum"
647+
And the response "widgets[0].definition.split_config.sort.compute.metric" is equal to "system.cpu.user"
648+
And the response "widgets[0].definition.split_config.sort.order" is equal to "desc"
649+
And the response "widgets[0].definition.split_config.static_splits[0][0].tag_key" is equal to "service"
650+
And the response "widgets[0].definition.split_config.static_splits[0][0].tag_values[0]" is equal to "cassandra"
651+
And the response "widgets[0].definition.split_config.static_splits[0][1].tag_key" is equal to "datacenter"
652+
And the response "widgets[0].definition.split_config.static_splits[0][1].tag_values" has length 0
653+
And the response "widgets[0].definition.split_config.static_splits[1][0].tag_key" is equal to "demo"
654+
And the response "widgets[0].definition.split_config.static_splits[1][0].tag_values[0]" is equal to "env"
644655
And the response "widgets[0].definition.size" is equal to "md"
645656
And the response "widgets[0].definition.has_uniform_y_axes" is equal to true
646657

0 commit comments

Comments
 (0)