Skip to content

Commit

Permalink
Include 4h and 7d in min_interval metadata tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanIvanoff committed Nov 24, 2023
1 parent 3436e0d commit 56da66b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 13 additions & 1 deletion test/sanbase/metric/metric_metadata_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,19 @@ defmodule Sanbase.MetricMetadataTest do
for metric <- metrics do
{:ok, metadata} = Metric.metadata(metric)
assert metadata.default_aggregation in aggregations
assert metadata.min_interval in ["1s", "1m", "5m", "15m", "1h", "6h", "8h", "1d"]

assert metadata.min_interval in [
"1s",
"1m",
"5m",
"15m",
"1h",
"4h",
"6h",
"8h",
"1d",
"7d"
]
end
end
end
4 changes: 3 additions & 1 deletion test/sanbase_web/graphql/metric/api_metric_metadata_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ defmodule SanbaseWeb.Graphql.ApiMetricMetadataTest do
"5m",
"15m",
"1h",
"4h",
"6h",
"8h",
"1d"
"1d",
"7d"
]

assert metadata["dataType"] in ["TIMESERIES", "HISTOGRAM", "TABLE"]
Expand Down

0 comments on commit 56da66b

Please sign in to comment.