Commit 39524b60 authored by Hossein Pursultani's avatar Hossein Pursultani 🌴

Use HELM_NAMESPACE environment variable for tests

parent 7b1ec8a0
Pipeline #190440130 passed with stages
in 8 minutes and 39 seconds
......@@ -35,10 +35,14 @@ var _ = Describe("Template", func() {
When("Initialized", func() {
template := helm.NewTemplate("foo")
helmNamespace := os.Getenv("HELM_NAMESPACE")
if helmNamespace == "" {
helmNamespace = "default"
}
It("Must be empty and use default settings", func() {
Expect(template.ChartName()).To(Equal("foo"))
// Expect(template.Namespace()).To(Equal("default"))
Expect(template.Namespace()).To(Equal(helmNamespace))
Expect(template.ReleaseName()).To(Equal(helm.DefaultReleaseName))
Expect(template.HooksDisabled()).To(BeFalse())
Expect(template.Objects()).To(BeEmpty())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment