summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-10-07 20:04:21 +0200
committerGitHub <noreply@github.com>2026-10-07 20:04:21 +0200
commit58ccdee2d255f4e952322467902f7d69b4f828fa (patch)
tree3b0a15a5241c413bad09e702ddc705bc9bf008f9 /src/tests
parentfff4e828d2a7ec1549ca20db30906ff47396e374 (diff)
parent8d99a2f6f81b225014d246dcf6c7bb03c641d4da (diff)
downloadvyos-1x-58ccdee2d255f4e952322467902f7d69b4f828fa.tar.gz
vyos-1x-58ccdee2d255f4e952322467902f7d69b4f828fa.zip
Merge pull request #5523 from mandelbitdev/T9370-openvpn-chacha20poly1305
openvpn: T9370: add chacha20poly1305 data cipher
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_template.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tests/test_template.py b/src/tests/test_template.py
index 7ac396b68..65266584e 100644
--- a/src/tests/test_template.py
+++ b/src/tests/test_template.py
@@ -208,3 +208,15 @@ class TestVyOSTemplate(TestCase):
internal_ports['certbot_haproxy'])
self.assertEqual(vyos.template.nft_accept_invalid('arp'),
'ct state invalid ether type arp counter accept')
+
+ def test_openvpn_ciphers(self):
+ # CLI values map onto the names OpenVPN expects
+ self.assertEqual(
+ vyos.template.get_openvpn_data_ciphers(['chacha20poly1305', 'aes256gcm']),
+ 'CHACHA20-POLY1305:AES-256-GCM',
+ )
+ self.assertEqual(
+ vyos.template.get_openvpn_data_ciphers_fallback('chacha20poly1305'),
+ 'CHACHA20-POLY1305',
+ )
+ self.assertEqual(vyos.template.get_openvpn_cipher('aes128'), 'AES-128-CBC')