Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 217 for simulation (0.67 sec)

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

       protocol: HTTP
    ---`
    	mkCall := func(port int, tls simulation.TLSMode) simulation.Call {
    		r := simulation.Call{Protocol: simulation.HTTP, Port: port, CallMode: simulation.CallModeInbound, TLS: tls}
    		if tls == simulation.MTLS {
    			r.Alpn = "istio"
    		}
    		return r
    	}
    	cases := []struct {
    		name   string
    		config string
    		calls  []simulation.Expect
    	}{
    		{
    			name:   "global disable",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/serviceentry_simulation_test.go

    			kubeConfig: "",
    			calls: []simulation.Expect{{
    				// Expect listener, but no routing
    				Name: "defined port",
    				Call: simulation.Call{
    					Port:       9999,
    					HostHeader: "blah.somedomain",
    					Address:    "1234:1f1:1:1:1:1:1:1",
    					Protocol:   simulation.HTTP,
    				},
    				Result: simulation.Result{
    					ListenerMatched: "0.0.0.0_9999",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 21:06:06 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/sidecar_simulation_test.go

    ---
    `
    	cases := []struct {
    		Name       string
    		Call       simulation.Call
    		Disabled   simulation.Result
    		Permissive simulation.Result
    		Strict     simulation.Result
    	}{
    		{
    			Name: "tcp",
    			Call: simulation.Call{
    				Port:     70,
    				Protocol: simulation.TCP,
    				CallMode: simulation.CallModeInbound,
    			},
    			Disabled: simulation.Result{
    				ClusterMatched: "inbound|70||",
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/gateway_simulation_test.go

    						Protocol:   simulation.HTTP,
    					},
    					Result: simulation.Result{ClusterMatched: "outbound|80||b.default"},
    				},
    				{
    					Name: "undefined hostname",
    					Call: simulation.Call{
    						Port:       80,
    						HostHeader: "c.example.com",
    						Protocol:   simulation.HTTP,
    					},
    					Result: simulation.Result{Error: simulation.ErrNoVirtualHost},
    				},
    			},
    		},
    		simulationTest{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 18:27:40 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  5. pilot/pkg/simulation/traffic.go

    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.
    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 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access_test.go

    			}
    			for _, q := range quotas {
    				if q.Namespace != testNamespace1 {
    					t.Errorf("Expected %s namespace, got %s", testNamespace1, q.Namespace)
    				}
    			}
    		}()
    
    		// simulation of different namespaces is a call for a different group key, but not shared with the first namespace
    		go func() {
    			defer wg.Done()
    			quotas, err := accessor.GetQuotas(testNamespace2)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 13:54:56 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. pkg/controller/volume/persistentvolume/delete_test.go

    //     call appropriate syncVolume/syncClaim (simulating "volume/claim changed"
    //     events). Go to 2. if these calls change anything.
    //  3. When all changes are processed and no new changes were made, call
    //     syncVolume/syncClaim on all volumes/claims (simulating "periodic sync").
    //  4. If some changes were done by step 3., go to 2. (simulation of
    //     "volume/claim updated" events, eventually performing step 3. again)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  8. src/index/suffixarray/suffixarray_test.go

    		[]string{
    			"Now",
    			"the time",
    			"to come the aid",
    			"is the time for all good men to come to the aid of their",
    			"to (come|the)?",
    		},
    	},
    
    	{
    		"godoc simulation",
    		"package main\n\nimport(\n    \"rand\"\n    ",
    		[]string{},
    	},
    }
    
    // find all occurrences of s in source; report at most n occurrences
    func find(src, s string, n int) []int {
    	var res []int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. src/math/rand/v2/rand.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package rand implements pseudo-random number generators suitable for tasks
    // such as simulation, but it should not be used for security-sensitive work.
    //
    // Random numbers are generated by a [Source], usually wrapped in a [Rand].
    // Both types should be used by a single goroutine at a time: sharing among
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:25:49 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  10. src/math/rand/rand.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package rand implements pseudo-random number generators suitable for tasks
    // such as simulation, but it should not be used for security-sensitive work.
    //
    // Random numbers are generated by a [Source], usually wrapped in a [Rand].
    // Both types should be used by a single goroutine at a time: sharing among
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:09:08 UTC 2024
    - 16.9K bytes
    - Viewed (0)
Back to top