Skip to content

Commit 519fe42

Browse files
author
VikramBedi
committed
fix tests
1 parent 781be4b commit 519fe42

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/suites/integration/allowed_routes_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ var _ = Describe("AllowedRoutes Test", Ordered, func() {
8686

8787
Consistently(func(g Gomega) {
8888
route := core.NewHTTPRoute(*httpRoute)
89-
_, err := testFramework.LatticeClient.FindService(ctx, utils.LatticeServiceName(route.Name(), route.Namespace()))
89+
_, err := testFramework.LatticeClient.FindService(ctx, utils.LatticeServiceName(route.Name(), route.Namespace(), ""))
9090
g.Expect(err).To(HaveOccurred())
9191
}, "30s", "5s").Should(Succeed())
9292
})
@@ -135,7 +135,7 @@ var _ = Describe("AllowedRoutes Test", Ordered, func() {
135135
g.Expect(acceptedCondition.Reason).To(Equal("Accepted"))
136136

137137
route := core.NewHTTPRoute(*updatedRoute)
138-
vpcLatticeService, err := testFramework.LatticeClient.FindService(ctx, utils.LatticeServiceName(route.Name(), route.Namespace()))
138+
vpcLatticeService, err := testFramework.LatticeClient.FindService(ctx, utils.LatticeServiceName(route.Name(), route.Namespace(), ""))
139139
g.Expect(err).ToNot(HaveOccurred())
140140
g.Expect(vpcLatticeService).ToNot(BeNil())
141141

@@ -216,7 +216,7 @@ var _ = Describe("AllowedRoutes Test", Ordered, func() {
216216
g.Expect(acceptedCondition.Reason).To(Equal("Accepted"))
217217

218218
route := core.NewHTTPRoute(*updatedRoute)
219-
vpcLatticeService, err := testFramework.LatticeClient.FindService(ctx, utils.LatticeServiceName(route.Name(), route.Namespace()))
219+
vpcLatticeService, err := testFramework.LatticeClient.FindService(ctx, utils.LatticeServiceName(route.Name(), route.Namespace(), ""))
220220
g.Expect(err).ToNot(HaveOccurred())
221221

222222
listListenersResp, err := testFramework.LatticeClient.ListListenersWithContext(ctx, &vpclattice.ListListenersInput{
@@ -318,7 +318,7 @@ var _ = Describe("AllowedRoutes Test", Ordered, func() {
318318
}
319319

320320
route := core.NewHTTPRoute(*updatedRoute)
321-
vpcLatticeService, err := testFramework.LatticeClient.FindService(ctx, utils.LatticeServiceName(route.Name(), route.Namespace()))
321+
vpcLatticeService, err := testFramework.LatticeClient.FindService(ctx, utils.LatticeServiceName(route.Name(), route.Namespace(), ""))
322322
g.Expect(err).ToNot(HaveOccurred())
323323

324324
listListenersResp, err := testFramework.LatticeClient.ListListenersWithContext(ctx, &vpclattice.ListListenersInput{
@@ -437,7 +437,7 @@ var _ = Describe("AllowedRoutes Test", Ordered, func() {
437437
g.Expect(http1AcceptedCondition.Reason).To(Equal("NotAllowedByListeners"))
438438

439439
route := core.NewHTTPRoute(*updatedRoute)
440-
vpcLatticeService, err := testFramework.LatticeClient.FindService(ctx, utils.LatticeServiceName(route.Name(), route.Namespace()))
440+
vpcLatticeService, err := testFramework.LatticeClient.FindService(ctx, utils.LatticeServiceName(route.Name(), route.Namespace(), ""))
441441
g.Expect(err).ToNot(HaveOccurred())
442442

443443
listListenersResp, err := testFramework.LatticeClient.ListListenersWithContext(ctx, &vpclattice.ListListenersInput{
@@ -525,7 +525,7 @@ var _ = Describe("AllowedRoutes Test", Ordered, func() {
525525
g.Expect(acceptedCondition.Reason).To(Equal("Accepted"))
526526

527527
route := core.NewHTTPRoute(*updatedRoute)
528-
vpcLatticeService, err := testFramework.LatticeClient.FindService(ctx, utils.LatticeServiceName(route.Name(), route.Namespace()))
528+
vpcLatticeService, err := testFramework.LatticeClient.FindService(ctx, utils.LatticeServiceName(route.Name(), route.Namespace(), ""))
529529
g.Expect(err).ToNot(HaveOccurred())
530530

531531
listListenersResp, err := testFramework.LatticeClient.ListListenersWithContext(ctx, &vpclattice.ListListenersInput{
@@ -623,7 +623,7 @@ var _ = Describe("AllowedRoutes Test", Ordered, func() {
623623

624624
Consistently(func(g Gomega) {
625625
route := core.NewHTTPRoute(*httpRoute)
626-
_, err := testFramework.LatticeClient.FindService(ctx, utils.LatticeServiceName(route.Name(), route.Namespace()))
626+
_, err := testFramework.LatticeClient.FindService(ctx, utils.LatticeServiceName(route.Name(), route.Namespace(), ""))
627627
g.Expect(err).To(HaveOccurred())
628628
}, "30s", "5s").Should(Succeed())
629629
})
@@ -700,7 +700,7 @@ var _ = Describe("AllowedRoutes Test", Ordered, func() {
700700

701701
Consistently(func(g Gomega) {
702702
route := core.NewTLSRoute(*tlsRoute)
703-
_, err := testFramework.LatticeClient.FindService(ctx, utils.LatticeServiceName(route.Name(), route.Namespace()))
703+
_, err := testFramework.LatticeClient.FindService(ctx, utils.LatticeServiceName(route.Name(), route.Namespace(), ""))
704704
g.Expect(err).To(HaveOccurred())
705705
}, "30s", "5s").Should(Succeed())
706706
})

0 commit comments

Comments
 (0)