From aa8cfd1b2a0433282fd5c85b67cbddf09fdc7b1f Mon Sep 17 00:00:00 2001 From: Brooks Beverstock <603632+bmbeverst@users.noreply.github.com> Date: Wed, 24 Jan 2024 17:07:35 -0500 Subject: [PATCH] fix: Set kind to Vanilla in ingress-nginx tests, so they pass. --- .../tests/controller-daemonset_test.yaml | 1 + .../tests/controller-deployment_test.yaml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/build_system/charts/open-appsec-k8s-nginx-ingress/tests/controller-daemonset_test.yaml b/build_system/charts/open-appsec-k8s-nginx-ingress/tests/controller-daemonset_test.yaml index ac6f2d1..54f74ae 100644 --- a/build_system/charts/open-appsec-k8s-nginx-ingress/tests/controller-daemonset_test.yaml +++ b/build_system/charts/open-appsec-k8s-nginx-ingress/tests/controller-daemonset_test.yaml @@ -6,6 +6,7 @@ tests: - it: should create a DaemonSet if `controller.kind` is "DaemonSet" set: controller.kind: DaemonSet + kind: Vanilla asserts: - hasDocuments: count: 1 diff --git a/build_system/charts/open-appsec-k8s-nginx-ingress/tests/controller-deployment_test.yaml b/build_system/charts/open-appsec-k8s-nginx-ingress/tests/controller-deployment_test.yaml index 48b25f9..6b4d5ee 100644 --- a/build_system/charts/open-appsec-k8s-nginx-ingress/tests/controller-deployment_test.yaml +++ b/build_system/charts/open-appsec-k8s-nginx-ingress/tests/controller-deployment_test.yaml @@ -4,6 +4,8 @@ templates: tests: - it: should create a Deployment + set: + kind: Vanilla asserts: - hasDocuments: count: 1 @@ -16,6 +18,7 @@ tests: - it: should create a Deployment with 3 replicas if `controller.replicaCount` is 3 set: controller.replicaCount: 3 + kind: Vanilla asserts: - equal: path: spec.replicas @@ -25,6 +28,7 @@ tests: set: controller.resources.limits.cpu: 500m controller.resources.limits.memory: 512Mi + kind: Vanilla asserts: - equal: path: spec.template.spec.containers[0].resources.limits.cpu