You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a helm chart that was created for helm2 and the unittests were working with the lrills/helm-unittest plugin.
But when I try to use this version (Installed trought the helm2 plugin install https://github.com/quintush/helm-unittest command) some errors about template occurs.
Helm Version: 2.16.10
The tests:
suite: test autoscaling
templates:
- horizontalpodautoscaler.yaml
tests:
- it: should use GLOBAL scaling config when release autoscaling AND Global autoscaling are enabled
set:
infra:
autoScaling:
enabled: true
minReplicas: 100
maxReplicas: 500
releases:
- name: default
environment: nimbus
infra:
autoScaling:
enabled: true
type: "hpa"
asserts:
- isKind:
of: HorizontalPodAutoscaler
- hasDocuments:
count: 1
- equal:
path: spec.minReplicas
value: 100
- equal:
path: spec.maxReplicas
value: 500
- it: should use release hpa config when Global autoscaling is disabled but release scaling is enabled.
set:
infra:
autoScaling:
enabled: false
minReplicas: 5000
maxReplicas: 7000
releases:
- name: default
environment: nimbus
infra:
autoScaling:
enabled: true
minReplicas: 2
maxReplicas: 2
asserts:
- isKind:
of: HorizontalPodAutoscaler
- hasDocuments:
count: 1
- equal:
path: spec.minReplicas
value: 2
- equal:
path: spec.maxReplicas
value: 2
- it: should'n't use any autoscaling config when release autoscaling is disabled
set:
infra:
autoScaling:
enabled: true
minReplicas: 5000
maxReplicas: 7000
releases:
- name: default
environment: nimbus
infra:
autoScaling:
enabled: false
minReplicas: 2
maxReplicas: 2
asserts:
- hasDocuments:
count: 0
Errors:
- should use GLOBAL scaling config when release autoscaling AND Global autoscaling are enabled
- asserts[0] `isKind` fail
Error:
assertion.template must be given if testsuite.templates is empty
- asserts[1] `hasDocuments` fail
Error:
assertion.template must be given if testsuite.templates is empty
- asserts[2] `equal` fail
Error:
assertion.template must be given if testsuite.templates is empty
- asserts[3] `equal` fail
Error:
assertion.template must be given if testsuite.templates is empty
Can u provide some method to debug these problems?
Thanks for the awesome work!
The text was updated successfully, but these errors were encountered:
The error message should not occur, as the test suite does have the testsuite.templates filled.
It seems that the plugin cannot find the horizontalpodautoscaler.yaml file in the charts/templates folder (it's looking for the file basic/templates/horizontalpodautoscaler.yaml).
Hi, I have a helm chart that was created for helm2 and the unittests were working with the
lrills/helm-unittest
plugin.But when I try to use this version (Installed trought the
helm2 plugin install https://github.com/quintush/helm-unittest
command) some errors about template occurs.Helm Version: 2.16.10
The tests:
Errors:
Can u provide some method to debug these problems?
Thanks for the awesome work!
The text was updated successfully, but these errors were encountered: