From 98989efde14e86b077e52d49894c6f95eb4da150 Mon Sep 17 00:00:00 2001 From: saumil Macwan Date: Tue, 25 Jun 2024 07:36:58 -0400 Subject: [PATCH] fix: update test --- .../__snapshot__/broker_deployment_test.yaml.snap | 3 +++ charts/snyk-broker/tests/broker_deployment_test.yaml | 11 ++--------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/charts/snyk-broker/tests/__snapshot__/broker_deployment_test.yaml.snap b/charts/snyk-broker/tests/__snapshot__/broker_deployment_test.yaml.snap index cee7abc..beb2317 100644 --- a/charts/snyk-broker/tests/__snapshot__/broker_deployment_test.yaml.snap +++ b/charts/snyk-broker/tests/__snapshot__/broker_deployment_test.yaml.snap @@ -719,6 +719,7 @@ handles duplicative labels: app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: snyk-broker-RELEASE-NAME helm.sh/chart: snyk-broker-0.0.0 + test: node1 name: github-com-broker-RELEASE-NAME namespace: NAMESPACE spec: @@ -817,6 +818,7 @@ handles duplicative labels: app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: snyk-broker-RELEASE-NAME helm.sh/chart: snyk-broker-0.0.0 + test: node1 name: github-com-broker-service-RELEASE-NAME namespace: NAMESPACE spec: @@ -844,6 +846,7 @@ handles duplicative labels: app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: snyk-broker-RELEASE-NAME helm.sh/chart: snyk-broker-0.0.0 + test: node1 name: snyk-broker-RELEASE-NAME namespace: NAMESPACE preflight checks off: diff --git a/charts/snyk-broker/tests/broker_deployment_test.yaml b/charts/snyk-broker/tests/broker_deployment_test.yaml index 89f459e..3fb0ccb 100644 --- a/charts/snyk-broker/tests/broker_deployment_test.yaml +++ b/charts/snyk-broker/tests/broker_deployment_test.yaml @@ -33,19 +33,12 @@ tests: - ./fixtures/default_values_ha_on_4_replicas.yaml asserts: - matchSnapshot: {} - - it: add deployment labels - values: - - ./fixtures/default_values.yaml - set: - labels: - test: node1 - asserts: - - matchSnapshot: {} - - it: handles duplicative labels + - it: handles duplicative labels and adds new labels values: - ./fixtures/default_values.yaml set: labels: app.kubernetes.io/name: "my duplicated label" + test: node1 asserts: - matchSnapshot: {}