summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-25 18:51:26 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-25 19:15:17 +0200
commitc5e1d1ca131a0c98bbfb6ff2a4a07e3b8f0a8408 (patch)
tree498c0ab3711de5da9549388f4552e32a26674a39 /smoketest/scripts
parentbd5e25d6f476feed953a2753d9c3f9961b467126 (diff)
downloadvyos-1x-c5e1d1ca131a0c98bbfb6ff2a4a07e3b8f0a8408.tar.gz
vyos-1x-c5e1d1ca131a0c98bbfb6ff2a4a07e3b8f0a8408.zip
smoketest: pki: use setUpClass() over setUp()
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-xsmoketest/scripts/cli/test_pki.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/smoketest/scripts/cli/test_pki.py b/smoketest/scripts/cli/test_pki.py
index 45a4bd61e..e92123dbc 100755
--- a/smoketest/scripts/cli/test_pki.py
+++ b/smoketest/scripts/cli/test_pki.py
@@ -129,8 +129,13 @@ xGsJxVHfSKeooUQn6q76sg==
"""
class TestPKI(VyOSUnitTestSHIM.TestCase):
- def setUp(self):
- self.cli_delete(base_path)
+ @classmethod
+ def setUpClass(cls):
+ super(TestPKI, cls).setUpClass()
+
+ # ensure we can also run this test on a live system - so lets clean
+ # out the current configuration :)
+ cls.cli_delete(cls, base_path)
def tearDown(self):
self.cli_delete(base_path)