@@ -292,33 +292,33 @@ func Test_ToGateway(t *testing.T) {
292
292
GatewayClassName : "nginx" ,
293
293
Listeners : []gatewayv1.Listener {
294
294
{
295
- Name : "foo -example-com-http" ,
295
+ Name : "bar -example-com-http" ,
296
296
Port : 80 ,
297
297
Protocol : gatewayv1 .HTTPProtocolType ,
298
- Hostname : ptrTo (gatewayv1 .Hostname ("foo .example.com" )),
298
+ Hostname : ptrTo (gatewayv1 .Hostname ("bar .example.com" )),
299
299
},
300
300
{
301
- Name : "foo -example-com-https" ,
301
+ Name : "bar -example-com-https" ,
302
302
Port : 443 ,
303
303
Protocol : gatewayv1 .HTTPSProtocolType ,
304
- Hostname : ptrTo (gatewayv1 .Hostname ("foo .example.com" )),
304
+ Hostname : ptrTo (gatewayv1 .Hostname ("bar .example.com" )),
305
305
TLS : & gatewayv1.GatewayTLSConfig {
306
306
CertificateRefs : []gatewayv1.SecretObjectReference {
307
307
{Name : "example-com" },
308
308
},
309
309
},
310
310
},
311
311
{
312
- Name : "bar -example-com-http" ,
312
+ Name : "foo -example-com-http" ,
313
313
Port : 80 ,
314
314
Protocol : gatewayv1 .HTTPProtocolType ,
315
- Hostname : ptrTo (gatewayv1 .Hostname ("bar .example.com" )),
315
+ Hostname : ptrTo (gatewayv1 .Hostname ("foo .example.com" )),
316
316
},
317
317
{
318
- Name : "bar -example-com-https" ,
318
+ Name : "foo -example-com-https" ,
319
319
Port : 443 ,
320
320
Protocol : gatewayv1 .HTTPSProtocolType ,
321
- Hostname : ptrTo (gatewayv1 .Hostname ("bar .example.com" )),
321
+ Hostname : ptrTo (gatewayv1 .Hostname ("foo .example.com" )),
322
322
TLS : & gatewayv1.GatewayTLSConfig {
323
323
CertificateRefs : []gatewayv1.SecretObjectReference {
324
324
{Name : "example-com" },
@@ -520,16 +520,16 @@ func Test_ToGateway(t *testing.T) {
520
520
GatewayClassName : "nginx" ,
521
521
Listeners : []gatewayv1.Listener {
522
522
{
523
- Name : "foo -example-com-http" ,
523
+ Name : "bar -example-com-http" ,
524
524
Port : 80 ,
525
525
Protocol : gatewayv1 .HTTPProtocolType ,
526
- Hostname : ptrTo (gatewayv1 .Hostname ("foo .example.com" )),
526
+ Hostname : ptrTo (gatewayv1 .Hostname ("bar .example.com" )),
527
527
},
528
528
{
529
- Name : "bar -example-com-http" ,
529
+ Name : "foo -example-com-http" ,
530
530
Port : 80 ,
531
531
Protocol : gatewayv1 .HTTPProtocolType ,
532
- Hostname : ptrTo (gatewayv1 .Hostname ("bar .example.com" )),
532
+ Hostname : ptrTo (gatewayv1 .Hostname ("foo .example.com" )),
533
533
},
534
534
},
535
535
},
0 commit comments