test: fix unit tests

This commit is contained in:
Michael Kriese 2023-01-19 14:32:09 +01:00
parent 874911d8b4
commit 1179e7643a
No known key found for this signature in database
GPG key ID: B83F553A0724D44E
8 changed files with 12 additions and 12 deletions

View file

@ -37,7 +37,7 @@ pipeline:
pull: true
commands:
- apk add --no-cache make helm git bash
- helm plugin install https://github.com/heyhabito/helm-unittest
- helm plugin install https://github.com/quintush/helm-unittest
- helm dependency update
- make unittests

View file

@ -1,6 +1,6 @@
suite: GPG secret template (signing disabled)
release:
name: gitea-unittests
name: forgejo-unittests
namespace: testing
templates:
- templates/gitea/gpg-secret.yaml

View file

@ -1,6 +1,6 @@
suite: GPG secret template (signing enabled)
release:
name: gitea-unittests
name: forgejo-unittests
namespace: testing
templates:
- templates/gitea/gpg-secret.yaml
@ -32,7 +32,7 @@ tests:
containsDocument:
kind: Secret
apiVersion: v1
name: gitea-unittests-gpg-key
name: forgejo-unittests-gpg-key
- isNotEmpty:
path: metadata.labels
- equal:

View file

@ -1,6 +1,6 @@
suite: Init template (basic)
release:
name: gitea-unittests
name: forgejo-unittests
namespace: testing
templates:
- templates/gitea/init.yaml
@ -12,4 +12,4 @@ tests:
- containsDocument:
kind: Secret
apiVersion: v1
name: gitea-unittests-init
name: forgejo-unittests-init

View file

@ -1,6 +1,6 @@
suite: Init template
release:
name: gitea-unittests
name: forgejo-unittests
namespace: testing
templates:
- templates/gitea/init.yaml

View file

@ -1,6 +1,6 @@
suite: Statefulset template (basic)
release:
name: gitea-unittests
name: forgejo-unittests
namespace: testing
templates:
- templates/gitea/statefulset.yaml
@ -14,4 +14,4 @@ tests:
- containsDocument:
kind: StatefulSet
apiVersion: apps/v1
name: gitea-unittests
name: forgejo-unittests

View file

@ -1,6 +1,6 @@
suite: Statefulset template (signing disabled)
release:
name: gitea-unittests
name: forgejo-unittests
namespace: testing
templates:
- templates/gitea/statefulset.yaml

View file

@ -1,6 +1,6 @@
suite: Statefulset template (signing enabled)
release:
name: gitea-unittests
name: forgejo-unittests
namespace: testing
templates:
- templates/gitea/statefulset.yaml
@ -69,7 +69,7 @@ tests:
content:
name: gpg-private-key
secret:
secretName: gitea-unittests-gpg-key
secretName: forgejo-unittests-gpg-key
items:
- key: privateKey
path: private.asc