@@ -558,63 +558,63 @@ func Test_hostnameIntersection(t *testing.T) {
558558 expectEmpty bool
559559 }{
560560 {
561- name : "Scenario 1: Route has NO hostnames - inherits listener hostname" ,
561+ name : "Route has NO hostnames - inherits listener hostname" ,
562562 listenerHostname : ptr (gwv1 .Hostname ("bar.com" )),
563563 routeHostnames : []gwv1.Hostname {},
564564 expectedAttachment : true ,
565565 expectedCompatibleHostnames : []gwv1.Hostname {"bar.com" },
566566 },
567567 {
568- name : "Scenario 2: Listener has NO hostname" ,
568+ name : "Listener has NO hostname" ,
569569 listenerHostname : nil ,
570570 routeHostnames : []gwv1.Hostname {"foo.com" },
571571 expectedAttachment : true ,
572572 expectEmpty : true ,
573573 },
574574 {
575- name : "Scenario 3: Both have NO hostnames" ,
575+ name : "Both have NO hostnames" ,
576576 listenerHostname : nil ,
577577 routeHostnames : []gwv1.Hostname {},
578578 expectedAttachment : true ,
579579 expectEmpty : true ,
580580 },
581581 {
582- name : "Scenario 4: Exact match" ,
582+ name : "Exact match" ,
583583 listenerHostname : ptr (gwv1 .Hostname ("bar.com" )),
584584 routeHostnames : []gwv1.Hostname {"bar.com" },
585585 expectedAttachment : true ,
586586 expectedCompatibleHostnames : []gwv1.Hostname {"bar.com" },
587587 },
588588 {
589- name : "Scenario 5: Listener wildcard matches route" ,
589+ name : "Listener wildcard matches route" ,
590590 listenerHostname : ptr (gwv1 .Hostname ("*.bar.com" )),
591591 routeHostnames : []gwv1.Hostname {"foo.bar.com" },
592592 expectedAttachment : true ,
593593 expectedCompatibleHostnames : []gwv1.Hostname {"foo.bar.com" },
594594 },
595595 {
596- name : "Scenario 6: Route wildcard matches listener" ,
596+ name : "Route wildcard matches listener" ,
597597 listenerHostname : ptr (gwv1 .Hostname ("foo.bar.com" )),
598598 routeHostnames : []gwv1.Hostname {"*.bar.com" },
599599 expectedAttachment : true ,
600600 expectedCompatibleHostnames : []gwv1.Hostname {"foo.bar.com" },
601601 },
602602 {
603- name : "Scenario 7: Both wildcards, compatible" ,
603+ name : "Both wildcards, compatible" ,
604604 listenerHostname : ptr (gwv1 .Hostname ("*.bar.com" )),
605605 routeHostnames : []gwv1.Hostname {"*.bar.com" },
606606 expectedAttachment : true ,
607607 expectedCompatibleHostnames : []gwv1.Hostname {"*.bar.com" },
608608 },
609609 {
610- name : "Scenario 8: No overlap - rejected" ,
610+ name : "No overlap - rejected" ,
611611 listenerHostname : ptr (gwv1 .Hostname ("bar.com" )),
612612 routeHostnames : []gwv1.Hostname {"foo.com" },
613613 expectedAttachment : false ,
614614 expectEmpty : true ,
615615 },
616616 {
617- name : "Scenario 9: Multiple route hostnames, partial match" ,
617+ name : "Multiple route hostnames, partial match" ,
618618 listenerHostname : ptr (gwv1 .Hostname ("*.bar.com" )),
619619 routeHostnames : []gwv1.Hostname {"foo.bar.com" , "baz.bar.com" , "unrelated.com" },
620620 expectedAttachment : true ,
0 commit comments