diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-02-10 11:13:33 +0000 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-02-11 07:31:52 +0100 |
commit | e19252a7968c6281878707c2d95a98fa56e68a74 (patch) | |
tree | f5b9ebd2d186bbf31f2ad500ccd38e983626a260 | |
parent | dfce3e3a5190347e218ba7eb4392eb5c275daf39 (diff) | |
download | vyos-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)
-rwxr-xr-x | smoketest/scripts/cli/test_service_monitoring_telegraf.py | 2 |
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) |