Skip to content

Commit

Permalink
Fix webhook tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aalexand committed Feb 7, 2024
1 parent 010424b commit 84d4040
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/client/webhook/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"fmt"
configv1 "github.com/adobe/cluster-registry/pkg/api/config/v1"
registryv1 "github.com/adobe/cluster-registry/pkg/api/registry/v1"
"github.com/adobe/cluster-registry/pkg/client/controllers"
monitoring "github.com/adobe/cluster-registry/pkg/monitoring/client"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -226,12 +225,6 @@ var _ = Describe("Webhook Server", func() {
updatedCluster := &registryv1.Cluster{}
Eventually(func() bool {
err := k8sClient.Get(ctx, clusterLookupKey, updatedCluster)
if updatedCluster.Annotations[controllers.HashAnnotation] == "" {
return false
}
if updatedCluster.Spec.APIServer.CertificateAuthorityData != CAData {
return false
}
return err == nil
}, timeout, interval).Should(BeTrue())

Expand Down Expand Up @@ -269,7 +262,6 @@ var _ = Describe("Webhook Server", func() {
if err != nil {
return false
}
fmt.Println(updatedCluster.ObjectMeta.ResourceVersion)
return updatedCluster.Spec.Tags["my-tag"] == "off"
}, timeout, interval).Should(BeTrue())

Expand Down

0 comments on commit 84d4040

Please sign in to comment.