diff options
author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2023-08-31 00:11:59 +0200 |
---|---|---|
committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2023-08-31 00:16:03 +0200 |
commit | 493d060922f638d81dd5d4a81ffdf19e16943e3e (patch) | |
tree | 33b866c4c3e6ded5d040fc6bca21c6670fb6213e /smoketest/scripts/cli/test_interfaces_ethernet.py | |
parent | d3edda22573fb9c9d1c469f14f5a3eec9ca512a5 (diff) | |
download | vyos-1x-493d060922f638d81dd5d4a81ffdf19e16943e3e.tar.gz vyos-1x-493d060922f638d81dd5d4a81ffdf19e16943e3e.zip |
eapol: T4782: Support multiple CA chains
Diffstat (limited to 'smoketest/scripts/cli/test_interfaces_ethernet.py')
-rwxr-xr-x | smoketest/scripts/cli/test_interfaces_ethernet.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_ethernet.py b/smoketest/scripts/cli/test_interfaces_ethernet.py index 5ea21fea8..a39b81348 100755 --- a/smoketest/scripts/cli/test_interfaces_ethernet.py +++ b/smoketest/scripts/cli/test_interfaces_ethernet.py @@ -250,10 +250,19 @@ class EthernetInterfaceTest(BasicInterfaceTest.TestCase): for interface in self._interfaces: # Enable EAPoL self.cli_set(self._base_path + [interface, 'eapol', 'ca-certificate', 'eapol-server-ca-intermediate']) + self.cli_set(self._base_path + [interface, 'eapol', 'ca-certificate', 'eapol-client-ca-intermediate']) self.cli_set(self._base_path + [interface, 'eapol', 'certificate', cert_name]) self.cli_commit() + # Test multiple CA chains + self.assertEqual(get_certificate_count(interface, 'ca'), 4) + + for interface in self._interfaces: + self.cli_delete(self._base_path + [interface, 'eapol', 'ca-certificate', 'eapol-client-ca-intermediate']) + + self.cli_commit() + # Check for running process self.assertTrue(process_named_running('wpa_supplicant')) |