mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
format test file
This commit is contained in:
parent
e4c87c20e2
commit
d564e730c9
@ -1446,16 +1446,16 @@ func TestReconcileLoadBalancer(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
testCases := []struct {
|
testCases := []struct {
|
||||||
desc string
|
desc string
|
||||||
service v1.Service
|
service v1.Service
|
||||||
loadBalancerSku string
|
loadBalancerSku string
|
||||||
preConfigLBType string
|
preConfigLBType string
|
||||||
loadBalancerResourceGroup string
|
loadBalancerResourceGroup string
|
||||||
disableOutboundSnat *bool
|
disableOutboundSnat *bool
|
||||||
wantLb bool
|
wantLb bool
|
||||||
existingLB network.LoadBalancer
|
existingLB network.LoadBalancer
|
||||||
expectedLB network.LoadBalancer
|
expectedLB network.LoadBalancer
|
||||||
expectedError error
|
expectedError error
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
desc: "reconcileLoadBalancer shall return the lb deeply equal to the existingLB if there's no " +
|
desc: "reconcileLoadBalancer shall return the lb deeply equal to the existingLB if there's no " +
|
||||||
@ -1535,14 +1535,14 @@ func TestReconcileLoadBalancer(t *testing.T) {
|
|||||||
expectedError: nil,
|
expectedError: nil,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
desc: "reconcileLoadBalancer in other resource group",
|
desc: "reconcileLoadBalancer in other resource group",
|
||||||
loadBalancerSku: "standard",
|
loadBalancerSku: "standard",
|
||||||
loadBalancerResourceGroup: "anotherRG",
|
loadBalancerResourceGroup: "anotherRG",
|
||||||
service: service8,
|
service: service8,
|
||||||
existingLB: lb8,
|
existingLB: lb8,
|
||||||
wantLb: true,
|
wantLb: true,
|
||||||
expectedLB: expectedLB8,
|
expectedLB: expectedLB8,
|
||||||
expectedError: nil,
|
expectedError: nil,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user