Skip to content

Commit

Permalink
smoketest: T6614: add op-mode test for Kernel version
Browse files Browse the repository at this point in the history
  • Loading branch information
c-po committed Aug 5, 2024
1 parent cc0f5bd commit bae9811
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions smoketest/scripts/cli/test_op-mode_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand All @@ -29,6 +31,11 @@ def test_op_mode_show_version(self):
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'])
Expand Down
Empty file modified smoketest/scripts/cli/test_service_stunnel.py
100644 → 100755
Empty file.

0 comments on commit bae9811

Please sign in to comment.