Open cognifloyd opened 5 months ago
I installed the latest verison and gave it a test:
❯ helm plugin list
NAME VERSION DESCRIPTION
unittest 0.5.0 Unit test for helm chart in YAML with ease to keep your chart functional and robust.
It bailed immediately on overrides_test
❯ helm unittest -f 'tests/unit/*.yaml' .
FAIL tests/unit/overrides_test.yaml
- Execution Error:
no asserts found
### Error: no asserts found
Charts: 1 failed, 1 errored, 0 passed, 1 total
Test Suites: 1 failed, 1 errored, 0 passed, 1 total
Tests: 0 passed, 0 total
Snapshot: 0 passed, 0 total
Time: 15.337417ms
Deleting that one test, it will actual run the rest, but gets a bunch of errors:
❯ helm unittest -f 'tests/unit/*.yaml' .
FAIL tests/unit/overrides_test.yaml
- Execution Error:
no asserts found
### Error: no asserts found
Charts: 1 failed, 1 errored, 0 passed, 1 total
Test Suites: 1 failed, 1 errored, 0 passed, 1 total
Tests: 0 passed, 0 total
Snapshot: 0 passed, 0 total
Time: 15.337417ms
Error: plugin "unittest" exited with error
❯ no asserts found
❯ rm tests/unit/overrides_test.yaml
❯ helm unittest -f 'tests/unit/*.yaml' .
### Chart [ stackstorm-ha ] .
PASS Custom Annotations tests/unit/custom_annotations_test.yaml
PASS DNS tests/unit/dns_test.yaml
PASS Environment Vars tests/unit/env_test.yaml
PASS Extra Volumes tests/unit/extra_volumes_test.yaml
PASS Image Entrypoint tests/unit/image_entrypoint_test.yaml
FAIL Image Pull tests/unit/image_pull_test.yaml
- Deployments and Jobs use default pullPolicy and pullSecret
- asserts[0] `isNull` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 1
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 2
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 3
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 4
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 5
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 6
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 7
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 8
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 9
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 10
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 11
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 12
Path: spec.template.spec.imagePullSecrets expected to NOT exists
Template: stackstorm-ha/templates/jobs.yaml
DocumentIndex: 0
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 1
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 2
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 3
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 4
Path: spec.template.spec.imagePullSecrets expected to NOT exists
PASS Image tests/unit/image_test.yaml
PASS Ingress tests/unit/ingress_test.yaml
FAIL Labels tests/unit/labels_test.yaml
- Deployments+Pods have requried labels
- asserts[1] `isNotNull` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 16, following ".labels."
- asserts[2] `isNotNull` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 1
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 2
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 3
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 4
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 5
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 6
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 7
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 8
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 9
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 10
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 11
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 12
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 13
Error:
child name missing at position 26, following ".matchLabels."
- asserts[3] `isNotNull` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 30, following ".labels."
- asserts[4] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 16, following ".labels."
- asserts[5] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 1
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 2
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 3
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 4
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 5
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 6
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 7
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 8
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 9
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 10
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 11
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 12
Error:
child name missing at position 26, following ".matchLabels."
DocumentIndex: 13
Error:
child name missing at position 26, following ".matchLabels."
- asserts[6] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 30, following ".labels."
- asserts[7] `matchRegex` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 16, following ".labels."
- asserts[8] `matchRegex` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 30, following ".labels."
- asserts[9] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 16, following ".labels."
- asserts[10] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 30, following ".labels."
- asserts[11] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 16, following ".labels."
- asserts[12] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 30, following ".labels."
- asserts[13] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 16, following ".labels."
- asserts[14] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 30, following ".labels."
- asserts[15] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 16, following ".labels."
- asserts[16] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 30, following ".labels."
- Jobs+Pods have requried labels
- asserts[1] `isNotNull` fail
Template: stackstorm-ha/templates/jobs.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
- asserts[2] `isNotNull` fail
Template: stackstorm-ha/templates/jobs.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 30, following ".labels."
- asserts[3] `equal` fail
Template: stackstorm-ha/templates/jobs.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
- asserts[4] `equal` fail
Template: stackstorm-ha/templates/jobs.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 30, following ".labels."
- asserts[5] `matchRegex` fail
Template: stackstorm-ha/templates/jobs.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
- asserts[6] `matchRegex` fail
Template: stackstorm-ha/templates/jobs.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 30, following ".labels."
- asserts[7] `equal` fail
Template: stackstorm-ha/templates/jobs.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
- asserts[8] `equal` fail
Template: stackstorm-ha/templates/jobs.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 30, following ".labels."
- asserts[9] `equal` fail
Template: stackstorm-ha/templates/jobs.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
- asserts[10] `equal` fail
Template: stackstorm-ha/templates/jobs.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 30, following ".labels."
- asserts[11] `equal` fail
Template: stackstorm-ha/templates/jobs.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
- asserts[12] `equal` fail
Template: stackstorm-ha/templates/jobs.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 30, following ".labels."
- asserts[13] `equal` fail
Template: stackstorm-ha/templates/jobs.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
- asserts[14] `equal` fail
Template: stackstorm-ha/templates/jobs.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 30, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 30, following ".labels."
- Services have required labels
- asserts[1] `isNotNull` fail
Template: stackstorm-ha/templates/services.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
- asserts[2] `equal` fail
Template: stackstorm-ha/templates/services.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
- asserts[3] `matchRegex` fail
Template: stackstorm-ha/templates/services.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
- asserts[4] `equal` fail
Template: stackstorm-ha/templates/services.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
- asserts[5] `equal` fail
Template: stackstorm-ha/templates/services.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
- asserts[6] `equal` fail
Template: stackstorm-ha/templates/services.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
- asserts[7] `equal` fail
Template: stackstorm-ha/templates/services.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
- ServiceAccount has required labels
- asserts[1] `equal` fail
Template: stackstorm-ha/templates/service-account.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[2] `equal` fail
Template: stackstorm-ha/templates/service-account.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[3] `equal` fail
Template: stackstorm-ha/templates/service-account.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[4] `equal` fail
Template: stackstorm-ha/templates/service-account.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[5] `equal` fail
Template: stackstorm-ha/templates/service-account.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[6] `equal` fail
Template: stackstorm-ha/templates/service-account.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[7] `equal` fail
Template: stackstorm-ha/templates/service-account.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- st2web Ingress has required labels
- asserts[1] `equal` fail
Template: stackstorm-ha/templates/ingress.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[2] `equal` fail
Template: stackstorm-ha/templates/ingress.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[3] `equal` fail
Template: stackstorm-ha/templates/ingress.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[4] `equal` fail
Template: stackstorm-ha/templates/ingress.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[5] `equal` fail
Template: stackstorm-ha/templates/ingress.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[6] `equal` fail
Template: stackstorm-ha/templates/ingress.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[7] `equal` fail
Template: stackstorm-ha/templates/ingress.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- ConfigMaps and Secrets have required labels
- asserts[1] `equal` fail
Template: stackstorm-ha/templates/configmaps_packs.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/configmaps_st2-conf.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/configmaps_st2-urls.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_datastore_crypto_key.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_rabbitmq.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_ssh.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2apikeys.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2auth.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2kv.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[2] `equal` fail
Template: stackstorm-ha/templates/configmaps_packs.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/configmaps_st2-conf.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/configmaps_st2-urls.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_datastore_crypto_key.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_rabbitmq.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_ssh.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2apikeys.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2auth.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2kv.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[3] `equal` fail
Template: stackstorm-ha/templates/configmaps_packs.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/configmaps_st2-conf.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/configmaps_st2-urls.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_datastore_crypto_key.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_rabbitmq.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_ssh.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2apikeys.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2auth.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2kv.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[4] `equal` fail
Template: stackstorm-ha/templates/configmaps_packs.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/configmaps_st2-conf.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/configmaps_st2-urls.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_datastore_crypto_key.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_rabbitmq.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_ssh.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2apikeys.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2auth.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2kv.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[5] `equal` fail
Template: stackstorm-ha/templates/configmaps_packs.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/configmaps_st2-conf.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/configmaps_st2-urls.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_datastore_crypto_key.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_rabbitmq.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_ssh.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2apikeys.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2auth.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2kv.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[6] `equal` fail
Template: stackstorm-ha/templates/configmaps_packs.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/configmaps_st2-conf.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/configmaps_st2-urls.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_datastore_crypto_key.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_rabbitmq.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_ssh.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2apikeys.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2auth.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2kv.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[7] `equal` fail
Template: stackstorm-ha/templates/configmaps_packs.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/configmaps_st2-conf.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/configmaps_st2-urls.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_datastore_crypto_key.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_rabbitmq.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_ssh.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2apikeys.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2auth.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
Template: stackstorm-ha/templates/secrets_st2kv.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- RBAC ConfigMaps have required labels
- asserts[1] `equal` fail
Template: stackstorm-ha/templates/configmaps_rbac.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
- asserts[2] `equal` fail
Template: stackstorm-ha/templates/configmaps_rbac.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
- asserts[3] `equal` fail
Template: stackstorm-ha/templates/configmaps_rbac.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
- asserts[4] `equal` fail
Template: stackstorm-ha/templates/configmaps_rbac.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
- asserts[5] `equal` fail
Template: stackstorm-ha/templates/configmaps_rbac.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
- asserts[6] `equal` fail
Template: stackstorm-ha/templates/configmaps_rbac.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
- asserts[7] `equal` fail
Template: stackstorm-ha/templates/configmaps_rbac.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
- st2chatops Secret has required labels
- asserts[1] `equal` fail
Template: stackstorm-ha/templates/secrets_st2chatops.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[2] `equal` fail
Template: stackstorm-ha/templates/secrets_st2chatops.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[3] `equal` fail
Template: stackstorm-ha/templates/secrets_st2chatops.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[4] `equal` fail
Template: stackstorm-ha/templates/secrets_st2chatops.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[5] `equal` fail
Template: stackstorm-ha/templates/secrets_st2chatops.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[6] `equal` fail
Template: stackstorm-ha/templates/secrets_st2chatops.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[7] `equal` fail
Template: stackstorm-ha/templates/secrets_st2chatops.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- st2web ConfigMap has required labels
- asserts[1] `equal` fail
Template: stackstorm-ha/templates/configmaps_st2web.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[2] `equal` fail
Template: stackstorm-ha/templates/configmaps_st2web.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[3] `equal` fail
Template: stackstorm-ha/templates/configmaps_st2web.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[4] `equal` fail
Template: stackstorm-ha/templates/configmaps_st2web.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[5] `equal` fail
Template: stackstorm-ha/templates/configmaps_st2web.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[6] `equal` fail
Template: stackstorm-ha/templates/configmaps_st2web.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[7] `equal` fail
Template: stackstorm-ha/templates/configmaps_st2web.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- post-start-script ConfigMaps have required labels
- asserts[1] `equal` fail
Template: stackstorm-ha/templates/configmaps_post-start-script.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 16, following ".labels."
- asserts[2] `equal` fail
Template: stackstorm-ha/templates/configmaps_post-start-script.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 16, following ".labels."
- asserts[3] `equal` fail
Template: stackstorm-ha/templates/configmaps_post-start-script.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 16, following ".labels."
- asserts[4] `equal` fail
Template: stackstorm-ha/templates/configmaps_post-start-script.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 16, following ".labels."
- asserts[5] `equal` fail
Template: stackstorm-ha/templates/configmaps_post-start-script.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 16, following ".labels."
- asserts[6] `equal` fail
Template: stackstorm-ha/templates/configmaps_post-start-script.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 16, following ".labels."
- asserts[7] `equal` fail
Template: stackstorm-ha/templates/configmaps_post-start-script.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 1
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 2
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 3
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 4
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 5
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 6
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 7
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 8
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 9
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 10
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 11
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 12
Error:
child name missing at position 16, following ".labels."
DocumentIndex: 13
Error:
child name missing at position 16, following ".labels."
PASS Packs Volumes tests/unit/packs_volumes_test.yaml
PASS Placement (NodeSelector Tolerations and Affinity) tests/unit/placement_test.yaml
FAIL postStart scripts tests/unit/post_start_script_test.yaml
- post-start script for st2actionrunner and st2client
- asserts[3] `isNotEmpty` fail
Template: stackstorm-ha/templates/configmaps_post-start-script.yaml
DocumentIndex: 0
Error:
child name missing at position 5, following "data."
DocumentIndex: 1
Error:
child name missing at position 5, following "data."
- asserts[4] `equal` fail
Template: stackstorm-ha/templates/configmaps_post-start-script.yaml
DocumentIndex: 0
Error:
child name missing at position 5, following "data."
DocumentIndex: 1
Error:
child name missing at position 5, following "data."
- custom post-start script
- asserts[3] `isNotEmpty` fail
Template: stackstorm-ha/templates/configmaps_post-start-script.yaml
DocumentIndex: 0
Error:
child name missing at position 5, following "data."
DocumentIndex: 1
Error:
child name missing at position 5, following "data."
DocumentIndex: 2
Error:
child name missing at position 5, following "data."
DocumentIndex: 3
Error:
child name missing at position 5, following "data."
DocumentIndex: 4
Error:
child name missing at position 5, following "data."
DocumentIndex: 5
Error:
child name missing at position 5, following "data."
DocumentIndex: 6
Error:
child name missing at position 5, following "data."
DocumentIndex: 7
Error:
child name missing at position 5, following "data."
DocumentIndex: 8
Error:
child name missing at position 5, following "data."
DocumentIndex: 9
Error:
child name missing at position 5, following "data."
DocumentIndex: 10
Error:
child name missing at position 5, following "data."
DocumentIndex: 11
Error:
child name missing at position 5, following "data."
DocumentIndex: 12
Error:
child name missing at position 5, following "data."
DocumentIndex: 13
Error:
child name missing at position 5, following "data."
- asserts[4] `matchRegex` fail
Template: stackstorm-ha/templates/configmaps_post-start-script.yaml
DocumentIndex: 0
Error:
child name missing at position 5, following "data."
DocumentIndex: 1
Error:
child name missing at position 5, following "data."
DocumentIndex: 2
Error:
child name missing at position 5, following "data."
DocumentIndex: 3
Error:
child name missing at position 5, following "data."
DocumentIndex: 4
Error:
child name missing at position 5, following "data."
DocumentIndex: 5
Error:
child name missing at position 5, following "data."
DocumentIndex: 6
Error:
child name missing at position 5, following "data."
DocumentIndex: 7
Error:
child name missing at position 5, following "data."
DocumentIndex: 8
Error:
child name missing at position 5, following "data."
DocumentIndex: 9
Error:
child name missing at position 5, following "data."
DocumentIndex: 10
Error:
child name missing at position 5, following "data."
DocumentIndex: 11
Error:
child name missing at position 5, following "data."
DocumentIndex: 12
Error:
child name missing at position 5, following "data."
DocumentIndex: 13
Error:
child name missing at position 5, following "data."
- Deployments st2actionrunner and st2client have lifecycle.postStartScipt by default
- asserts[1] `isNull` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 1
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 2
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 3
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 4
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 5
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 6
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 7
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 8
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 9
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 10
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 11
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 12
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 13
Error:
child name missing at position 35, following ".annotations."
- Deployments accept custom lifecycle.postStartScipt
- asserts[1] `isNotEmpty` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 1
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 2
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 3
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 4
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 5
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 6
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 7
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 8
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 9
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 10
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 11
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 12
Error:
child name missing at position 35, following ".annotations."
DocumentIndex: 13
Error:
child name missing at position 35, following ".annotations."
PASS Resources tests/unit/resources_test.yaml
PASS Secret files tests/unit/secrets_test.yaml
PASS Custom SecurityContext tests/unit/security_context_test.yaml
PASS ServiceAccount tests/unit/service_account_test.yaml
PASS Services tests/unit/services_test.yaml
PASS Config files tests/unit/st2_conf_files_test.yaml
FAIL Sensors tests/unit/st2sensors_test.yaml
- stackstorm/sensor-mode = all-sensors-in-one-pod
- asserts[3] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[4] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
- asserts[5] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 26, following ".matchLabels."
- stackstorm/sensor-mode = one-sensor-per-pod
- asserts[7] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[8] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[9] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[10] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
- asserts[11] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
- asserts[12] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
- asserts[13] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 26, following ".matchLabels."
- asserts[14] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 26, following ".matchLabels."
- asserts[15] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 26, following ".matchLabels."
- stackstorm/sensor-mode = multiple-sensors-per-pod
- asserts[7] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[8] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[9] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 16, following ".labels."
- asserts[10] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
- asserts[11] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
- asserts[12] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 30, following ".labels."
- asserts[13] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 26, following ".matchLabels."
- asserts[14] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 26, following ".matchLabels."
- asserts[15] `equal` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Error:
child name missing at position 26, following ".matchLabels."
Charts: 1 failed, 0 passed, 1 total
Test Suites: 4 failed, 15 passed, 19 total
Tests: 18 failed, 78 passed, 96 total
Snapshot: 0 passed, 0 total
Time: 5m34.118803375s
Ok first issue is 0.3.0
added jsonPath
(https://github.com/helm-unittest/helm-unittest/blob/main/CHANGELOG.md#030--2023-01-30) which requires updating our path
references to jq
style ones:
@@ -57,55 +57,55 @@ tests:
# So, we use isNotNull instead.
# see: https://github.com/quintush/helm-unittest/issues/122
- isNotNull:
- path: metadata.labels.[app.kubernetes.io/name]
+ path: metadata.labels["app.kubernetes.io/name"]
- isNotNull:
There also seems to be a bug in v0.5.0
thats causing the the no asserts
issue - https://github.com/helm-unittest/helm-unittest/issues/329 - so I guess I'll just target 0.4.4
for now...
Fixing the jsonPath
and running on v0.4.4 and all, but one, checks work:
❯ helm unittest -f 'tests/unit/image_pull_test.yaml' .
### Chart [ stackstorm-ha ] .
FAIL Image Pull tests/unit/image_pull_test.yaml
- Deployments and Jobs use default pullPolicy and pullSecret
- asserts[0] `notExists` fail
Template: stackstorm-ha/templates/deployments.yaml
DocumentIndex: 0
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 1
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 2
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 3
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 4
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 5
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 6
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 7
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 8
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 9
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 10
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 11
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 12
Path: spec.template.spec.imagePullSecrets expected to NOT exists
Template: stackstorm-ha/templates/jobs.yaml
DocumentIndex: 0
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 1
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 2
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 3
Path: spec.template.spec.imagePullSecrets expected to NOT exists
DocumentIndex: 4
Path: spec.template.spec.imagePullSecrets expected to NOT exists
Charts: 1 failed, 0 passed, 1 total
Test Suites: 1 failed, 0 passed, 1 total
Tests: 1 failed, 4 passed, 5 total
Snapshot: 0 passed, 0 total
Time: 16.824467292s
Error: plugin "unittest" exited with error
Seems the logic isNull
was changed, such that if the path exists but has an empty value, i.e.
spec:
imagePullSecrets:
initContainers:
...
This is no longer null
(as the function isNull
was refactored and renamed notExists
- instead you should use isNullOrEmpty
- which expects that path to exist but be empty or "null" - which seems to be a confusing double meaning use of null
here!
Either way, having this:
spec:
imagePullSecrets:
{{- if .Values.image.pullSecret }}
- name: {{ .Values.image.pullSecret }}
{{- end }}
Seems silly as you end up with ugly unset keys hanging around, so changing all instances of that too:
spec:
{{- if .Values.image.pullSecret }}
imagePullSecrets:
- name: {{ .Values.image.pullSecret }}
{{- end }}
Is cleaner looking, and also means the test once again passes ;)
Replacing instances of:
isNotNull
with exists
isNull
with notExists
isEmpty
with isNullOrEmpty
isNotEmpty
with isNotNullOrEmpty
Isn't required, but doing so as it seems the old functions are "deprecated" as of https://github.com/helm-unittest/helm-unittest/blob/main/CHANGELOG.md#032--2023-04-17, and the new names better describe their function anyway, and with that all tests pass on v0.4.4
❯ helm unittest -f 'tests/unit/*.yaml' .
### Chart [ stackstorm-ha ] .
PASS Custom Annotations tests/unit/custom_annotations_test.yaml
PASS DNS tests/unit/dns_test.yaml
PASS Environment Vars tests/unit/env_test.yaml
PASS Extra Volumes tests/unit/extra_volumes_test.yaml
PASS Image Entrypoint tests/unit/image_entrypoint_test.yaml
PASS Image Pull tests/unit/image_pull_test.yaml
PASS Image tests/unit/image_test.yaml
PASS Ingress tests/unit/ingress_test.yaml
PASS Labels tests/unit/labels_test.yaml
PASS Overrides check tests/unit/overrides_test.yaml
PASS Packs Volumes tests/unit/packs_volumes_test.yaml
PASS Placement (NodeSelector Tolerations and Affinity) tests/unit/placement_test.yaml
PASS postStart scripts tests/unit/post_start_script_test.yaml
PASS Resources tests/unit/resources_test.yaml
PASS Secret files tests/unit/secrets_test.yaml
PASS Custom SecurityContext tests/unit/security_context_test.yaml
PASS ServiceAccount tests/unit/service_account_test.yaml
PASS Services tests/unit/services_test.yaml
PASS Config files tests/unit/st2_conf_files_test.yaml
PASS Sensors tests/unit/st2sensors_test.yaml
Charts: 1 passed, 1 total
Test Suites: 20 passed, 20 total
Tests: 98 passed, 98 total
Snapshot: 0 passed, 0 total
Time: 5m28.909784541s
❯ helm plugin list
NAME VERSION DESCRIPTION
unittest 0.4.4 Unit test for helm chart in YAML with ease to keep your chart functional and robust.
Furthermore, removing the tests impacted by the bug in v0.5.0
and trying, all those tests also pass!
❯ rm tests/unit/overrides_test.yaml
❯ helm unittest -f 'tests/unit/*.yaml' .
### Chart [ stackstorm-ha ] .
PASS Custom Annotations tests/unit/custom_annotations_test.yaml
PASS DNS tests/unit/dns_test.yaml
PASS Environment Vars tests/unit/env_test.yaml
PASS Extra Volumes tests/unit/extra_volumes_test.yaml
PASS Image Entrypoint tests/unit/image_entrypoint_test.yaml
PASS Image Pull tests/unit/image_pull_test.yaml
PASS Image tests/unit/image_test.yaml
PASS Ingress tests/unit/ingress_test.yaml
PASS Labels tests/unit/labels_test.yaml
PASS Packs Volumes tests/unit/packs_volumes_test.yaml
PASS Placement (NodeSelector Tolerations and Affinity) tests/unit/placement_test.yaml
PASS postStart scripts tests/unit/post_start_script_test.yaml
PASS Resources tests/unit/resources_test.yaml
PASS Secret files tests/unit/secrets_test.yaml
PASS Custom SecurityContext tests/unit/security_context_test.yaml
PASS ServiceAccount tests/unit/service_account_test.yaml
PASS Services tests/unit/services_test.yaml
PASS Config files tests/unit/st2_conf_files_test.yaml
PASS Sensors tests/unit/st2sensors_test.yaml
Charts: 1 passed, 1 total
Test Suites: 19 passed, 19 total
Tests: 96 passed, 96 total
Snapshot: 0 passed, 0 total
Time: 4m56.164148042s
❯ helm plugin list
NAME VERSION DESCRIPTION
unittest 0.5.0 Unit test for helm chart in YAML with ease to keep your chart functional and robust.
So i'll get a PR open now w/ the changes to support v0.4.4
and once the bug is patched in v0.5.0
we should be able to just bump straight to v0.5.x
@cognifloyd
@cognifloyd See https://github.com/StackStorm/stackstorm-k8s/pull/417 which should resolve this :)
The primary upstream for
helm-unittest
has moved fromquintush/helm-unittest
tohelm-unittest/helm-unittest
.So, we need to update these lines to refer to the helm-unittest org: https://github.com/StackStorm/stackstorm-k8s/blob/ef1ed634521cc17c2e907f56349b93f17ceae440/tests/README.md?plain=1#L7 https://github.com/StackStorm/stackstorm-k8s/blob/ef1ed634521cc17c2e907f56349b93f17ceae440/tests/README.md?plain=1#L14 https://github.com/StackStorm/stackstorm-k8s/blob/ef1ed634521cc17c2e907f56349b93f17ceae440/tests/README.md?plain=1#L25 https://github.com/StackStorm/stackstorm-k8s/blob/ef1ed634521cc17c2e907f56349b93f17ceae440/.github/workflows/unit.yaml#L38
And then we need to upgrade the version from
v0.2.11
to a newer release. It looks like0.4.4
is the latest as of 11 April 2024. https://github.com/helm-unittest/helm-unittest/releasesThere are several features in newer versions that look like they would allow us to simplify some of our tests, or make it possible to actually test things like the init containers. For example, v0.3.0 added jsonpath support. I hope that means we could replace the
documentIndex
with something that looks up the document based on something else, like the resource name. In any case, we should update the version ofhelm-unittest
as much as possible, and then we can refactor the test in follow-up PRs.Related to:
28