Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewSimulation (0.18 sec)

  1. pilot/pkg/simulation/traffic.go

    	l := s.Listeners(proxy)
    	sim := &Simulation{
    		t:         t,
    		Listeners: l,
    		Clusters:  s.Clusters(proxy),
    		Routes:    s.RoutesFromListeners(proxy, l),
    	}
    	return sim
    }
    
    func NewSimulation(t *testing.T, s *xds.FakeDiscoveryServer, proxy *model.Proxy) *Simulation {
    	return NewSimulationFromConfigGen(t, s.ConfigGenTest, proxy)
    }
    
    // withT swaps out the testing struct. This allows executing sub tests.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/gateway_simulation_test.go

    	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)))
    			t.Log(xdstest.ExtractListenerNames(sim.Listeners))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 18:27:40 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/sidecar_simulation_test.go

    					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)
    					xdstest.ValidateRouteConfigurations(t, sim.Routes)
    					r := xdstest.ExtractRouteConfigurations(sim.Routes)
    					vh := r[tt.routeName]
    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