From 1c462c8dea3e8c2935286a0b6e8a1a03572b7335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20R=C3=B6sch?= Date: Fri, 13 Mar 2026 13:36:10 +0100 Subject: [PATCH] add test case with representative example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Terry Howe Signed-off-by: Marvin Rösch --- pkg/action/action_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/action/action_test.go b/pkg/action/action_test.go index d3adf0a45..d52a76482 100644 --- a/pkg/action/action_test.go +++ b/pkg/action/action_test.go @@ -459,6 +459,11 @@ func TestFixDocSeparators(t *testing.T) { input: "data:\n key: ---------value\n", expected: "data:\n key: ---------value\n", }, + { + name: "block scalar with dashes in quoted string", + input: "---\napiVersion: v1\nkind: ConfigMap\ndata:\n script.sh: |\n echo \"------------------------------------\"\n", + expected: "---\napiVersion: v1\nkind: ConfigMap\ndata:\n script.sh: |\n echo \"------------------------------------\"\n", + }, { name: "realistic multi-doc template output", input: "apiVersion: v1\nkind: Deployment\n---\napiVersion: v1\nkind: Ingress\n---apiVersion: v1\nkind: Service\n",