Skip to content

Commit

Permalink
Fix Helm tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thegridman committed Jul 10, 2024
1 parent 019e1f8 commit 8603099
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions test/e2e/helm/helm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"os"
"os/exec"
"sigs.k8s.io/controller-runtime/pkg/client"
"strings"
"testing"
"time"
Expand Down Expand Up @@ -162,17 +161,6 @@ func TestDisableJobCRD(t *testing.T) {

g.Expect(c.Args).NotTo(BeNil())
g.Expect(c.Args).Should(ContainElements("operator", "--enable-leader-election", "--install-job-crd=false"))

cohCrd := crdv1.CustomResourceDefinition{}
cohCrd.Name = "coherence.coherence.oracle.com"
err = testContext.Client.Get(goctx.TODO(), client.ObjectKey{Name: cohCrd.Name}, &cohCrd)
g.Expect(err).NotTo(HaveOccurred())

cohJobCrd := crdv1.CustomResourceDefinition{}
cohJobCrd.Name = "coherencejob.coherence.oracle.com"
err = testContext.Client.Get(goctx.TODO(), client.ObjectKey{Name: cohJobCrd.Name}, &cohJobCrd)
g.Expect(err).To(HaveOccurred())
g.Expect(errors.IsNotFound(err)).To(BeTrue())
}

func TestSetOnlySameNamespace(t *testing.T) {
Expand Down Expand Up @@ -930,7 +918,7 @@ func RemoveCRDs() error {

cohJobCrd := crdv1.CustomResourceDefinition{}
cohJobCrd.Name = "coherencejob.coherence.oracle.com"
err = testContext.Client.Delete(goctx.TODO(), &cohCrd)
err = testContext.Client.Delete(goctx.TODO(), &cohJobCrd)
if err != nil && !errors.IsNotFound(err) {
return err
}
Expand Down

0 comments on commit 8603099

Please sign in to comment.