Correcting pattern of first matchRegex

This commit is contained in:
Ceddaerrix 2023-11-01 07:11:53 +00:00
parent a504545402
commit 3fb40da20c

View File

@ -1,32 +1,32 @@
suite: config template
release:
name: gitea-unittests
namespace: testing
templates:
- templates/gitea/config.yaml
tests:
- it: inline config stringData.server using TPL
set:
global.giteaHostName: "gitea.example.com"
ingress.enabled: true
ingress.hosts[0].host: "{{ .Values.global.giteaHostName }}"
ingress.tls:
- secretName: gitea-tls
hosts:
- "{{ .Values.global.giteaHostName }}"
asserts:
- matchRegex:
path: metadata.name
pattern: -inline-config$
- matchRegex:
path: stringData.server
pattern: DOMAIN=gitea\.example\.com
documentIndex: 0
- matchRegex:
path: stringData.server
pattern: ROOT_URL=https://gitea\.example\.com
documentIndex: 0
- matchRegex:
path: stringData.server
pattern: SSH_DOMAIN=gitea\.example\.com
suite: config template
release:
name: gitea-unittests
namespace: testing
templates:
- templates/gitea/config.yaml
tests:
- it: inline config stringData.server using TPL
set:
global.giteaHostName: "gitea.example.com"
ingress.enabled: true
ingress.hosts[0].host: "{{ .Values.global.giteaHostName }}"
ingress.tls:
- secretName: gitea-tls
hosts:
- "{{ .Values.global.giteaHostName }}"
asserts:
- matchRegex:
path: metadata.name
pattern: .*-inline-config$
- matchRegex:
path: stringData.server
pattern: DOMAIN=gitea\.example\.com
documentIndex: 0
- matchRegex:
path: stringData.server
pattern: ROOT_URL=https://gitea\.example\.com
documentIndex: 0
- matchRegex:
path: stringData.server
pattern: SSH_DOMAIN=gitea\.example\.com
documentIndex: 0