Skip to content

Commit

Permalink
Create custom namespace before test
Browse files Browse the repository at this point in the history
Signed-off-by: Reinhard Naegele <[email protected]>
  • Loading branch information
unguiculus committed Feb 14, 2020
1 parent bc18480 commit 6d0225c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/chart/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6d0225c

Please sign in to comment.