Skip to content

Commit

Permalink
Unit test improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
vr4manta committed Mar 1, 2024
1 parent 59eb4cf commit 703e540
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 62 deletions.
4 changes: 2 additions & 2 deletions pkg/webhooks/controlplanemachineset/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ var _ = BeforeSuite(func() {
Expect(err).NotTo(HaveOccurred())
Expect(k8sClient).NotTo(BeNil())

// infrastructure := configv1builder.Infrastructure().AsAWS("cluster", "us-east-1").WithName("cluster").Build()
// Expect(k8sClient.Create(ctx, infrastructure)).To(Succeed())
// infrastructure := configv1builder.Infrastructure().AsAWS("cluster", "us-east-1").WithName("cluster").Build()
// Expect(k8sClient.Create(ctx, infrastructure)).To(Succeed())

// CEL requires Kube 1.25 and above, so check for the minimum server version.
discoveryClient, err := discovery.NewDiscoveryClientForConfig(cfg)
Expand Down

0 comments on commit 703e540

Please sign in to comment.