Add helm unit tests #103
7 fail, 12 pass in 0s
Annotations
Check warning on line 0 in deployment
github-actions / helmtest
Should create a Deployment with the correct metadata (deployment) failed
results.xml [took 0s]
Raw output
Failed
- asserts[0] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: metadata.name
Expected to equal:
celery-beat
Actual:
nautobot
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-beat
+nautobot
DocumentIndex: 1
Path: metadata.name
Expected to equal:
celery-beat
Actual:
celery-worker
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-beat
+celery-worker
- asserts[1] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Error:
unknown path metadata.labels.app\.kubernetes\.io/component
DocumentIndex: 1
Error:
unknown path metadata.labels.app\.kubernetes\.io/component
DocumentIndex: 2
Error:
unknown path metadata.labels.app\.kubernetes\.io/component
- asserts[2] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Error:
unknown path metadata.labels.app\.kubernetes\.io/instance
DocumentIndex: 1
Error:
unknown path metadata.labels.app\.kubernetes\.io/instance
DocumentIndex: 2
Error:
unknown path metadata.labels.app\.kubernetes\.io/instance
- asserts[3] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Error:
unknown path metadata.labels.app\.kubernetes\.io/name
DocumentIndex: 1
Error:
unknown path metadata.labels.app\.kubernetes\.io/name
DocumentIndex: 2
Error:
unknown path metadata.labels.app\.kubernetes\.io/name
- asserts[4] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Error:
unknown path metadata.labels.app\.kubernetes\.io/part-of
DocumentIndex: 1
Error:
unknown path metadata.labels.app\.kubernetes\.io/part-of
DocumentIndex: 2
Error:
unknown path metadata.labels.app\.kubernetes\.io/part-of
Check warning on line 0 in deployment
github-actions / helmtest
Should have the correct selector labels (deployment) failed
results.xml [took 0s]
Raw output
Failed
- asserts[0] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Error:
unknown path spec.selector.matchLabels.app\.kubernetes\.io/component
DocumentIndex: 1
Error:
unknown path spec.selector.matchLabels.app\.kubernetes\.io/component
DocumentIndex: 2
Error:
unknown path spec.selector.matchLabels.app\.kubernetes\.io/component
- asserts[1] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Error:
unknown path spec.selector.matchLabels.app\.kubernetes\.io/instance
DocumentIndex: 1
Error:
unknown path spec.selector.matchLabels.app\.kubernetes\.io/instance
DocumentIndex: 2
Error:
unknown path spec.selector.matchLabels.app\.kubernetes\.io/instance
- asserts[2] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Error:
unknown path spec.selector.matchLabels.app\.kubernetes\.io/name
DocumentIndex: 1
Error:
unknown path spec.selector.matchLabels.app\.kubernetes\.io/name
DocumentIndex: 2
Error:
unknown path spec.selector.matchLabels.app\.kubernetes\.io/name
- asserts[3] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Error:
unknown path spec.selector.matchLabels.app\.kubernetes\.io/part-of
DocumentIndex: 1
Error:
unknown path spec.selector.matchLabels.app\.kubernetes\.io/part-of
DocumentIndex: 2
Error:
unknown path spec.selector.matchLabels.app\.kubernetes\.io/part-of
Check warning on line 0 in deployment
github-actions / helmtest
Should have the correct Pod template metadata (deployment) failed
results.xml [took 0s]
Raw output
Failed
- asserts[0] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.metadata.name
Expected to equal:
celery-beat
Actual:
nautobot
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-beat
+nautobot
DocumentIndex: 1
Path: spec.template.metadata.name
Expected to equal:
celery-beat
Actual:
celery-worker
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-beat
+celery-worker
- asserts[1] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Error:
unknown path spec.template.metadata.labels.app\.kubernetes\.io/component
DocumentIndex: 1
Error:
unknown path spec.template.metadata.labels.app\.kubernetes\.io/component
DocumentIndex: 2
Error:
unknown path spec.template.metadata.labels.app\.kubernetes\.io/component
- asserts[2] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Error:
unknown path spec.template.metadata.labels.app\.kubernetes\.io/instance
DocumentIndex: 1
Error:
unknown path spec.template.metadata.labels.app\.kubernetes\.io/instance
DocumentIndex: 2
Error:
unknown path spec.template.metadata.labels.app\.kubernetes\.io/instance
- asserts[3] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Error:
unknown path spec.template.metadata.labels.app\.kubernetes\.io/name
DocumentIndex: 1
Error:
unknown path spec.template.metadata.labels.app\.kubernetes\.io/name
DocumentIndex: 2
Error:
unknown path spec.template.metadata.labels.app\.kubernetes\.io/name
- asserts[4] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Error:
unknown path spec.template.metadata.labels.app\.kubernetes\.io/part-of
DocumentIndex: 1
Error:
unknown path spec.template.metadata.labels.app\.kubernetes\.io/part-of
DocumentIndex: 2
Error:
unknown path spec.template.metadata.labels.app\.kubernetes\.io/part-of
Check warning on line 0 in deployment
github-actions / helmtest
Should create the init container with correct settings (deployment) failed
results.xml [took 0s]
Raw output
Failed
- asserts[0] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.initContainers[0].name
Expected to equal:
celery-beat-init
Actual:
nautobot-init
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-beat-init
+nautobot-init
DocumentIndex: 1
Path: spec.template.spec.initContainers[0].name
Expected to equal:
celery-beat-init
Actual:
celery-worker-init
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-beat-init
+celery-worker-init
- asserts[1] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.initContainers[0].image
Expected to equal:
ghcr.io/edwardtheharris/helm-nautobot/celery:0.0.1.rc30
Actual:
ghcr.io/edwardtheharris/helm-nautobot/nautobot:0.0.1.rc30
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-ghcr.io/edwardtheharris/helm-nautobot/celery:0.0.1.rc30
+ghcr.io/edwardtheharris/helm-nautobot/nautobot:0.0.1.rc30
- asserts[2] `equal` fail
- asserts[3] `equal` fail
- asserts[4] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.initContainers[0].args[0]
Expected to equal:
cat /opt/.celery/init.sh > /bin/init.sh && chmod +x /bin/init.sh && /bin/init.sh
Actual:
cat /opt/.nautobot/init.sh > /bin/init.sh && chmod +x /bin/init.sh && /bin/init.sh
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-cat /opt/.celery/init.sh > /bin/init.sh && chmod +x /bin/init.sh && /bin/init.sh
+cat /opt/.nautobot/init.sh > /bin/init.sh && chmod +x /bin/init.sh && /bin/init.sh
Check warning on line 0 in deployment
github-actions / helmtest
Should create the main container with correct settings (deployment) failed
results.xml [took 0s]
Raw output
Failed
- asserts[0] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.containers[0].name
Expected to equal:
celery-beat
Actual:
nautobot
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-beat
+nautobot
DocumentIndex: 1
Path: spec.template.spec.containers[0].name
Expected to equal:
celery-beat
Actual:
celery-worker
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-beat
+celery-worker
- asserts[1] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.containers[0].image
Expected to equal:
ghcr.io/edwardtheharris/helm-nautobot/celery:0.0.1.rc30
Actual:
ghcr.io/edwardtheharris/helm-nautobot/nautobot:0.0.1.rc30
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-ghcr.io/edwardtheharris/helm-nautobot/celery:0.0.1.rc30
+ghcr.io/edwardtheharris/helm-nautobot/nautobot:0.0.1.rc30
- asserts[2] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.containers[0].command[0]
Expected to equal:
/bin/bash
Actual:
tail
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-/bin/bash
+tail
- asserts[3] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.containers[0].command[1]
Expected to equal:
-c
Actual:
-f
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
--c
+-f
- asserts[4] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Error:
unknown path spec.template.spec.containers[0].args[0]
DocumentIndex: 1
Path: spec.template.spec.containers[0].args[0]
Expected to equal:
apk add --no-cache sudo && sudo -E -u celery /opt/celery/bin/nautobot-server celery beat --loglevel DEBUG
Actual:
apk add --no-cache sudo && sudo -E -u celery /opt/celery/bin/nautobot-server celery worker --loglevel DEBUG --queues celery-default,default,default-celery,jobs,tasks
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-apk add --no-cache sudo && sudo -E -u celery /opt/celery/bin/nautobot-server celery beat --loglevel DEBUG
+apk add --no-cache sudo && sudo -E -u celery /opt/celery/bin/nautobot-server celery worker --loglevel DEBUG --queues celery-default,default,default-celery,jobs,tasks
- asserts[5] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.containers[0].ports[0].containerPort
Expected to equal:
5672
Actual:
8000
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-5672
+8000
DocumentIndex: 1
Path: spec.template.spec.containers[0].ports[0].containerPort
Expected to equal:
5672
Actual:
5673
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-5672
+5673
- asserts[6] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.containers[0].ports[0].name
Expected to equal:
celery-beat
Actual:
nautobot
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-beat
+nautobot
DocumentIndex: 1
Path: spec.template.spec.containers[0].ports[0].name
Expected to equal:
celery-beat
Actual:
celery
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-beat
+celery
Check warning on line 0 in deployment
github-actions / helmtest
Should create the volumes and volumeMounts correctly (deployment) failed
results.xml [took 0s]
Raw output
Failed
- asserts[0] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.volumes[0].name
Expected to equal:
celery-config
Actual:
nautobot-config
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-config
+nautobot-config
- asserts[1] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.volumes[0].configMap.name
Expected to equal:
celery-config
Actual:
nautobot-config
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-config
+nautobot-config
- asserts[2] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.volumes[1].name
Expected to equal:
celery-beat
Actual:
nautobot-pvc
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-beat
+nautobot-pvc
DocumentIndex: 1
Path: spec.template.spec.volumes[1].name
Expected to equal:
celery-beat
Actual:
celery-worker
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-beat
+celery-worker
- asserts[3] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.volumes[1].persistentVolumeClaim.claimName
Expected to equal:
celery-beat
Actual:
nautobot-pvc
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-beat
+nautobot-pvc
DocumentIndex: 1
Path: spec.template.spec.volumes[1].persistentVolumeClaim.claimName
Expected to equal:
celery-beat
Actual:
celery-worker
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-beat
+celery-worker
- asserts[4] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.containers[0].volumeMounts[0].name
Expected to equal:
celery-beat
Actual:
nautobot-pvc
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-beat
+nautobot-pvc
DocumentIndex: 1
Path: spec.template.spec.containers[0].volumeMounts[0].name
Expected to equal:
celery-beat
Actual:
celery-worker
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-beat
+celery-worker
- asserts[5] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.containers[0].volumeMounts[0].mountPath
Expected to equal:
/opt/
Actual:
/opt
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-/opt/
+/opt
- asserts[6] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.containers[0].volumeMounts[0].subPath
Expected to equal:
celery
Actual:
nautobot
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery
+nautobot
- asserts[7] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.containers[0].volumeMounts[1].name
Expected to equal:
celery-config
Actual:
nautobot-config
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-celery-config
+nautobot-config
- asserts[8] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.containers[0].volumeMounts[1].mountPath
Expected to equal:
/opt/.celery
Actual:
/opt
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-/opt/.celery
+/opt
Check warning on line 0 in deployment
github-actions / helmtest
Should set environment variables correctly (deployment) failed
results.xml [took 0s]
Raw output
Failed
- asserts[0] `equal` fail
- asserts[1] `equal` fail
- asserts[2] `equal` fail
- asserts[3] `equal` fail
- asserts[4] `equal` fail
- asserts[5] `equal` fail
- asserts[6] `equal` fail
- asserts[7] `equal` fail
- asserts[8] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.containers[0].env[12].name
Expected to equal:
NAUTOBOT_SUPERUSER_USERNAME
Actual:
NAUTOBOT_DB_PORT
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-NAUTOBOT_SUPERUSER_USERNAME
+NAUTOBOT_DB_PORT
DocumentIndex: 1
Path: spec.template.spec.containers[0].env[12].name
Expected to equal:
NAUTOBOT_SUPERUSER_USERNAME
Actual:
NAUTOBOT_DB_PORT
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-NAUTOBOT_SUPERUSER_USERNAME
+NAUTOBOT_DB_PORT
DocumentIndex: 2
Path: spec.template.spec.containers[0].env[12].name
Expected to equal:
NAUTOBOT_SUPERUSER_USERNAME
Actual:
NAUTOBOT_DB_PORT
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-NAUTOBOT_SUPERUSER_USERNAME
+NAUTOBOT_DB_PORT
- asserts[9] `equal` fail
Template: nautobot/templates/deployment.yaml
DocumentIndex: 0
Path: spec.template.spec.containers[0].env[12].value
Expected to equal:
""
Actual:
"5432"
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-""
+"5432"
DocumentIndex: 1
Path: spec.template.spec.containers[0].env[12].value
Expected to equal:
""
Actual:
"5432"
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-""
+"5432"
DocumentIndex: 2
Path: spec.template.spec.containers[0].env[12].value
Expected to equal:
""
Actual:
"5432"
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-""
+"5432"