tests: test autofixing files with comments between fields

This commit is contained in:
Vlad Klokun
2023-01-10 19:43:25 +02:00
parent da3bc8e8ea
commit c448c97463
3 changed files with 48 additions and 0 deletions
+6
View File
@@ -132,6 +132,12 @@ func getTestCases() []indentationTestCase {
select(di==0).spec.securityContext.runAsRoot |= false`,
"hybrids/tc-02-01-expected.yaml",
},
{
"hybrids/tc-03-00-input-comments.yaml",
`del(select(di==0).spec.containers[0].securityContext) |
select(di==0).spec.securityContext.runAsRoot |= false`,
"hybrids/tc-03-01-expected.yaml",
},
}
return indentationTestCases