diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-02-10 11:13:33 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-02-10 11:13:33 +0000 |
commit | 19f65290529ac642da419ac77003ddaa70d0cc67 (patch) | |
tree | 83163f49444f08be2604829c6e14371ac708e997 /smoketest/scripts/cli | |
parent | eacee4a5eac493b691e8ebf1ae4e7c24b9089e22 (diff) | |
download | vyos-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
Diffstat (limited to 'smoketest/scripts/cli')
-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) |