| |
| ### Chart [ basic ] ../__fixtures__/v2/basic |
| |
| |
| FAIL test deployment that would be fail ../__fixtures__/v2/basic/tests_failed/deployment_test.yaml |
| - should fail all kinds of assertion |
| |
| - asserts[0] `equal` fail |
| |
| Template: basic/templates/deployment.yaml |
| DocumentIndex: 0 |
| Path: spec.template.spec.containers[0].image |
| Expected: |
| nginx:stable |
| Actual: |
| apache:latest |
| Diff: |
| --- Expected |
| +++ Actual |
| @@ -1,2 +1,2 @@ |
| -nginx:stable |
| +apache:latest |
| DocumentIndex: 1 |
| Path: spec.template.spec.containers[0].image |
| Expected: |
| nginx:stable |
| Actual: |
| apache:latest |
| Diff: |
| --- Expected |
| +++ Actual |
| @@ -1,2 +1,2 @@ |
| -nginx:stable |
| +apache:latest |
| |
| - asserts[1] `notEqual` fail |
| |
| Template: basic/templates/deployment.yaml |
| DocumentIndex: 0 |
| Path: spec.template.spec.containers[0].image |
| Expected NOT to equal: |
| apache:latest |
| DocumentIndex: 1 |
| Path: spec.template.spec.containers[0].image |
| Expected NOT to equal: |
| apache:latest |
| |
| - asserts[2] `matchRegex` fail |
| |
| Template: basic/templates/deployment.yaml |
| DocumentIndex: 0 |
| Path: metadata.name |
| Expected to match: ^.*-foobar$ |
| Actual: RELEASE-NAME-basic |
| DocumentIndex: 1 |
| Path: metadata.name |
| Expected to match: ^.*-foobar$ |
| Actual: RELEASE-NAME-basic-db |
| |
| - asserts[3] `notMatchRegex` fail |
| |
| Template: basic/templates/deployment.yaml |
| DocumentIndex: 0 |
| Path: metadata.name |
| Expected NOT to match: ^.*-basic$ |
| Actual: RELEASE-NAME-basic |
| |
| - asserts[4] `contains` fail |
| |
| Template: basic/templates/deployment.yaml |
| DocumentIndex: 0 |
| Path: spec.template.spec.containers[0].ports |
| Expected to contain: |
| - containerPort: 80 |
| Actual: |
| - containerPort: 8080 |
| DocumentIndex: 1 |
| Path: spec.template.spec.containers[0].ports |
| Expected to contain: |
| - containerPort: 80 |
| Actual: |
| - containerPort: null |
| |
| - asserts[5] `notContains` fail |
| |
| Template: basic/templates/deployment.yaml |
| DocumentIndex: 0 |
| Path: spec.template.spec.containers[0].ports |
| Expected NOT to contain: |
| - containerPort: 8080 |
| Actual: |
| - containerPort: 8080 |
| |
| - asserts[6] `isNull` fail |
| |
| Template: basic/templates/deployment.yaml |
| DocumentIndex: 0 |
| Path: spec.template |
| Expected to be null, got: |
| metadata: |
| labels: |
| app: basic |
| release: RELEASE-NAME |
| spec: |
| containers: |
| - image: apache:latest |
| imagePullPolicy: Always |
| livenessProbe: |
| httpGet: |
| path: / |
| port: 8080 |
| name: basic |
| ports: |
| - containerPort: 8080 |
| readinessProbe: |
| httpGet: |
| path: / |
| port: 8080 |
| resources: {} |
| DocumentIndex: 1 |
| Path: spec.template |
| Expected to be null, got: |
| metadata: |
| annotations: |
| some_template: | |
| --- |
| apiVersion: ... |
| this: is test for old separator workaround bug |
| labels: |
| app: basic |
| release: RELEASE-NAME |
| spec: |
| containers: |
| - image: apache:latest |
| imagePullPolicy: Always |
| name: basic |
| ports: |
| - containerPort: null |
| |
| - asserts[7] `isNotNull` fail |
| |
| Template: basic/templates/deployment.yaml |
| DocumentIndex: 0 |
| Path: spec.template.nodeSelector |
| Expected NOT to be null, got: |
| null |
| DocumentIndex: 1 |
| Path: spec.template.nodeSelector |
| Expected NOT to be null, got: |
| null |
| |
| - asserts[8] `isEmpty` fail |
| |
| Template: basic/templates/deployment.yaml |
| DocumentIndex: 0 |
| Path: spec.template.spec.containers[0] |
| Expected to be empty, got: |
| image: apache:latest |
| imagePullPolicy: Always |
| livenessProbe: |
| httpGet: |
| path: / |
| port: 8080 |
| name: basic |
| ports: |
| - containerPort: 8080 |
| readinessProbe: |
| httpGet: |
| path: / |
| port: 8080 |
| resources: {} |
| DocumentIndex: 1 |
| Path: spec.template.spec.containers[0] |
| Expected to be empty, got: |
| image: apache:latest |
| imagePullPolicy: Always |
| name: basic |
| ports: |
| - containerPort: null |
| |
| - asserts[9] `isNotEmpty` fail |
| |
| Template: basic/templates/deployment.yaml |
| DocumentIndex: 0 |
| Path: spec.template.spec.containers[0].resources |
| Expected NOT to be empty, got: |
| {} |
| DocumentIndex: 1 |
| Path: spec.template.spec.containers[0].resources |
| Expected NOT to be empty, got: |
| null |
| |
| - asserts[10] `isKind` fail |
| |
| Template: basic/templates/deployment.yaml |
| DocumentIndex: 0 |
| Expected kind: Pod |
| Actual: Deployment |
| DocumentIndex: 1 |
| Expected kind: Pod |
| Actual: Deployment |
| |
| - asserts[11] `isAPIVersion` fail |
| |
| Template: basic/templates/deployment.yaml |
| DocumentIndex: 0 |
| Expected apiVersion: v2 |
| Actual: extensions/v1beta1 |
| DocumentIndex: 1 |
| Expected apiVersion: v2 |
| Actual: extensions/v1beta1 |
| |
| - asserts[12] `hasDocuments` fail |
| |
| Template: basic/templates/deployment.yaml |
| Expected documents count: 1 |
| Actual: 2 |
| FAIL test ingress that should fail ../__fixtures__/v2/basic/tests_failed/ingress_test.yaml |
| - should fail render nothing if not enabled |
| |
| - asserts[0] `hasDocuments` fail |
| |
| Template: basic/templates/ingress.yaml |
| Expected documents count: 1 |
| Actual: 0 |
| |
| - should fail render ingress right if enabled |
| |
| - asserts[0] `contains` fail |
| |
| Template: basic/templates/ingress.yaml |
| DocumentIndex: 0 |
| Path: spec.rules[0].http.paths |
| Expected to contain: |
| - backend: |
| serviceName: my-release-basic |
| servicePort: 54321 |
| path: / |
| Actual: |
| - backend: |
| serviceName: my-release-basic |
| servicePort: 12345 |
| path: / |
| |
| - asserts[1] `isNotNull` fail |
| |
| Template: basic/templates/ingress.yaml |
| DocumentIndex: 0 |
| Path: spec.tls |
| Expected NOT to be null, got: |
| null |
| |
| - should fail set annotations if given |
| |
| - asserts[0] `isEmpty` fail |
| |
| Template: basic/templates/ingress.yaml |
| DocumentIndex: 0 |
| Path: metadata.annotations |
| Expected to be empty, got: |
| ingress.kubernetes.io/rewrite-target: / |
| kubernetes.io/ingress.class: nginx |
| kubernetes.io/tls-acme: "true" |
| |
| - should fail set tls if given |
| |
| - asserts[0] `equal` fail |
| |
| Template: basic/templates/ingress.yaml |
| DocumentIndex: 0 |
| Path: spec.tls |
| Expected: |
| - secretName: my-tls-secret |
| Actual: |
| null |
| Diff: |
| --- Expected |
| +++ Actual |
| @@ -1,2 +1,2 @@ |
| -- secretName: my-tls-secret |
| +null |
| FAIL test notes ../__fixtures__/v2/basic/tests_failed/notes_test.yaml |
| - should pass the notes file with ingress enabled |
| |
| - asserts[0] `notEqualRaw` fail |
| |
| Template: basic/templates/NOTES.txt |
| Expected NOT to equal: |
| | |
| 1. Get the application URL by running these commands: |
| http://chart-example.local |
| |
| - should pass the notes file with service type LoadBalancer |
| |
| - asserts[0] `matchRegexRaw` fail |
| |
| Template: basic/templates/NOTES.txt |
| Expected to match: http:///$SERVICE_IP:80 |
| Actual: 1. Get the application URL by running these commands: |
| NOTE: It may take a few minutes for the LoadBalancer IP to be available. |
| You can watch the status of by running 'kubectl get svc -w RELEASE-NAME-basic' |
| export SERVICE_IP=$(kubectl get svc --namespace NAMESPACE RELEASE-NAME-basic -o jsonpath='{.status.loadBalancer.ingress[0].ip}') |
| echo http://$SERVICE_IP:9999 |
| FAIL test service ../__fixtures__/v2/basic/tests_failed/service_test.yaml |
| - should failed |
| |
| - asserts[0] `notContains` fail |
| |
| Template: basic/templates/service.yaml |
| DocumentIndex: 0 |
| Path: spec.ports |
| Expected NOT to contain: |
| - name: nginx |
| port: 80 |
| protocol: TCP |
| targetPort: 80 |
| Actual: |
| - name: nginx |
| port: 80 |
| protocol: TCP |
| targetPort: 80 |
| |
| - asserts[1] `notEqual` fail |
| |
| Template: basic/templates/service.yaml |
| DocumentIndex: 0 |
| Path: spec.type |
| Expected NOT to equal: |
| ClusterIP |
| |
| - asserts[2] `notEqual` fail |
| |
| Template: basic/templates/service.yaml |
| DocumentIndex: 0 |
| Path: spec.selector |
| Expected NOT to equal: |
| app: basic |
| release: my-release |
| |
| - should fail renders right if values given |
| |
| - asserts[0] `notContains` fail |
| |
| Template: basic/templates/service.yaml |
| DocumentIndex: 0 |
| Path: spec.ports |
| Expected NOT to contain: |
| - name: cool-service |
| port: 4321 |
| protocol: TCP |
| targetPort: 1234 |
| Actual: |
| - name: cool-service |
| port: 4321 |
| protocol: TCP |
| targetPort: 1234 |
| |
| - asserts[1] `notEqual` fail |
| |
| Template: basic/templates/service.yaml |
| DocumentIndex: 0 |
| Path: spec.type |
| Expected NOT to equal: |
| NodePort |
| |
| |
| |
| Charts: 1 failed, 0 passed, 1 total |
| Test Suites: 4 failed, 0 passed, 4 total |
| Tests: 9 failed, 1 passed, 10 total |
| Snapshot: 2 passed, 2 total |
| Time: XX.XXXms |
| |
| |