diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-15 21:09:03 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-04-15 21:09:03 +0200 |
commit | 0ea1574b922ed30b46717620ce212af7f70ec03f (patch) | |
tree | 12cfbb981e57f518e54069c0aa3cdb0ab6677f5f /smoketest | |
parent | 0b56514eb00864c8d69a02c2ab307f3877623d8a (diff) | |
download | vyos-1x-0ea1574b922ed30b46717620ce212af7f70ec03f.tar.gz vyos-1x-0ea1574b922ed30b46717620ce212af7f70ec03f.zip |
salt-minion: T4364: add support for source-interface definition
Diffstat (limited to 'smoketest')
-rwxr-xr-x | smoketest/scripts/cli/test_service_salt.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_service_salt.py b/smoketest/scripts/cli/test_service_salt.py index bbeec7f7b..8a8ad093c 100755 --- a/smoketest/scripts/cli/test_service_salt.py +++ b/smoketest/scripts/cli/test_service_salt.py @@ -68,11 +68,13 @@ class TestServiceSALT(VyOSUnitTestSHIM.TestCase): hash = 'sha1' id = 'foo' interval = '120' + interface = 'eth0' self.cli_set(base_path + ['master', server]) self.cli_set(base_path + ['hash', hash]) self.cli_set(base_path + ['id', id]) self.cli_set(base_path + ['interval', interval]) + self.cli_set(base_path + ['source_interface', interface]) self.cli_commit() @@ -84,7 +86,8 @@ class TestServiceSALT(VyOSUnitTestSHIM.TestCase): self.assertIn(f'hash_type: {hash}', conf) self.assertIn(f'id: {id}', conf) self.assertIn(f'mine_interval: {interval}', conf) - self.assertIn(f'id: {id}', conf) + self.assertIn(f'id: {interface}', conf) + self.assertIn(f'source_interface_name: {id}', conf) if __name__ == '__main__': unittest.main(verbosity=2) |