mirror of
https://github.com/cozystack/cozystack.git
synced 2026-10-30 08:37:31 +09:00
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:
1 file changed
+6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user