Skip to content

Commit d405095

Browse files
committed
fix: r
Signed-off-by: Ashing Zheng <[email protected]>
1 parent 9cbefc0 commit d405095

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

test/e2e/crds/v2/route.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2285,6 +2285,9 @@ spec:
22852285
namespace: %s
22862286
`
22872287
BeforeEach(func() {
2288+
if framework.IngressVersion != "v1" {
2289+
Skip("skipping test in non-v1 ingress version")
2290+
}
22882291
s.DeployNginx(framework.NginxOptions{
22892292
Namespace: s.Namespace(),
22902293
Replicas: ptr.To(int32(1)),

test/e2e/gatewayapi/httproute.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2444,9 +2444,6 @@ spec:
24442444
})
24452445

24462446
Context("Test Service With AppProtocol", func() {
2447-
if framework.IngressVersion != "v1" {
2448-
Skip("skipping test in non-v1 ingress version")
2449-
}
24502447
var (
24512448
httproute = `
24522449
apiVersion: gateway.networking.k8s.io/v1
@@ -2489,6 +2486,9 @@ spec:
24892486
)
24902487

24912488
BeforeEach(func() {
2489+
if framework.IngressVersion != "v1" {
2490+
Skip("skipping test in non-v1 ingress version")
2491+
}
24922492
beforeEachHTTPS()
24932493
s.DeployNginx(framework.NginxOptions{
24942494
Namespace: s.Namespace(),

test/e2e/ingress/ingress.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,9 @@ spec:
10391039
number: 8443
10401040
`
10411041
BeforeEach(func() {
1042+
if framework.IngressVersion != "v1" {
1043+
Skip("skipping test in non-v1 ingress version")
1044+
}
10421045
s.DeployNginx(framework.NginxOptions{
10431046
Namespace: s.Namespace(),
10441047
Replicas: ptr.To(int32(1)),

0 commit comments

Comments
 (0)