diff options
author | Christian Breunig <christian@breunig.cc> | 2024-01-01 23:55:32 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-01-02 00:04:30 +0100 |
commit | 679be4c9742ffd5c317742c6c20a268a5e044f0c (patch) | |
tree | 623343e5c0233444057a9afefdec71dc8d5061c9 /smoketest | |
parent | a232b83601f4f8b2fe6964239a568acad3fa764a (diff) | |
download | vyos-1x-679be4c9742ffd5c317742c6c20a268a5e044f0c.tar.gz vyos-1x-679be4c9742ffd5c317742c6c20a268a5e044f0c.zip |
pki: T3642: add missing base64 constraint on PEM keys
Diffstat (limited to 'smoketest')
-rwxr-xr-x | smoketest/scripts/cli/test_pki.py | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/smoketest/scripts/cli/test_pki.py b/smoketest/scripts/cli/test_pki.py index b18b0b039..2ccc63b2c 100755 --- a/smoketest/scripts/cli/test_pki.py +++ b/smoketest/scripts/cli/test_pki.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# Copyright (C) 2021 VyOS maintainers and contributors +# Copyright (C) 2021-2024 VyOS maintainers and contributors # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 or later as @@ -186,30 +186,6 @@ class TestPKI(VyOSUnitTestSHIM.TestCase): with self.assertRaises(ConfigSessionError): self.cli_commit() - def test_invalid_certificate(self): - self.cli_set(base_path + ['certificate', 'smoketest', 'certificate', 'invalidcertdata']) - - with self.assertRaises(ConfigSessionError): - self.cli_commit() - - def test_invalid_public_key(self): - self.cli_set(base_path + ['key-pair', 'smoketest', 'public', 'key', 'invalidkeydata']) - - with self.assertRaises(ConfigSessionError): - self.cli_commit() - - def test_invalid_private_key(self): - self.cli_set(base_path + ['key-pair', 'smoketest', 'private', 'key', 'invalidkeydata']) - - with self.assertRaises(ConfigSessionError): - self.cli_commit() - - def test_invalid_dh_parameters(self): - self.cli_set(base_path + ['dh', 'smoketest', 'parameters', 'thisisinvalid']) - - with self.assertRaises(ConfigSessionError): - self.cli_commit() - def test_certificate_in_use(self): self.cli_set(base_path + ['certificate', 'smoketest', 'certificate', valid_ca_cert.replace('\n','')]) self.cli_set(base_path + ['certificate', 'smoketest', 'private', 'key', valid_ca_private_key.replace('\n','')]) |