Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 203 for expect2 (0.39 sec)

  1. tools/istio-iptables/pkg/builder/iptables_builder_test.go

    	goldenFile := filepath.Join("testdata", name+".golden")
    	testutil.CompareContent(t, gotBytes, goldenFile)
    }
    
    func TestBuilder(t *testing.T) {
    	cases := []struct {
    		name         string
    		expectV4     bool
    		expectV6     bool
    		config       func(builder *IptablesRuleBuilder)
    		sharedGolden bool
    	}{
    		{
    			"insert-single-v4",
    			true,
    			false,
    			func(builder *IptablesRuleBuilder) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 14:29:54 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. src/crypto/tls/bogo_shim_test.go

    	onResumeExpectECHAccepted  = flag.Bool("on-resume-expect-ech-accept", false, "")
    	_                          = flag.Bool("on-resume-expect-no-ech-name-override", false, "")
    	expectedServerName         = flag.String("expect-server-name", "", "")
    
    	expectSessionMiss = flag.Bool("expect-session-miss", false, "")
    
    	_                       = flag.Bool("enable-early-data", false, "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:25:39 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/cluster_test.go

    						To(Equal(uint32(expected.Tcp.TcpKeepalive.Time.Seconds)))
    					g.Expect(cluster.UpstreamConnectionOptions.TcpKeepalive.KeepaliveInterval.Value).
    						To(Equal(uint32(expected.Tcp.TcpKeepalive.Interval.Seconds)))
    					g.Expect(cluster.ConnectTimeout).NotTo(BeNil())
    					g.Expect(cluster.ConnectTimeout.Seconds).To(Equal(expected.Tcp.ConnectTimeout.Seconds))
    
    					g.Expect(thresholds.MaxConnections).NotTo(BeNil())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/sidecar_simulation_test.go

        port: 83
      - name: https
        port: 84`
    
    	type tc struct {
    		call     simulation.Call
    		expected string
    	}
    	calls := []simulation.Expect{}
    	for _, call := range []tc{
    		{call: simulation.Call{Address: "1.2.3.4", Port: 80, Protocol: simulation.HTTP, HostHeader: "alias.default.svc.cluster.local"}, expected: "alias"},
    
    		// Auto port should support any protocol
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/listener_builder_test.go

    				if len(tt.tls) > 0 {
    					t.Fatalf("Expected tls inspector, got none")
    				}
    			} else {
    				evaluateListenerFilterPredicates(t, filters[wellknown.TLSInspector].FilterDisabled, tt.tls)
    			}
    		})
    	}
    }
    
    func evaluateListenerFilterPredicates(t testing.TB, predicate *listener.ListenerFilterChainMatchPredicate, expected map[int]bool) {
    	t.Helper()
    	for port, expect := range expected {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  6. pkg/config/analysis/analyzers/analyzers_test.go

    			continue
    		}
    		g.Expect(existingNames.Contains(n)).To(BeFalse(), fmt.Sprintf("Analyzer name %q is used more than once. "+
    			"Analyzers should be registered in All() exactly once and have a unique name.", n))
    
    		existingNames.Insert(n)
    	}
    }
    
    func TestAnalyzersHaveDescription(t *testing.T) {
    	g := NewWithT(t)
    
    	for _, a := range All() {
    		g.Expect(a.Metadata().Description).ToNot(Equal(""))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 07:22:31 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/listener_test.go

    		if expected := 1; len(listeners) != expected {
    			t.Fatalf("expected %d listeners, found %d", expected, len(listeners))
    		}
    		l := findListenerByPort(listeners, 15080)
    		if l == nil {
    			t.Fatalf("expected listener on port %d, but not found", 15080)
    		}
    		if len(l.FilterChains) != 1 {
    			t.Fatalf("expected %d filter chains, found %d", 1, len(l.FilterChains))
    		} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 93.6K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/peer_authentication_simulation_test.go

    		if tls == simulation.MTLS {
    			r.Alpn = "istio"
    		}
    		return r
    	}
    	cases := []struct {
    		name   string
    		config string
    		calls  []simulation.Expect
    	}{
    		{
    			name:   "global disable",
    			config: paDisable,
    			calls: []simulation.Expect{
    				{
    					Name:   "mtls",
    					Call:   mkCall(8000, simulation.MTLS),
    					Result: simulation.Result{ClusterMatched: "InboundPassthroughCluster"},
    				},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  9. pkg/printers/internalversion/printers_test.go

    		}
    		for i := range rows {
    			rows[i].Object.Object = nil
    		}
    		if !reflect.DeepEqual(test.expect, rows) {
    			t.Errorf("%d mismatch: %s", i, cmp.Diff(test.expect, rows))
    		}
    	}
    }
    
    func TestPrintPodWithRestartableInitContainer(t *testing.T) {
    	tests := []struct {
    		pod    api.Pod
    		expect []metav1.TableRow
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    				}
    				return
    			}
    			if tt.expectError {
    				t.Fatalf("expected error but got none")
    			}
    			if (len(out.Continue) > 0) != tt.expectContinue {
    				t.Errorf("unexpected continue token: %q", out.Continue)
    			}
    
    			// If a client requests an exact resource version, it must be echoed back to them.
    			if tt.expectRV != "" {
    				if tt.expectRV != out.ResourceVersion {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
Back to top