summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-08-06 11:55:08 +0200
committerGitHub <noreply@github.com>2024-08-06 12:55:08 +0300
commitc4ffc87da9a1fc9655df189a31797cf31a94e41a (patch)
tree3c680d6bcbf35bd7b9a657f763aa5ff91a788033 /smoketest
parent254ea4c805c6c6c404dc767e820c0661fe6524f3 (diff)
downloadvyos-1x-c4ffc87da9a1fc9655df189a31797cf31a94e41a.tar.gz
vyos-1x-c4ffc87da9a1fc9655df189a31797cf31a94e41a.zip
smoketest: T6614: add op-mode test for Kernel version (#3946)
Diffstat (limited to 'smoketest')
-rwxr-xr-xsmoketest/scripts/cli/test_op-mode_show.py7
-rwxr-xr-x[-rw-r--r--]smoketest/scripts/cli/test_service_stunnel.py0
2 files changed, 7 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_op-mode_show.py b/smoketest/scripts/cli/test_op-mode_show.py
index fba60cc01..62f8e88da 100755
--- a/smoketest/scripts/cli/test_op-mode_show.py
+++ b/smoketest/scripts/cli/test_op-mode_show.py
@@ -15,8 +15,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import unittest
+
from base_vyostest_shim import VyOSUnitTestSHIM
+from vyos.utils.process import cmd
from vyos.version import get_version
base_path = ['show']
@@ -29,6 +31,11 @@ class TestOPModeShow(VyOSUnitTestSHIM.TestCase):
version = get_version()
self.assertIn(f'Version: VyOS {version}', tmp)
+ def test_op_mode_show_version_kernel(self):
+ # Retrieve output of "show version" OP-mode command
+ tmp = self.op_mode(base_path + ['version', 'kernel'])
+ self.assertEqual(cmd('uname -r'), tmp)
+
def test_op_mode_show_vrf(self):
# Retrieve output of "show version" OP-mode command
tmp = self.op_mode(base_path + ['vrf'])
diff --git a/smoketest/scripts/cli/test_service_stunnel.py b/smoketest/scripts/cli/test_service_stunnel.py
index 3aeffd09e..3aeffd09e 100644..100755
--- a/smoketest/scripts/cli/test_service_stunnel.py
+++ b/smoketest/scripts/cli/test_service_stunnel.py