From 680fdbcc529950198e181a5de140aef653bd191a Mon Sep 17 00:00:00 2001 From: Jaromir Wysoglad Date: Thu, 14 Nov 2024 09:18:00 -0500 Subject: [PATCH] Modify kuttl-tests --- .../suites/metricstorage/tests/01-assert.yaml | 15 +++++++++++++-- .../suites/metricstorage/tests/04-assert.yaml | 15 +++++++++++++-- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/tests/kuttl/suites/metricstorage/tests/01-assert.yaml b/tests/kuttl/suites/metricstorage/tests/01-assert.yaml index f42db17c..e45fb4a1 100644 --- a/tests/kuttl/suites/metricstorage/tests/01-assert.yaml +++ b/tests/kuttl/suites/metricstorage/tests/01-assert.yaml @@ -81,8 +81,19 @@ metadata: - kind: MetricStorage name: telemetry-kuttl spec: - staticConfigs: - - {} + scrapeInterval: 30s +--- +apiVersion: monitoring.rhobs/v1alpha1 +kind: ScrapeConfig +metadata: + labels: + service: metricStorage + name: telemetry-node-exporter-tls + ownerReferences: + - kind: MetricStorage + name: telemetry-kuttl +spec: + scrapeInterval: 30s --- apiVersion: monitoring.rhobs/v1alpha1 kind: ScrapeConfig diff --git a/tests/kuttl/suites/metricstorage/tests/04-assert.yaml b/tests/kuttl/suites/metricstorage/tests/04-assert.yaml index 511d7103..6ba6623f 100644 --- a/tests/kuttl/suites/metricstorage/tests/04-assert.yaml +++ b/tests/kuttl/suites/metricstorage/tests/04-assert.yaml @@ -93,8 +93,19 @@ metadata: - kind: MetricStorage name: telemetry-kuttl spec: - staticConfigs: - - {} + scrapeInterval: 40s +--- +apiVersion: monitoring.rhobs/v1alpha1 +kind: ScrapeConfig +metadata: + labels: + service: metricStorage + name: telemetry-node-exporter-tls + ownerReferences: + - kind: MetricStorage + name: telemetry-kuttl +spec: + scrapeInterval: 40s --- apiVersion: monitoring.rhobs/v1alpha1 kind: ScrapeConfig