From b3f147d0123d6c05fa8daaa0032e5d5e2ac3af7c Mon Sep 17 00:00:00 2001 From: Eyob Tefera Date: Wed, 5 Aug 2020 22:03:12 +0000 Subject: [PATCH] Add group and verison to fix test. --- .../commands/kustfile/kustomizationfile_test.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/kustomize/internal/commands/kustfile/kustomizationfile_test.go b/kustomize/internal/commands/kustfile/kustomizationfile_test.go index c5135b807..1a996df83 100644 --- a/kustomize/internal/commands/kustfile/kustomizationfile_test.go +++ b/kustomize/internal/commands/kustfile/kustomizationfile_test.go @@ -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 `)