Skip to content

Commit

Permalink
add some more By() to the loadbalancer name
Browse files Browse the repository at this point in the history
  • Loading branch information
nawazkh committed Dec 8, 2024
1 parent 6e82326 commit 201e3ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/azure_apiserver_ilb.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/dynamic"
"k8s.io/client-go/tools/clientcmd"
Expand All @@ -42,7 +41,6 @@ import (
infrav1 "sigs.k8s.io/cluster-api-provider-azure/api/v1beta1"
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
"sigs.k8s.io/cluster-api/test/framework"
"sigs.k8s.io/controller-runtime/pkg/client"
"strings"
)

Expand Down Expand Up @@ -92,9 +90,11 @@ func AzureAPIServerILBSpec(ctx context.Context, inputGetter func() AzureAPIServe
return false, err
}

By("3.1. Verifying the Azure API Server Internal Load Balancer is the right one created")
internalLoadbalancer := resp.LoadBalancer
Expect(ptr.Deref(internalLoadbalancer.Name, "")).To(Equal(internalLoadbalancerName))

By("3.2. Verifying the Azure API Server Internal Load Balancer is in a succeeded state")
switch ptr.Deref(internalLoadbalancer.Properties.ProvisioningState, "") {
case armnetwork.ProvisioningStateSucceeded:
return true, nil
Expand Down

0 comments on commit 201e3ce

Please sign in to comment.