Skip to content

Commit 294398d

Browse files
committed
fix test
1 parent 8a5cbda commit 294398d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/e2e/gatewayapi/gateway.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ spec:
288288
assert.Nil(GinkgoT(), err, "list tls error")
289289
assert.Len(GinkgoT(), tls, 1, "tls number not expect")
290290
assert.Equal(GinkgoT(), Cert, tls[0].Cert, "tls cert not expect")
291-
assert.Equal(GinkgoT(), tls[0].Labels["controller_name"], "gateway.api7.io/api7-ingress-controller")
291+
assert.Equal(GinkgoT(), tls[0].Labels["k8s/controller-name"], "gateway.api7.io/api7-ingress-controller")
292292
})
293293
})
294294
})

test/e2e/scaffold/k8s.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func (s *Scaffold) ClusterClient() (apisix.Cluster, error) {
150150
err = cli.AddCluster(context.Background(), &apisix.ClusterOptions{
151151
BaseURL: u.String(),
152152
ControllerName: s.opts.ControllerName,
153-
Labels: map[string]string{"controller_name": s.opts.ControllerName},
153+
Labels: map[string]string{"k8s/controller-name": s.opts.ControllerName},
154154
AdminKey: s.opts.APISIXAdminAPIKey,
155155
SyncCache: true,
156156
})

test/e2e/scaffold/scaffold.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ func (s *Scaffold) initDataPlaneClient() {
411411
err = s.apisixCli.AddCluster(context.Background(), &dashboard.ClusterOptions{
412412
Name: "default",
413413
ControllerName: s.opts.ControllerName,
414-
Labels: map[string]string{"controller_name": s.opts.ControllerName},
414+
Labels: map[string]string{"k8s/controller-name": s.opts.ControllerName},
415415
BaseURL: url,
416416
AdminKey: s.AdminKey(),
417417
})

0 commit comments

Comments
 (0)