From b9c9bdd8507a9150f7d2254602c50e6b4ba886a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=A9o=20M=C3=A9vollon?= Date: Wed, 2 Aug 2023 12:22:47 +0200 Subject: [PATCH] fix: do not snapshot metadata --- .../tests/__snapshot__/pgweb_test.yaml.snap | 18 ++++++------------ charts/pgweb/tests/pgweb_test.yaml | 10 ++++++++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/charts/pgweb/tests/__snapshot__/pgweb_test.yaml.snap b/charts/pgweb/tests/__snapshot__/pgweb_test.yaml.snap index 2e18d10..9359ca3 100644 --- a/charts/pgweb/tests/__snapshot__/pgweb_test.yaml.snap +++ b/charts/pgweb/tests/__snapshot__/pgweb_test.yaml.snap @@ -40,12 +40,9 @@ should render default: component: pgweb type: ClusterIP 3: | - labels: - app.kubernetes.io/instance: RELEASE-NAME - app.kubernetes.io/managed-by: Helm - app.kubernetes.io/name: pgweb - helm.sh/chart: pgweb-1.9.4 - name: RELEASE-NAME-pgweb + RELEASE-NAME-pgweb + 4: | + ServiceAccount should render with HPA: 1: | selector: @@ -99,12 +96,9 @@ should render with HPA: kind: Deployment name: pgweb 4: | - labels: - app.kubernetes.io/instance: RELEASE-NAME - app.kubernetes.io/managed-by: Helm - app.kubernetes.io/name: pgweb - helm.sh/chart: pgweb-1.9.4 - name: RELEASE-NAME-pgweb + RELEASE-NAME-pgweb + 5: | + ServiceAccount should render with ingress: 1: | rules: diff --git a/charts/pgweb/tests/pgweb_test.yaml b/charts/pgweb/tests/pgweb_test.yaml index f2500d8..6ef255e 100644 --- a/charts/pgweb/tests/pgweb_test.yaml +++ b/charts/pgweb/tests/pgweb_test.yaml @@ -17,7 +17,10 @@ tests: count: 0 - template: "serviceaccount.yaml" matchSnapshot: - path: metadata + path: metadata.name + - template: "serviceaccount.yaml" + matchSnapshot: + path: kind - it: should render with HPA values: - values-hpa.yaml @@ -39,7 +42,10 @@ tests: path: spec - template: "serviceaccount.yaml" matchSnapshot: - path: metadata + path: metadata.name + - template: "serviceaccount.yaml" + matchSnapshot: + path: kind - it: should render with ingress values: - values-ingress.yaml