File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ func Test_buildFrontendNlbSubnetMappings(t *testing.T) {
215
215
216
216
type expectedMapping struct {
217
217
SubnetID string
218
- AllocationID * string // pointer to string for EIP allocation ID
218
+ AllocationID * string
219
219
}
220
220
221
221
tests := []struct {
@@ -299,7 +299,7 @@ func Test_buildFrontendNlbSubnetMappings(t *testing.T) {
299
299
},
300
300
},
301
301
},
302
- scheme : elbv2 .LoadBalancerSchemeInternetFacing , // EIPs require internet-facing
302
+ scheme : elbv2 .LoadBalancerSchemeInternetFacing ,
303
303
},
304
304
wantMappings : []expectedMapping {
305
305
{SubnetID : "subnet-1" , AllocationID : awssdk .String ("eip-1" )},
@@ -357,7 +357,7 @@ func Test_buildFrontendNlbSubnetMappings(t *testing.T) {
357
357
},
358
358
},
359
359
},
360
- scheme : elbv2 .LoadBalancerSchemeInternal , // EIPs not allowed for internal scheme
360
+ scheme : elbv2 .LoadBalancerSchemeInternal ,
361
361
},
362
362
wantMappings : nil ,
363
363
wantErr : "EIP allocations can only be set for internet facing load balancers" ,
You can’t perform that action at this time.
0 commit comments