Skip to content

Commit cc26a43

Browse files
committed
fix: r
Signed-off-by: Ashing Zheng <[email protected]>
1 parent 5f05eb6 commit cc26a43

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

test/e2e/crds/v1alpha1/consumer.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
. "github.com/onsi/ginkgo/v2"
2424
. "github.com/onsi/gomega"
2525

26-
"github.com/apache/apisix-ingress-controller/internal/provider/adc"
2726
"github.com/apache/apisix-ingress-controller/test/e2e/scaffold"
2827
)
2928

@@ -616,9 +615,6 @@ spec:
616615
})
617616

618617
It("Should sync Consumer during startup", func() {
619-
if s.Deployer.Name() == adc.BackendModeAPI7EE {
620-
Skip("don't need to run on api7ee mode")
621-
}
622618
Expect(s.CreateResourceFromString(consumer2)).NotTo(HaveOccurred(), "creating unused consumer")
623619
s.ResourceApplied("Consumer", "consumer-sample", consumer1, 1)
624620

test/e2e/crds/v1alpha1/gatewayproxy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ spec:
133133
`
134134
BeforeEach(func() {
135135
By("create GatewayProxy")
136-
if s.Deployer.Name() == "api7ee" {
136+
if s.Deployer.Name() == adc.BackendModeAPI7EE {
137137
err = s.CreateResourceFromString(fmt.Sprintf(gatewayProxySpecAPI7, s.Deployer.GetAdminEndpoint(), s.AdminKey()))
138138
} else {
139139
err = s.CreateResourceFromString(fmt.Sprintf(gatewayProxySpec, framework.ProviderType, s.AdminKey()))
@@ -162,7 +162,7 @@ spec:
162162

163163
Context("Test GatewayProxy update configs", func() {
164164
It("scaling apisix pods to test that the controller watches endpoints", func() {
165-
if s.Deployer.Name() == "api7ee" {
165+
if s.Deployer.Name() == adc.BackendModeAPI7EE {
166166
Skip("this case only for apisix/apisix-standalone mode")
167167
}
168168

test/e2e/crds/v2/route.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ spec:
224224
})
225225

226226
It("Test ApisixRoute filterFunc", func() {
227-
if s.Deployer.Name() == "api7ee" {
227+
if s.Deployer.Name() == adc.BackendModeAPI7EE {
228228
Skip("filterFunc is not supported in api7ee")
229229
}
230230
const apisixRouteSpec = `
@@ -711,9 +711,6 @@ spec:
711711
servicePort: 80
712712
`
713713
It("Should sync ApisixRoute during startup", func() {
714-
if s.Deployer.Name() == adc.BackendModeAPI7EE {
715-
Skip("don't need to run on api7ee mode")
716-
}
717714
By("apply ApisixRoute")
718715
Expect(s.CreateResourceFromString(route2)).ShouldNot(HaveOccurred(), "apply ApisixRoute with nonexistent ingressClassName")
719716
Expect(s.CreateResourceFromString(route3)).ShouldNot(HaveOccurred(), "apply ApisixRoute without ingressClassName")

test/e2e/gatewayapi/httproute.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import (
3333
"sigs.k8s.io/gateway-api/apis/v1alpha2"
3434

3535
"github.com/apache/apisix-ingress-controller/api/v1alpha1"
36+
"github.com/apache/apisix-ingress-controller/internal/provider/adc"
3637
"github.com/apache/apisix-ingress-controller/test/e2e/framework"
3738
"github.com/apache/apisix-ingress-controller/test/e2e/scaffold"
3839
)
@@ -74,7 +75,7 @@ spec:
7475
value: "%s"
7576
`
7677
getGatewayProxySpec := func() string {
77-
if s.Deployer.Name() == "api7ee" {
78+
if s.Deployer.Name() == adc.BackendModeAPI7EE {
7879
return fmt.Sprintf(gatewayProxyYamlAPI7, s.Deployer.GetAdminEndpoint(), s.AdminKey())
7980
}
8081
return fmt.Sprintf(gatewayProxyYaml, framework.ProviderType, s.AdminKey())

0 commit comments

Comments
 (0)