summaryrefslogtreecommitdiff
path: root/testenv
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-04-23 11:17:22 +0300
committerDevaev Maxim <[email protected]>2020-04-23 11:17:31 +0300
commit75669466cf6b68fbe209a6d2232aec6d49a51044 (patch)
tree74bdd3064eb76e0d5b6cabd2c6df07bc425e8ea5 /testenv
parent820ef178710d8442e30c5b23d0ac0cb90be5150c (diff)
vnc: anon tls encryption
Diffstat (limited to 'testenv')
-rw-r--r--testenv/tests/validators/test_net.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/testenv/tests/validators/test_net.py b/testenv/tests/validators/test_net.py
index 269db9e1..486154fc 100644
--- a/testenv/tests/validators/test_net.py
+++ b/testenv/tests/validators/test_net.py
@@ -30,6 +30,7 @@ from kvmd.validators.net import valid_ip
from kvmd.validators.net import valid_rfc_host
from kvmd.validators.net import valid_port
from kvmd.validators.net import valid_mac
+from kvmd.validators.net import valid_ssl_ciphers
# =====
@@ -142,3 +143,15 @@ def test_ok__valid_mac(arg: Any) -> None:
def test_fail__valid_mac(arg: Any) -> None:
with pytest.raises(ValidatorError):
print(valid_mac(arg))
+
+
+# =====
[email protected]("arg", ["ALL", " ALL:@SECLEVEL=0 "])
+def test_ok__valid_ssl_ciphers(arg: Any) -> None:
+ assert valid_ssl_ciphers(arg) == str(arg).strip()
+
+
[email protected]("arg", ["test", "all", "", None])
+def test_fail__valid_ssl_ciphers(arg: Any) -> None:
+ with pytest.raises(ValidatorError):
+ print(valid_ssl_ciphers(arg))