summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_service_salt.py
diff options
context:
space:
mode:
Diffstat (limited to 'smoketest/scripts/cli/test_service_salt.py')
-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])