test: use official unittest plugin (#410)
### Description of the change Switch to official `helm-unittest` which is now alive again at https://github.com/helm-unittest/helm-unittest ### Applicable issues - ref #199 ### Checklist <!-- [Place an '[X]' (no spaces) in all applicable fields. Please remove unrelated fields.] --> - [ ] Parameters are documented in the `values.yaml` and added to the `README.md` using [readme-generator-for-helm](https://github.com/bitnami-labs/readme-generator-for-helm) - [ ] Breaking changes are documented in the `README.md` Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/410 Reviewed-by: justusbunsi <justusbunsi@noreply.gitea.io> Reviewed-by: pat-s <pat-s@noreply.gitea.io> Co-authored-by: Michael Kriese <michael.kriese@visualon.de> Co-committed-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
parent
4869aed6ad
commit
1be9fae08b
@ -28,7 +28,7 @@ steps:
|
|||||||
image: alpine:3.17
|
image: alpine:3.17
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing make helm git bash
|
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing make helm git bash
|
||||||
- helm plugin install https://github.com/heyhabito/helm-unittest
|
- helm plugin install https://github.com/helm-unittest/helm-unittest
|
||||||
- helm dependency update
|
- helm dependency update
|
||||||
- make unittests
|
- make unittests
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ be used:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# install the unittest plugin
|
# install the unittest plugin
|
||||||
$ helm plugin install https://github.com/heyhabito/helm-unittest
|
$ helm plugin install https://github.com/helm-unittest/helm-unittest
|
||||||
|
|
||||||
# run the unittests
|
# run the unittests
|
||||||
make unittests
|
make unittests
|
||||||
|
2
Makefile
2
Makefile
@ -9,4 +9,4 @@ readme: prepare-environment
|
|||||||
|
|
||||||
.PHONY: unittests
|
.PHONY: unittests
|
||||||
unittests:
|
unittests:
|
||||||
helm unittest --helm3 --strict -f 'unittests/**/*.yaml' ./
|
helm unittest --strict -f 'unittests/**/*.yaml' ./
|
||||||
|
@ -10,7 +10,7 @@ tests:
|
|||||||
signing.enabled: true
|
signing.enabled: true
|
||||||
asserts:
|
asserts:
|
||||||
- equal:
|
- equal:
|
||||||
path: stringData.[configure_gpg_environment.sh]
|
path: stringData["configure_gpg_environment.sh"]
|
||||||
value: |-
|
value: |-
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu
|
set -eu
|
||||||
@ -19,7 +19,7 @@ tests:
|
|||||||
- it: skips gpg script block for disabled signing
|
- it: skips gpg script block for disabled signing
|
||||||
asserts:
|
asserts:
|
||||||
- equal:
|
- equal:
|
||||||
path: stringData.[init_directory_structure.sh]
|
path: stringData["init_directory_structure.sh"]
|
||||||
value: |-
|
value: |-
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ tests:
|
|||||||
signing.enabled: true
|
signing.enabled: true
|
||||||
asserts:
|
asserts:
|
||||||
- equal:
|
- equal:
|
||||||
path: stringData.[init_directory_structure.sh]
|
path: stringData["init_directory_structure.sh"]
|
||||||
value: |-
|
value: |-
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user