mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-17 09:49:13 +00:00
Add tests for reading json
This commit is contained in:
@@ -298,6 +298,25 @@ metadata:
|
||||
OmitReaderAnnotations: true,
|
||||
SetAnnotations: map[string]string{"foo": "bar"}},
|
||||
},
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
{
|
||||
name: "json",
|
||||
input: `
|
||||
{
|
||||
"a": "b",
|
||||
"c": [1, 2]
|
||||
}
|
||||
`,
|
||||
expectedItems: []string{
|
||||
`
|
||||
{"a": "b", "c": [1, 2], metadata: {annotations: {config.kubernetes.io/index: '0'}}}
|
||||
`,
|
||||
},
|
||||
instance: ByteReader{},
|
||||
},
|
||||
}
|
||||
|
||||
for i := range testCases {
|
||||
|
||||
Reference in New Issue
Block a user