diff --git a/tests/affiliatedcertification/tests/affiliated_certification_helm_version.go b/tests/affiliatedcertification/tests/affiliated_certification_helm_version.go index 650a3cc37..4d68aa1f1 100644 --- a/tests/affiliatedcertification/tests/affiliated_certification_helm_version.go +++ b/tests/affiliatedcertification/tests/affiliated_certification_helm_version.go @@ -48,6 +48,14 @@ var _ = Describe("Affiliated-certification helm-version,", Serial, func() { Skip("helm does not exist please install it to run the test.") } + By("Check that helm version is v3") + cmd = exec.Command("/bin/bash", "-c", + "helm version --short | grep v3") + err = cmd.Run() + if err != nil { + Fail("Helm version is not v3") + } + By("Start test") err = globalhelper.LaunchTests( tsparams.TestHelmVersion, diff --git a/tests/affiliatedcertification/tests/affillated_certification_helm_chart.go b/tests/affiliatedcertification/tests/affillated_certification_helm_chart.go index 3f6055e51..ece6e99f8 100644 --- a/tests/affiliatedcertification/tests/affillated_certification_helm_chart.go +++ b/tests/affiliatedcertification/tests/affillated_certification_helm_chart.go @@ -34,7 +34,7 @@ var _ = Describe("Affiliated-certification helm chart certification,", Serial, f globalhelper.AfterEachCleanupWithRandomNamespace(randomNamespace, randomReportDir, randomTnfConfigDir, tsparams.Timeout) }) - It("One helm to test, are certified", func() { + FIt("One helm to test, are certified", func() { if globalhelper.IsKindCluster() { Skip("Skipping helm chart test on Kind cluster") } @@ -47,16 +47,24 @@ var _ = Describe("Affiliated-certification helm chart certification,", Serial, f Skip("helm does not exist please install it to run the test.") } + By("Check that helm version is v3") + cmd = exec.Command("/bin/bash", "-c", + "helm version --short | grep v3") + err = cmd.Run() + if err != nil { + Fail("Helm version is not v3") + } + By("Add openshift-helm-charts repo") cmd = exec.Command("/bin/bash", "-c", - "helm repo add openshift-helm-charts https://charts.openshift.io/ --force-update "+ + "helm repo add hashicorp https://helm.releases.hashicorp.com --force-update "+ "&& helm repo update") err = cmd.Run() Expect(err).ToNot(HaveOccurred(), "Error adding openshift-helm-carts repo") By("Install helm chart") cmd = exec.Command("/bin/bash", "-c", - "helm install example-vault1 openshift-helm-charts/hashicorp-vault -n "+randomNamespace) + "helm install example-vault1 hashicorp/vault -n "+randomNamespace) err = cmd.Run() Expect(err).ToNot(HaveOccurred(), "Error installing hashicorp-vault helm chart") @@ -108,6 +116,14 @@ var _ = Describe("Affiliated-certification helm chart certification,", Serial, f Skip("helm does not exist please install it to run the test.") } + By("Check that helm version is v3") + cmd = exec.Command("/bin/bash", "-c", + "helm version --short | grep v3") + err = cmd.Run() + if err != nil { + Fail("Helm version is not v3") + } + By("Create istio-system namespace") err = globalhelper.CreateNamespace("istio-system") Expect(err).ToNot(HaveOccurred(), "Error creating istio-system namespace")