diff options
author | Christian Breunig <christian@breunig.cc> | 2024-06-19 21:37:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-19 21:37:53 +0200 |
commit | 59db786301768d7dcc417ee2b8bb5afe30ae3c37 (patch) | |
tree | 30c3eefdb8333631ef82980707e7055c59007343 /smoketest/scripts/cli | |
parent | e0850e5715c45fcaa19feab382f89c40add304a1 (diff) | |
parent | 53e628e9b2c99632f4026b5093ad4693511cb75e (diff) | |
download | vyos-1x-59db786301768d7dcc417ee2b8bb5afe30ae3c37.tar.gz vyos-1x-59db786301768d7dcc417ee2b8bb5afe30ae3c37.zip |
Merge pull request #3688 from vyos/mergify/bp/circinus-stream/pr-3685
macsec: T5447: fix error message syntax - there is no tx and rx key, only key (backport #3685)
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-x | smoketest/scripts/cli/test_interfaces_macsec.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_macsec.py b/smoketest/scripts/cli/test_interfaces_macsec.py index a4e6840ca..d73895b7f 100755 --- a/smoketest/scripts/cli/test_interfaces_macsec.py +++ b/smoketest/scripts/cli/test_interfaces_macsec.py @@ -225,11 +225,11 @@ class MACsecInterfaceTest(BasicInterfaceTest.TestCase): self.cli_commit() self.cli_delete(self._base_path + [interface, 'security', 'mka']) - # check validate() - tx-key required + # check validate() - key required with self.assertRaises(ConfigSessionError): self.cli_commit() - # check validate() - tx-key length must match cipher + # check validate() - key length must match cipher self.cli_set(self._base_path + [interface, 'security', 'static', 'key', tx_key_2]) with self.assertRaises(ConfigSessionError): self.cli_commit() @@ -239,7 +239,7 @@ class MACsecInterfaceTest(BasicInterfaceTest.TestCase): with self.assertRaises(ConfigSessionError): self.cli_commit() - # check validate() - enabled peer must have both rx-key and MAC defined + # check validate() - enabled peer must have both key and MAC defined self.cli_set(self._base_path + [interface, 'security', 'static', 'peer', 'TESTPEER']) with self.assertRaises(ConfigSessionError): self.cli_commit() @@ -252,7 +252,7 @@ class MACsecInterfaceTest(BasicInterfaceTest.TestCase): self.cli_commit() self.cli_set(self._base_path + [interface, 'security', 'static', 'peer', 'TESTPEER', 'mac', peer_mac]) - # check validate() - peer rx-key length must match cipher + # check validate() - peer key length must match cipher self.cli_set(self._base_path + [interface, 'security', 'cipher', cipher2]) self.cli_set(self._base_path + [interface, 'security', 'static', 'key', tx_key_2]) with self.assertRaises(ConfigSessionError): |