Skip to content

Commit 94278ae

Browse files
committed
update all route tests to have a valid spec.parentRef entry
1 parent 5a1aef4 commit 94278ae

File tree

6 files changed

+284
-76
lines changed

6 files changed

+284
-76
lines changed

source/gateway_grpcroute_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ func TestGatewayGRPCRouteSourceEndpoints(t *testing.T) {
7474
},
7575
Spec: v1.GRPCRouteSpec{
7676
Hostnames: []v1.Hostname{"api-hostnames.foobar.internal"},
77+
CommonRouteSpec: v1.CommonRouteSpec{
78+
ParentRefs: []v1.ParentReference{
79+
gwParentRef("default", "internal"),
80+
},
81+
},
7782
},
7883
Status: v1.GRPCRouteStatus{
7984
RouteStatus: gwRouteStatus(gwParentRef("default", "internal")),

0 commit comments

Comments
 (0)