Skip to content

Commit

Permalink
Fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rizwana777 committed Sep 21, 2023
1 parent b97f576 commit 4d335ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests-e2e/appstudio/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,9 @@ var _ = Describe("Webhook E2E tests", func() {
Expect(err).ToNot(Succeed())
Expect(strings.Contains(err.Error(), fmt.Sprintf(err.Error()+": API URL must be an absolute URL starting with an 'https' scheme "))).To(BeTrue())

By("Create Environment CR with valid KubernetesClusterCredentials API URL")
environment.Spec.UnstableConfigurationFields.KubernetesClusterCredentials.APIURL = "https://api-url.com"
err = k8s.Update(&environment, k8sClient)
err = k8s.Create(&environment, k8sClient)
Expect(err).To(Succeed())

By("Validate Environment KubernetesClusterCredentials API URL while updating")
Expand Down

0 comments on commit 4d335ef

Please sign in to comment.