summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-08 20:42:17 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-01-10 07:11:39 +0000
commit31c816bd5301c9ebf7aa4774484a263290af930a (patch)
tree1f56e6031c9aa2af9720961af230180c200569cb /smoketest/scripts/cli
parent34eadcf2f74ae57342997bed77ce64bddd34219b (diff)
downloadvyos-1x-31c816bd5301c9ebf7aa4774484a263290af930a.tar.gz
vyos-1x-31c816bd5301c9ebf7aa4774484a263290af930a.zip
pki: T5911: fix service update algorithm if certificate name contains a hyphen (-)
When testing for changed PKI certificates using node_changed(), we should not use key_mangling=('-', '_'), as this will make certificate updates with a hypen not possible. (cherry picked from commit fc6926fdf32a7bdf9f943c7818ee6ea4a8131fba)
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_pki.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_pki.py b/smoketest/scripts/cli/test_pki.py
index 940ff9ec0..02beafb26 100755
--- a/smoketest/scripts/cli/test_pki.py
+++ b/smoketest/scripts/cli/test_pki.py
@@ -205,7 +205,7 @@ class TestPKI(VyOSUnitTestSHIM.TestCase):
self.cli_delete(['service', 'https', 'certificates', 'certificate'])
def test_certificate_https_update(self):
- cert_name = 'smoketest'
+ cert_name = 'smoke-test_foo'
cert_path = f'/run/nginx/certs/{cert_name}_cert.pem'
self.cli_set(base_path + ['certificate', cert_name, 'certificate', valid_ca_cert.replace('\n','')])
self.cli_set(base_path + ['certificate', cert_name, 'private', 'key', valid_ca_private_key.replace('\n','')])