test: fix unit tests
This commit is contained in:
parent
874911d8b4
commit
1179e7643a
8 changed files with 12 additions and 12 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
suite: Init template
|
||||
release:
|
||||
name: gitea-unittests
|
||||
name: forgejo-unittests
|
||||
namespace: testing
|
||||
templates:
|
||||
- templates/gitea/init.yaml
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
suite: Statefulset template (signing disabled)
|
||||
release:
|
||||
name: gitea-unittests
|
||||
name: forgejo-unittests
|
||||
namespace: testing
|
||||
templates:
|
||||
- templates/gitea/statefulset.yaml
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue