2023-10-14 16:05:59 +00:00
|
|
|
suite: config template | database section (postgresql)
|
|
|
|
release:
|
|
|
|
name: gitea-unittests
|
|
|
|
namespace: testing
|
|
|
|
tests:
|
2023-12-06 13:32:09 +00:00
|
|
|
- it: 'connects to postgresql service'
|
2023-10-14 16:05:59 +00:00
|
|
|
template: templates/gitea/config.yaml
|
|
|
|
set:
|
|
|
|
postgresql:
|
|
|
|
enabled: true
|
|
|
|
postgresql-ha:
|
|
|
|
enabled: false
|
|
|
|
asserts:
|
|
|
|
- documentIndex: 0
|
|
|
|
matchRegex:
|
|
|
|
path: stringData.database
|
|
|
|
pattern: HOST=gitea-unittests-postgresql.testing.svc.cluster.local:5432
|
2023-12-06 13:32:09 +00:00
|
|
|
- it: 'renders the referenced service'
|
2023-10-14 16:05:59 +00:00
|
|
|
template: charts/postgresql/templates/primary/svc.yaml
|
|
|
|
set:
|
|
|
|
postgresql:
|
|
|
|
enabled: true
|
|
|
|
postgresql-ha:
|
|
|
|
enabled: false
|
|
|
|
asserts:
|
|
|
|
- containsDocument:
|
|
|
|
kind: Service
|
|
|
|
apiVersion: v1
|
|
|
|
name: gitea-unittests-postgresql
|
|
|
|
namespace: testing
|