Skip to content

Commit ef558de

Browse files
committed
refactor: assert error when chart doesn't exist
1 parent e708b8f commit ef558de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/init_helm_promise_test.go

+5
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ var _ = Describe("init helm-promise", func() {
178178
HaveKey("gitRepository")))
179179
})
180180
})
181+
182+
It("errors when it cannot locate the chart", func() {
183+
session := withExitCode(1).run("init", "helm-promise", "--chart-url", "oci://registry-1.docker.io/bitnamicharts/vault", "--chart-version", "200", "redis", "--group", "syntasso.io", "--kind", "Database")
184+
Expect(session.Err).To(gbytes.Say("failed to fetch helm chart"))
185+
})
181186
})
182187
})
183188

0 commit comments

Comments
 (0)