fix affected kyaml tests

This commit is contained in:
Natasha Sarkar
2021-06-30 10:05:23 -07:00
committed by Katrina Verey
parent 4b66043735
commit 3ab0665c19
18 changed files with 19 additions and 33 deletions

View File

@@ -223,12 +223,10 @@ func TestLocalPackageReader_Read_JSON(t *testing.T) {
if !assert.Len(t, nodes, 2) {
t.FailNow()
}
// TODO: Fix https://github.com/go-yaml/yaml/issues/44 so these are printed correctly
expected := []string{
`{"a": "b", metadata: {annotations: {config.kubernetes.io/index: '0', config.kubernetes.io/path: 'a_test.json'}}}
`,
`{"e": "f", "g": {"h": ["i", "j"]}, metadata: {annotations: {config.kubernetes.io/index: '0',
config.kubernetes.io/path: 'b_test.json'}}}
`{"e": "f", "g": {"h": ["i", "j"]}, metadata: {annotations: {config.kubernetes.io/index: '0', config.kubernetes.io/path: 'b_test.json'}}}
`,
}
for i := range nodes {