From 6d0225c18e1bbc0de75b6e2af8e2aea0c299d9b1 Mon Sep 17 00:00:00 2001 From: Reinhard Naegele Date: Fri, 14 Feb 2020 16:15:47 +0100 Subject: [PATCH] Create custom namespace before test Signed-off-by: Reinhard Naegele --- pkg/chart/integration_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/chart/integration_test.go b/pkg/chart/integration_test.go index 46d05646..330a40ba 100644 --- a/pkg/chart/integration_test.go +++ b/pkg/chart/integration_test.go @@ -76,6 +76,11 @@ func TestInstallChart(t *testing.T) { for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { ct := newTestingHelmIntegration(tc.cfg) + namespace := tc.cfg.Namespace + if namespace != "" { + ct.kubectl.CreateNamespace(namespace) + defer ct.kubectl.DeleteNamespace(namespace) + } result := ct.InstallChart(mustNewChart(tc.chartDir)) if result.Error != tc.output.Error {