From 729544b9f44b2892eae9d6330a94ce2983dec6cd Mon Sep 17 00:00:00 2001 From: Paul Kent Date: Sat, 25 Jul 2020 15:37:07 -0400 Subject: [PATCH] adds test for issue 2767 --- .../patchtransformer/PatchTransformer_test.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/plugin/builtin/patchtransformer/PatchTransformer_test.go b/plugin/builtin/patchtransformer/PatchTransformer_test.go index ddfd744e4..8f61c4c71 100644 --- a/plugin/builtin/patchtransformer/PatchTransformer_test.go +++ b/plugin/builtin/patchtransformer/PatchTransformer_test.go @@ -637,6 +637,7 @@ spec: `) } +// test for https://github.com/kubernetes-sigs/kustomize/issues/2767 const aDeploymentResource = `apiVersion: apps/v1 kind: Deployment metadata: @@ -656,19 +657,12 @@ spec: protocol: TCP ` +// currently documents broken state. resulting ports: should have both +// take-over-the-world and disappearing-act on 8080 func TestPatchTransformerSimilarArrays(t *testing.T) { th := kusttest_test.MakeEnhancedHarness(t). PrepBuiltin("PatchTransformer") defer th.Reset() - th.WriteF("patch.yaml", ` -- op: add - path: /spec/rules/0/http/paths/- - value: - path: '/canada' - backend: - serviceName: hoser - servicePort: 7703 -`) th.RunTransformerAndCheckResult(` apiVersion: builtin