fix: Set kind to Vanilla in ingress-nginx tests, so they pass.

This commit is contained in:
Brooks Beverstock 2024-01-24 17:07:35 -05:00
parent 5452d68f9b
commit aa8cfd1b2a
2 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,7 @@ tests:
- it: should create a DaemonSet if `controller.kind` is "DaemonSet" - it: should create a DaemonSet if `controller.kind` is "DaemonSet"
set: set:
controller.kind: DaemonSet controller.kind: DaemonSet
kind: Vanilla
asserts: asserts:
- hasDocuments: - hasDocuments:
count: 1 count: 1

View File

@ -4,6 +4,8 @@ templates:
tests: tests:
- it: should create a Deployment - it: should create a Deployment
set:
kind: Vanilla
asserts: asserts:
- hasDocuments: - hasDocuments:
count: 1 count: 1
@ -16,6 +18,7 @@ tests:
- it: should create a Deployment with 3 replicas if `controller.replicaCount` is 3 - it: should create a Deployment with 3 replicas if `controller.replicaCount` is 3
set: set:
controller.replicaCount: 3 controller.replicaCount: 3
kind: Vanilla
asserts: asserts:
- equal: - equal:
path: spec.replicas path: spec.replicas
@ -25,6 +28,7 @@ tests:
set: set:
controller.resources.limits.cpu: 500m controller.resources.limits.cpu: 500m
controller.resources.limits.memory: 512Mi controller.resources.limits.memory: 512Mi
kind: Vanilla
asserts: asserts:
- equal: - equal:
path: spec.template.spec.containers[0].resources.limits.cpu path: spec.template.spec.containers[0].resources.limits.cpu