Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ExtractListener (0.28 sec)

  1. pilot/pkg/networking/core/listener_builder_test.go

    			},
    		}
    		listeners := buildListeners(t, TestOptions{Services: testServices}, proxy)
    		if vo := xdstest.ExtractListener(model.VirtualOutboundListenerName, listeners); vo == nil {
    			t.Fatalf("expect virtual listener, found %s", listeners[0].Name)
    		}
    		vi := xdstest.ExtractListener(model.VirtualInboundListenerName, listeners)
    		if vi == nil {
    			t.Fatalf("expect virtual inbound listener, found %s", listeners[0].Name)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/accesslog_test.go

    	if d := cmp.Diff(l1, l2, protocmp.Transform()); d != "" {
    		t.Fatal(d)
    	}
    	// Make sure we have exactly 1 access log
    	fc := xdstest.ExtractFilterChain("virtualOutbound-blackhole", xdstest.ExtractListener("virtualOutbound", l1))
    	if len(xdstest.ExtractTCPProxy(t, fc).GetAccessLog()) != 1 {
    		t.Fatalf("unexpected access log: %v", xdstest.ExtractTCPProxy(t, fc).GetAccessLog())
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  3. pilot/pkg/simulation/traffic.go

    	case HTTP2:
    		return "h2c"
    	default:
    		return ""
    	}
    }
    
    func matchListener(listeners []*listener.Listener, input Call) *listener.Listener {
    	if input.CallMode == CallModeInbound {
    		return xdstest.ExtractListener(model.VirtualInboundListenerName, listeners)
    	}
    	// First find exact match for the IP/Port, then fallback to wildcard IP/Port
    	// There is no wildcard port
    	for _, l := range listeners {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top