summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-02-10 11:13:33 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-02-10 11:13:33 +0000
commit19f65290529ac642da419ac77003ddaa70d0cc67 (patch)
tree83163f49444f08be2604829c6e14371ac708e997
parenteacee4a5eac493b691e8ebf1ae4e7c24b9089e22 (diff)
downloadvyos-1x-19f65290529ac642da419ac77003ddaa70d0cc67.tar.gz
vyos-1x-19f65290529ac642da419ac77003ddaa70d0cc67.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
-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)