File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ func TestValidateServiceAnnotations(t *testing.T) {
417417 expectedError : "target group attributes annotation is only supported for NLB" ,
418418 },
419419
420- // IPFamily annotation set to dualstack (should succeed)
420+ // IPFamily annotation set to dualstack on NLB (should succeed)
421421 {
422422 name : "NLB with dualstack annotation - success" ,
423423 annotations : map [string ]string {
@@ -427,6 +427,15 @@ func TestValidateServiceAnnotations(t *testing.T) {
427427 expectedError : "" ,
428428 },
429429
430+ // IPFamily annotation set to dualstack on CLB (should fail)
431+ {
432+ name : "CLB with dualstack annotation - fail" ,
433+ annotations : map [string ]string {
434+ ServiceAnnotationLoadBalancerIPAddressType : "dualstack" ,
435+ },
436+ expectedError : "ip address type annotation is only supported for NLB" ,
437+ },
438+
430439 // No annotations (should succeed)
431440 {
432441 name : "no annotations - success" ,
You can’t perform that action at this time.
0 commit comments