From 67fa67af916df1cf388af5ef1f1f7a9fd7a81bdb Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 16 Apr 2022 12:13:54 +0200 Subject: smoketest: salt-minion: add dummy source-interface --- smoketest/scripts/cli/test_service_salt.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'smoketest') diff --git a/smoketest/scripts/cli/test_service_salt.py b/smoketest/scripts/cli/test_service_salt.py index e42aa00a8..68f97acb1 100755 --- a/smoketest/scripts/cli/test_service_salt.py +++ b/smoketest/scripts/cli/test_service_salt.py @@ -26,6 +26,8 @@ PROCESS_NAME = 'salt-minion' SALT_CONF = '/etc/salt/minion' base_path = ['service', 'salt-minion'] +interface = 'dum4456' + class TestServiceSALT(VyOSUnitTestSHIM.TestCase): @classmethod def setUpClass(cls): @@ -35,6 +37,13 @@ class TestServiceSALT(VyOSUnitTestSHIM.TestCase): # out the current configuration :) cls.cli_delete(cls, base_path) + cls.cli_set(cls, ['interfaces', 'dummy', interface, 'address', '100.64.0.1/16']) + + @classmethod + def tearDownClass(cls): + cls.cli_delete(cls, ['interfaces', 'dummy', interface]) + super(cls, cls).tearDownClass() + def tearDown(self): # Check for running process self.assertTrue(process_named_running(PROCESS_NAME)) @@ -68,7 +77,6 @@ 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]) -- cgit v1.2.3