From 6859a2474dab7c2e118020af621e5b6a5a8f7fca Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Tue, 11 Oct 2022 19:33:03 +0000 Subject: monitoring: T4747: Fix template check influxdb config Due to monitoring telegraf was rewritten - fix template for inputs.exec plugin We do not use 'influxdb_configured' in the dictionary anymore and use just 'influxdb' --- smoketest/scripts/cli/test_service_monitoring_telegraf.py | 1 + 1 file changed, 1 insertion(+) (limited to 'smoketest') diff --git a/smoketest/scripts/cli/test_service_monitoring_telegraf.py b/smoketest/scripts/cli/test_service_monitoring_telegraf.py index c1c4044e6..ed486c3b9 100755 --- a/smoketest/scripts/cli/test_service_monitoring_telegraf.py +++ b/smoketest/scripts/cli/test_service_monitoring_telegraf.py @@ -60,6 +60,7 @@ class TestMonitoringTelegraf(VyOSUnitTestSHIM.TestCase): self.assertIn(f' token = "$INFLUX_TOKEN"', config) self.assertIn(f'urls = ["{url}:{port}"]', config) self.assertIn(f'bucket = "{bucket}"', config) + self.assertIn(f'[[inputs.exec]]', config) for input in inputs: self.assertIn(input, config) -- cgit v1.2.3