Skip to content

Commit

Permalink
Merge pull request #1995 from lzhecheng/check-lb-type-pip-prefix-id-test
Browse files Browse the repository at this point in the history
Check lb type before pip-prefix-id test
  • Loading branch information
k8s-ci-robot committed Jul 11, 2022
2 parents 4238b21 + f9bac2b commit 41d49aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/e2e/network/service_annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"context"
"fmt"
"net/http"
"os"
"reflect"
"regexp"
"strings"
Expand Down Expand Up @@ -427,6 +428,11 @@ var _ = Describe("Service with annotation", func() {
})

It("should support service annotation `service.beta.kubernetes.io/azure-pip-prefix-id`", func() {
if skuEnv := os.Getenv(utils.LoadBalancerSkuEnv); skuEnv != "" {
if !strings.EqualFold(skuEnv, string(network.PublicIPAddressSkuNameStandard)) {
Skip("pip-prefix-id only work with Standard Load Balancer")
}
}
const (
prefix1Name = "prefix1"
prefix2Name = "prefix2"
Expand Down

0 comments on commit 41d49aa

Please sign in to comment.