summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-02-10 11:13:33 +0000
committerChristian Poessinger <christian@poessinger.com>2022-02-11 07:31:52 +0100
commite19252a7968c6281878707c2d95a98fa56e68a74 (patch)
treef5b9ebd2d186bbf31f2ad500ccd38e983626a260 /smoketest/scripts/cli
parentdfce3e3a5190347e218ba7eb4392eb5c275daf39 (diff)
downloadvyos-1x-e19252a7968c6281878707c2d95a98fa56e68a74.tar.gz
vyos-1x-e19252a7968c6281878707c2d95a98fa56e68a74.zip
smoketest: T3872: Fix token check for monitoring test
As INFLUX_TOKEN is present in override.conf.tmpl environment we expect variable "$INFLUX_TOKEN" in the telegraf template and config but not value of the token (cherry picked from commit 19f65290529ac642da419ac77003ddaa70d0cc67)
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_service_monitoring_telegraf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_service_monitoring_telegraf.py b/smoketest/scripts/cli/test_service_monitoring_telegraf.py
index b857926e2..09937513e 100755
--- a/smoketest/scripts/cli/test_service_monitoring_telegraf.py
+++ b/smoketest/scripts/cli/test_service_monitoring_telegraf.py
@@ -54,7 +54,7 @@ class TestMonitoringTelegraf(VyOSUnitTestSHIM.TestCase):
# Check telegraf config
self.assertIn(f'organization = "{org}"', config)
- self.assertIn(token, config)
+ self.assertIn(f' token = "$INFLUX_TOKEN"', config)
self.assertIn(f'urls = ["{url}:{port}"]', config)
self.assertIn(f'bucket = "{bucket}"', config)