test(redis): assert no external SAN when no namespace map is injected

The null-namespace case only checked that the in-cluster name is
present, so a chart that emitted a bare "my-redis." SAN, or fell back
to the suite-level host, would still pass. It now carries the same
absence check as the empty-host case, plus the suite host itself.

Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
This commit is contained in:
Aleksei Sviridkin committed 2026-10-01 22:23:25 +03:00
1 parent bc400dff15
commit 77f6cd1af8
1 file changed
+6
+6
View File
@@ -702,6 +702,12 @@ tests:
- contains:
path: spec.dnsNames
content: "rfr-my-redis.tenant-test.svc.cluster.local"
- notContains:
path: spec.dnsNames
content: "my-redis."
- notContains:
path: spec.dnsNames
content: "my-redis.example.com"
# ------------------------------------------------------------------
# Null and empty forms. The `default (dict)` guard in _tls.tpl covers a nil