From 4e45af626518f48b3a4842dc7e8ce67a08f77ea8 Mon Sep 17 00:00:00 2001 From: Jeff Regan Date: Thu, 10 Oct 2019 13:16:45 -0700 Subject: [PATCH] Update complexcomposition_test.go --- pkg/target/complexcomposition_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/target/complexcomposition_test.go b/pkg/target/complexcomposition_test.go index a8fdb78ee..d2aa8fcb8 100644 --- a/pkg/target/complexcomposition_test.go +++ b/pkg/target/complexcomposition_test.go @@ -72,7 +72,7 @@ spec: `) } -func writeConfigOverlay(th *kusttest_test.KustTestHarness) { +func writeConfigFromEnvOverlay(th *kusttest_test.KustTestHarness) { th.WriteK("/app/config", ` resources: - ../base @@ -140,9 +140,9 @@ patchesJson6902: `) } -func writePatchConfig(th *kusttest_test.KustTestHarness) { +func writePatchingOverlays(th *kusttest_test.KustTestHarness) { writeStorageOverlay(th) - writeConfigOverlay(th) + writeConfigFromEnvOverlay(th) writeTolerationsOverlay(th) writeHTTPSOverlay(th) } @@ -185,7 +185,7 @@ func writePatchConfig(th *kusttest_test.KustTestHarness) { func TestComplexComposition_Dev_Failure(t *testing.T) { th := kusttest_test.NewKustTestHarness(t, "/app/dev") writeStatefulSetBase(th) - writePatchConfig(th) + writePatchingOverlays(th) th.WriteK("/app/dev", ` resources: - ../storage @@ -239,7 +239,7 @@ spec: func TestComplexComposition_Prod_Failure(t *testing.T) { th := kusttest_test.NewKustTestHarness(t, "/app/prod") writeStatefulSetBase(th) - writePatchConfig(th) + writePatchingOverlays(th) th.WriteK("/app/prod", ` resources: