add a test case with integer key
@@ -169,6 +169,20 @@ spec:
kind: MyKind`)},
expected: []string{"apiVersion=apie...", "kind=Cust...", "metadata=map[...", "spec=map[..."},
},
+ {
+ description: "a manifest with non string key",
+ manifests: ManifestList{[]byte(`apiVersion: v1
+data:
+ 1973: \"test/myservice:1973\"
+kind: ConfigMap
+metadata:
+ labels:
+ app: myapp
+ chart: myapp-0.1.0
+ release: myapp
+ name: rel-nginx-ingress-tcp`)},
+ expected: []string{"apiVersion=v1", "kind=Conf...", "metadata=map[...", "data=map[..."},
+ },
}
for _, test := range tests {
testutil.Run(t, test.description, func(t *testutil.T) {
