diff options
author | Christian Breunig <christian@breunig.cc> | 2024-04-06 12:55:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-06 12:55:00 +0200 |
commit | 4f8eeee98e4929cecc601e10c460bb476165ce21 (patch) | |
tree | 3cfec756286c7dc4614686d391ecf7c2d2cc1fdc /smoketest/scripts/cli/test_interfaces_wireless.py | |
parent | 4c5afe0ba7853cf3fc4626933ecde70b321e9d67 (diff) | |
parent | d9d2e9c8ead29c173fefd1b565d191a85baaa071 (diff) | |
download | vyos-1x-4f8eeee98e4929cecc601e10c460bb476165ce21.tar.gz vyos-1x-4f8eeee98e4929cecc601e10c460bb476165ce21.zip |
Merge pull request #3266 from c-po/spring-cleaning-4
T6199: start validating smoketests against real CLI defaultValues
Diffstat (limited to 'smoketest/scripts/cli/test_interfaces_wireless.py')
-rwxr-xr-x | smoketest/scripts/cli/test_interfaces_wireless.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_wireless.py b/smoketest/scripts/cli/test_interfaces_wireless.py index 95246a7b9..83b00ac0c 100755 --- a/smoketest/scripts/cli/test_interfaces_wireless.py +++ b/smoketest/scripts/cli/test_interfaces_wireless.py @@ -25,6 +25,7 @@ from vyos.configsession import ConfigSessionError from vyos.utils.process import process_named_running from vyos.utils.kernel import check_kmod from vyos.utils.file import read_file +from vyos.xml_ref import default_value def get_config_value(interface, key): tmp = read_file(f'/run/hostapd/{interface}.conf') @@ -127,7 +128,8 @@ class WirelessInterfaceTest(BasicInterfaceTest.TestCase): # channel tmp = get_config_value(interface, 'channel') - self.assertEqual('0', tmp) # default is channel 0 + cli_default = default_value(self._base_path + [interface, 'channel']) + self.assertEqual(cli_default, tmp) # auto-powersave is special tmp = get_config_value(interface, 'uapsd_advertisement_enabled') |