summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-16 12:13:54 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-16 12:13:54 +0200
commit67fa67af916df1cf388af5ef1f1f7a9fd7a81bdb (patch)
tree1199fb6550eeb5561a33377c8051dacd9d0ee6a0 /smoketest
parentedc9a4b961b8e3062757fce04e7ce6ff6178ae3d (diff)
downloadvyos-1x-67fa67af916df1cf388af5ef1f1f7a9fd7a81bdb.tar.gz
vyos-1x-67fa67af916df1cf388af5ef1f1f7a9fd7a81bdb.zip
smoketest: salt-minion: add dummy source-interface
Diffstat (limited to 'smoketest')
-rwxr-xr-xsmoketest/scripts/cli/test_service_salt.py10
1 files changed, 9 insertions, 1 deletions
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])