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
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache make helm git bash
|
- 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
|
- helm dependency update
|
||||||
- make unittests
|
- make unittests
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
suite: GPG secret template (signing disabled)
|
suite: GPG secret template (signing disabled)
|
||||||
release:
|
release:
|
||||||
name: gitea-unittests
|
name: forgejo-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/gpg-secret.yaml
|
- templates/gitea/gpg-secret.yaml
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
suite: GPG secret template (signing enabled)
|
suite: GPG secret template (signing enabled)
|
||||||
release:
|
release:
|
||||||
name: gitea-unittests
|
name: forgejo-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/gpg-secret.yaml
|
- templates/gitea/gpg-secret.yaml
|
||||||
|
@ -32,7 +32,7 @@ tests:
|
||||||
containsDocument:
|
containsDocument:
|
||||||
kind: Secret
|
kind: Secret
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: gitea-unittests-gpg-key
|
name: forgejo-unittests-gpg-key
|
||||||
- isNotEmpty:
|
- isNotEmpty:
|
||||||
path: metadata.labels
|
path: metadata.labels
|
||||||
- equal:
|
- equal:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
suite: Init template (basic)
|
suite: Init template (basic)
|
||||||
release:
|
release:
|
||||||
name: gitea-unittests
|
name: forgejo-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/init.yaml
|
- templates/gitea/init.yaml
|
||||||
|
@ -12,4 +12,4 @@ tests:
|
||||||
- containsDocument:
|
- containsDocument:
|
||||||
kind: Secret
|
kind: Secret
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: gitea-unittests-init
|
name: forgejo-unittests-init
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
suite: Init template
|
suite: Init template
|
||||||
release:
|
release:
|
||||||
name: gitea-unittests
|
name: forgejo-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/init.yaml
|
- templates/gitea/init.yaml
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
suite: Statefulset template (basic)
|
suite: Statefulset template (basic)
|
||||||
release:
|
release:
|
||||||
name: gitea-unittests
|
name: forgejo-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/statefulset.yaml
|
- templates/gitea/statefulset.yaml
|
||||||
|
@ -14,4 +14,4 @@ tests:
|
||||||
- containsDocument:
|
- containsDocument:
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
name: gitea-unittests
|
name: forgejo-unittests
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
suite: Statefulset template (signing disabled)
|
suite: Statefulset template (signing disabled)
|
||||||
release:
|
release:
|
||||||
name: gitea-unittests
|
name: forgejo-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/statefulset.yaml
|
- templates/gitea/statefulset.yaml
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
suite: Statefulset template (signing enabled)
|
suite: Statefulset template (signing enabled)
|
||||||
release:
|
release:
|
||||||
name: gitea-unittests
|
name: forgejo-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/statefulset.yaml
|
- templates/gitea/statefulset.yaml
|
||||||
|
@ -69,7 +69,7 @@ tests:
|
||||||
content:
|
content:
|
||||||
name: gpg-private-key
|
name: gpg-private-key
|
||||||
secret:
|
secret:
|
||||||
secretName: gitea-unittests-gpg-key
|
secretName: forgejo-unittests-gpg-key
|
||||||
items:
|
items:
|
||||||
- key: privateKey
|
- key: privateKey
|
||||||
path: private.asc
|
path: private.asc
|
||||||
|
|
Loading…
Reference in a new issue