Skip to content

Commit df31832

Browse files
committed
fix lint
1 parent 4efc412 commit df31832

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

test/e2e/gatewayapi/gateway.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import (
1212
"github.com/api7/api7-ingress-controller/test/e2e/scaffold"
1313
)
1414

15+
const _secretName = "test-apisix-tls"
16+
1517
var Cert = `-----BEGIN CERTIFICATE-----
1618
MIIFcjCCA1qgAwIBAgIJALDqPppBVXQ3MA0GCSqGSIb3DQEBCwUAMGUxCzAJBgNV
1719
BAYTAkNOMRAwDgYDVQQIDAdKaWFuZ3N1MQ8wDQYDVQQHDAZTdXpob3UxEDAOBgNV
@@ -184,7 +186,7 @@ spec:
184186

185187
Context("Gateway SSL", func() {
186188
It("Check if SSL resource was created", func() {
187-
secretName := "test-apisix-tls"
189+
secretName := _secretName
188190
host := "api6.com"
189191
createSecret(s, secretName)
190192
var defaultGatewayClass = `
@@ -233,7 +235,7 @@ spec:
233235

234236
Context("Gateway SSL without hostname", func() {
235237
It("Check if SSL resource was created", func() {
236-
secretName := "test-apisix-tls"
238+
secretName := _secretName
237239
createSecret(s, secretName)
238240
var defaultGatewayClass = `
239241
apiVersion: gateway.networking.k8s.io/v1

test/e2e/gatewayapi/httproute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ spec:
100100
}
101101

102102
var beforeEachHTTPS = func() {
103-
secretName := "test-apisix-tls"
103+
secretName := _secretName
104104
createSecret(s, secretName)
105105
By("create GatewayClass")
106106
gatewayClassName := fmt.Sprintf("api7-%d", time.Now().Unix())

0 commit comments

Comments
 (0)