Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for NewFakeDiscoveryServer (0.31 sec)

  1. pilot/pkg/xds/mesh_network_test.go

    		_, objs := w.kubeObjects()
    		kubeObjects = append(kubeObjects, objs...)
    		configObjects = append(configObjects, w.configs()...)
    	}
    	meshNetworks := mesh.NewFixedNetworksWatcher(nil)
    	s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{
    		KubernetesObjects: kubeObjects,
    		Configs:           configObjects,
    		NetworksWatcher:   meshNetworks,
    	})
    	for _, w := range workloads {
    		w.setupProxy(s)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  2. pilot/pkg/xds/eds_sh_test.go

    // the Split Horizon EDS - all local endpoints + endpoint per remote network that also has
    // endpoints for the service.
    func TestSplitHorizonEds(t *testing.T) {
    	s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{NetworksWatcher: mesh.NewFixedNetworksWatcher(nil)})
    
    	// Set up a cluster registry for network 1 with 1 instance for the service 'service5'
    	// Network has 1 gateway
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. pilot/test/xds/fake.go

    	BufListener  *bufconn.Listener
    	kubeClient   kubelib.Client
    	KubeRegistry *kube.FakeController
    	XdsUpdater   model.XDSUpdater
    	MemRegistry  *memregistry.ServiceDiscovery
    }
    
    func NewFakeDiscoveryServer(t test.Failer, opts FakeOptions) *FakeDiscoveryServer {
    	m := opts.MeshConfig
    	if m == nil {
    		m = mesh.DefaultMeshConfig()
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 16:08:52 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  4. pilot/pkg/networking/grpcgen/grpcgen_test.go

    	o := log.DefaultOptions()
    	o.SetDefaultOutputLevel(log.GrpcScopeName, log.DebugLevel)
    	log.Configure(o)
    }
    
    func TestGRPC(t *testing.T) {
    	// Init Istiod in-process server.
    	ds := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{
    		ListenerBuilder: func() (net.Listener, error) {
    			return net.Listen("tcp", "127.0.0.1:0")
    		},
    	})
    	sd := ds.MemRegistry
    
    	lis, err := net.Listen("tcp", ":0")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 09:04:02 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  5. pilot/pkg/xds/endpoints/ep_filters_test.go

    //   - 1 gateway for network1
    //   - 3 gateway for network2
    //   - 1 gateway for network3
    //   - 0 gateways for network4
    func environment(t test.Failer, c ...config.Config) *xds.FakeDiscoveryServer {
    	ds := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{
    		Configs: c,
    		Services: []*model.Service{{
    			Hostname:   "example.ns.svc.cluster.local",
    			Attributes: model.ServiceAttributes{Name: "example", Namespace: "ns"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  6. pkg/istio-agent/agent_test.go

    	l, err := net.Listen("tcp", "localhost:0")
    	if err != nil {
    		t.Fatal(err)
    	}
    	opt := tlsOptions(t, certPem)
    	// Set up a simple service to make sure we have mTLS requested
    	ds := xdsfake.NewFakeDiscoveryServer(t, xdsfake.FakeOptions{ConfigString: `
    apiVersion: networking.istio.io/v1alpha3
    kind: ServiceEntry
    metadata:
      name: app
      namespace: default
    spec:
      hosts:
      - app.com
      ports:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/gateway_simulation_test.go

    func runSimulationTest(t *testing.T, proxy *model.Proxy, o xds.FakeOptions, tt simulationTest) {
    	runTest := func(t *testing.T) {
    		o.ConfigString = tt.config
    		o.KubernetesObjectString = tt.kubeConfig
    		s := xds.NewFakeDiscoveryServer(t, o)
    		sim := simulation.NewSimulation(t, s, s.SetupProxy(proxy))
    		sim.RunExpectations(tt.calls)
    		if t.Failed() && debugMode {
    			t.Log(xdstest.MapKeys(xdstest.ExtractClusters(sim.Clusters)))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 18:27:40 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/sidecar_simulation_test.go

    					if err != nil {
    						t.Fatal(err)
    					}
    					kubeo, err := kube.SlowConvertKindsToRuntimeObjects(k)
    					if err != nil {
    						t.Fatal(err)
    					}
    					s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{
    						Configs:           istio,
    						KubernetesObjects: kubeo,
    					})
    					sim := simulation.NewSimulation(t, s, s.SetupProxy(tt.proxy))
    					xdstest.ValidateListeners(t, sim.Listeners)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 84.7K bytes
    - Viewed (0)
Back to top