Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RunExpectations (0.25 sec)

  1. pilot/pkg/simulation/traffic.go

    }
    
    // withT swaps out the testing struct. This allows executing sub tests.
    func (sim *Simulation) withT(t *testing.T) *Simulation {
    	cpy := *sim
    	cpy.t = t
    	return &cpy
    }
    
    func (sim *Simulation) RunExpectations(es []Expect) {
    	for _, e := range es {
    		sim.t.Run(e.Name, func(t *testing.T) {
    			sim.withT(t).Run(e.Call).Matches(t, e.Result)
    		})
    	}
    }
    
    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))
    			t.Log(xdstest.DumpList(t, 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)
Back to top