From dcdcb5a46fbb614613f1e45c92e657b58f258f77 Mon Sep 17 00:00:00 2001 From: Nayana Hettiarachchi Date: Sun, 18 Sep 2022 14:42:14 +0700 Subject: [PATCH] #11375 fix broken tests due to change in output Signed-off-by: Nayana Hettiarachchi --- .../output/template-with-invalid-yaml-debug.txt | 12 +++++++++++- .../testdata/output/template-with-invalid-yaml.txt | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/cmd/helm/testdata/output/template-with-invalid-yaml-debug.txt b/cmd/helm/testdata/output/template-with-invalid-yaml-debug.txt index 909c543d3..e930a2598 100644 --- a/cmd/helm/testdata/output/template-with-invalid-yaml-debug.txt +++ b/cmd/helm/testdata/output/template-with-invalid-yaml-debug.txt @@ -10,4 +10,14 @@ spec: image: "alpine:3.9" command: ["/bin/sleep","9000"] invalid -Error: YAML parse error on chart-with-template-with-invalid-yaml/templates/alpine-pod.yaml: error converting YAML to JSON: yaml: line 11: could not find expected ':' +Error: YAML parse error on chart-with-template-with-invalid-yaml/templates/alpine-pod.yaml contents: + apiVersion: v1 +kind: Pod +metadata: + name: "release-name-my-alpine" +spec: + containers: + - name: waiter + image: "alpine:3.9" + command: ["/bin/sleep","9000"] +invalid: error converting YAML to JSON: yaml: line 11: could not find expected ':' diff --git a/cmd/helm/testdata/output/template-with-invalid-yaml.txt b/cmd/helm/testdata/output/template-with-invalid-yaml.txt index 687227b90..b2d20e8b8 100644 --- a/cmd/helm/testdata/output/template-with-invalid-yaml.txt +++ b/cmd/helm/testdata/output/template-with-invalid-yaml.txt @@ -1,3 +1,13 @@ -Error: YAML parse error on chart-with-template-with-invalid-yaml/templates/alpine-pod.yaml: error converting YAML to JSON: yaml: line 11: could not find expected ':' +Error: YAML parse error on chart-with-template-with-invalid-yaml/templates/alpine-pod.yaml contents: +apiVersion: v1 +kind: Pod +metadata: + name: "release-name-my-alpine" +spec: + containers: + - name: waiter + image: "alpine:3.9" + command: ["/bin/sleep","9000"] +invalid: error converting YAML to JSON: yaml: line 11: could not find expected ':' Use --debug flag to render out invalid YAML