From d5ab45548543afef2eea7c1513e9786464508db0 Mon Sep 17 00:00:00 2001 From: Wes Date: Tue, 13 Dec 2022 15:56:58 +0000 Subject: [PATCH] Add new test for list value verification function --- salt/sensoroni/files/analyzers/helpers_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/salt/sensoroni/files/analyzers/helpers_test.py b/salt/sensoroni/files/analyzers/helpers_test.py index c10ff00d5..fe6f10bf6 100644 --- a/salt/sensoroni/files/analyzers/helpers_test.py +++ b/salt/sensoroni/files/analyzers/helpers_test.py @@ -33,3 +33,8 @@ class TestHelpersMethods(unittest.TestCase): data = helpers.parseArtifact(input) self.assertEqual(data["artifactType"], "bar") self.assertEqual(data["value"], "foo") + + def test_verifyNonEmptyListValue(self): + conf = {"file_path": ['testfile.csv']} + path = 'file_path' + self.assertTrue(conf, path)