From 56da66bf112480892cd5f85e2b0b280947560da2 Mon Sep 17 00:00:00 2001 From: Ivan Ivanov Date: Fri, 24 Nov 2023 12:40:16 +0200 Subject: [PATCH] Include 4h and 7d in min_interval metadata tests --- test/sanbase/metric/metric_metadata_test.exs | 14 +++++++++++++- .../graphql/metric/api_metric_metadata_test.exs | 4 +++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/test/sanbase/metric/metric_metadata_test.exs b/test/sanbase/metric/metric_metadata_test.exs index a52554feca..fad27919cb 100644 --- a/test/sanbase/metric/metric_metadata_test.exs +++ b/test/sanbase/metric/metric_metadata_test.exs @@ -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 diff --git a/test/sanbase_web/graphql/metric/api_metric_metadata_test.exs b/test/sanbase_web/graphql/metric/api_metric_metadata_test.exs index 8879b6937b..92a15978a1 100644 --- a/test/sanbase_web/graphql/metric/api_metric_metadata_test.exs +++ b/test/sanbase_web/graphql/metric/api_metric_metadata_test.exs @@ -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"]