Skip to content

Commit

Permalink
Split up split graph widget assertions to fit in synthetic tests (#1677)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Sep 22, 2023
1 parent 63f6e00 commit 3a22915
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2023-09-22 09:03:29.627031",
"spec_repo_commit": "98de9afb"
"regenerated": "2023-09-22 15:04:35.073309",
"spec_repo_commit": "61ae9703"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-09-22 09:03:29.720701",
"spec_repo_commit": "98de9afb"
"regenerated": "2023-09-22 15:04:35.095240",
"spec_repo_commit": "61ae9703"
}
}
}
19 changes: 15 additions & 4 deletions tests/v1/features/dashboards.feature
Original file line number Diff line number Diff line change
Expand Up @@ -636,11 +636,22 @@ Feature: Dashboards
When the request is sent
Then the response status is 200 OK
And the response "widgets[0].definition.type" is equal to "split_group"
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"}]}
And the response "widgets[0].definition.split_config.split_dimensions" is equal to [{"one_graph_per": "service"}]
And the response "widgets[0].definition.source_widget_definition.type" is equal to "timeseries"
And the response "widgets[0].definition.source_widget_definition.requests[0].response_format" is equal to "timeseries"
And the response "widgets[0].definition.source_widget_definition.requests[0].queries[0].data_source" is equal to "metrics"
And the response "widgets[0].definition.source_widget_definition.requests[0].queries[0].query" is equal to "avg:system.cpu.user{*}"
And the response "widgets[0].definition.source_widget_definition.requests[0].style.palette" is equal to "dog_classic"
And the response "widgets[0].definition.split_config.split_dimensions[0].one_graph_per" is equal to "service"
And the response "widgets[0].definition.split_config.limit" is equal to 24
And the response "widgets[0].definition.split_config.sort" is equal to {"compute": {"aggregation": "sum", "metric": "system.cpu.user"}, "order": "desc"}
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"]}]]
And the response "widgets[0].definition.split_config.sort.compute.aggregation" is equal to "sum"
And the response "widgets[0].definition.split_config.sort.compute.metric" is equal to "system.cpu.user"
And the response "widgets[0].definition.split_config.sort.order" is equal to "desc"
And the response "widgets[0].definition.split_config.static_splits[0][0].tag_key" is equal to "service"
And the response "widgets[0].definition.split_config.static_splits[0][0].tag_values[0]" is equal to "cassandra"
And the response "widgets[0].definition.split_config.static_splits[0][1].tag_key" is equal to "datacenter"
And the response "widgets[0].definition.split_config.static_splits[0][1].tag_values" has length 0
And the response "widgets[0].definition.split_config.static_splits[1][0].tag_key" is equal to "demo"
And the response "widgets[0].definition.split_config.static_splits[1][0].tag_values[0]" is equal to "env"
And the response "widgets[0].definition.size" is equal to "md"
And the response "widgets[0].definition.has_uniform_y_axes" is equal to true

Expand Down

0 comments on commit 3a22915

Please sign in to comment.