Skip to content

Commit 663d28b

Browse files
committed
Expect empty list for Matches.Headers instead of nil
1 parent 673219d commit 663d28b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/reconciler/ingress/resources/httproute_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ func TestMakeHTTPRoute(t *testing.T) {
214214
Type: ptr(gatewayapi.PathMatchPathPrefix),
215215
Value: pointer.String("/"),
216216
},
217+
Headers: HTTPHeaderMatchList{},
217218
},
218219
},
219220
}},
@@ -293,6 +294,7 @@ func TestMakeHTTPRoute(t *testing.T) {
293294
Type: ptr(gatewayapi.PathMatchPathPrefix),
294295
Value: pointer.String("/"),
295296
},
297+
Headers: HTTPHeaderMatchList{},
296298
}},
297299
}},
298300
CommonRouteSpec: gatewayapi.CommonRouteSpec{
@@ -516,6 +518,7 @@ func TestMakeRedirectHTTPRoute(t *testing.T) {
516518
Type: ptr(gatewayapi.PathMatchPathPrefix),
517519
Value: pointer.String("/"),
518520
},
521+
Headers: HTTPHeaderMatchList{},
519522
},
520523
},
521524
}},
@@ -549,6 +552,7 @@ func TestMakeRedirectHTTPRoute(t *testing.T) {
549552
Type: ptr(gatewayapi.PathMatchPathPrefix),
550553
Value: pointer.String("/"),
551554
},
555+
Headers: HTTPHeaderMatchList{},
552556
}},
553557
}},
554558
CommonRouteSpec: gatewayapi.CommonRouteSpec{

0 commit comments

Comments
 (0)