diff options
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-x | smoketest/scripts/cli/test_op-mode_show.py | 7 | ||||
-rwxr-xr-x[-rw-r--r--] | smoketest/scripts/cli/test_service_stunnel.py | 0 |
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 |