add test case with representative example

Co-authored-by: Terry Howe <terrylhowe@gmail.com>
Signed-off-by: Marvin Rösch <marvinroesch99@gmail.com>
pull/31936/head
Marvin Rösch 7 months ago committed by GitHub
parent 506a93a6b3
commit 1c462c8dea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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",

Loading…
Cancel
Save