mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-12-03 15:22:26 -08:00
ingress: with certManager, check the full secret name we expect
This commit is contained in:
1 file changed
+2
-2
@@ -254,7 +254,7 @@ async def test_ingress_certManager_clusterissuer(make_templates, values):
|
||||
f"Ingress {template['name']} does not have cert-manager annotation"
|
||||
)
|
||||
assert template["metadata"]["annotations"]["cert-manager.io/cluster-issuer"] == "cluster-issuer-name"
|
||||
assert template["spec"]["tls"][0]["secretName"].endswith("-certmanager-tls"), (
|
||||
assert template["spec"]["tls"][0]["secretName"] == f"{template["metadata"]["name"]}-certmanager-tls", (
|
||||
f"Ingress {template['name']} does not have correct secret name for cert-manager tls"
|
||||
)
|
||||
|
||||
@@ -270,7 +270,7 @@ async def test_ingress_certManager_issuer(make_templates, values):
|
||||
f"Ingress {template['name']} does not have cert-manager annotation"
|
||||
)
|
||||
assert template["metadata"]["annotations"]["cert-manager.io/issuer"] == "issuer-name"
|
||||
assert template["spec"]["tls"][0]["secretName"].endswith("-certmanager-tls"), (
|
||||
assert template["spec"]["tls"][0]["secretName"] == f"{template["metadata"]["name"]}-certmanager-tls", (
|
||||
f"Ingress {template['name']} does not have correct secret name for cert-manager tls"
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user