Add group and verison to fix test.

This commit is contained in:
Eyob Tefera
2020-08-05 22:03:12 +00:00
parent 43b0f2d925
commit b3f147d012

View File

@@ -346,20 +346,24 @@ func TestFixOutdatedPatchesFieldTitle(t *testing.T) {
patchesJson6902:
- path: patch1.yaml
target:
kind: Deployment
kind: Service
- path: patch2.yaml
target:
kind: Service
group: apps
kind: Deployment
version: v1
`)
expected := []byte(`
patches:
- path: patch1.yaml
target:
kind: Deployment
kind: Service
- path: patch2.yaml
target:
kind: Service
group: apps
kind: Deployment
version: v1
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
`)