Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 68 for tc (0.03 sec)

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

    			cb := NewClusterBuilder(proxy, nil, model.DisabledCache{})
    			if tc.h2 {
    				setH2Options(tc.opts.mutable)
    			}
    			ret, err := cb.buildUpstreamClusterTLSContext(tc.opts, tc.tls)
    			if err != nil && tc.result.err == nil || err == nil && tc.result.err != nil {
    				t.Errorf("expecting:\n err=%v but got err=%v", tc.result.err, err)
    			} else if diff := cmp.Diff(tc.result.tlsContext, ret, protocmp.Transform()); diff != "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 03:53:05 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  2. pkg/controller/endpointslice/endpointslice_controller_test.go

    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			ns := metav1.NamespaceDefault
    			client, esController := newController(t, []string{"node-1"}, tc.batchPeriod)
    			stopCh := make(chan struct{})
    			defer close(stopCh)
    
    			_, ctx := ktesting.NewTestContext(t)
    			go esController.Run(ctx, 1)
    
    			addPods(t, esController, ns, tc.podsCount)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  3. src/net/netip/netip_test.go

    		{"::ffff:c000:0280", 16},
    		{"::ffff:c000:0280%eth0", 20},
    	}
    	for _, tc := range tests {
    		var ip Addr
    		if len(tc.ip) > 0 {
    			ip = mustIP(tc.ip)
    		}
    		b, err := ip.MarshalBinary()
    		if err != nil {
    			t.Fatal(err)
    		}
    		if len(b) != tc.wantSize {
    			t.Fatalf("%q encoded to size %d; want %d", tc.ip, len(b), tc.wantSize)
    		}
    		var ip2 Addr
    		if err := ip2.UnmarshalBinary(b); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  4. tests/integration/ambient/baseline_test.go

    				WithParams(param.Params{}.SetWellKnown(param.Namespace, apps.Namespace))
    
    			ips, ports := istio.DefaultIngressOrFail(t, t).HTTPAddresses()
    			for _, tc := range testCases {
    				tc := tc
    				for i, ip := range ips {
    					t.NewSubTestf("%s %s %s", tc.location, tc.resolution, ip).Run(func(t framework.TestContext) {
    						echotest.
    							New(t, apps.All).
    							// TODO eventually we can do this for uncaptured -> l7
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 00:07:28 UTC 2024
    - 78.4K bytes
    - Viewed (0)
  5. src/text/template/exec_test.go

    			"<nil>",
    		},
    	}
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			tmpl := Must(New("tmpl").Parse(tc.src))
    			err := tmpl.Execute(io.Discard, tc.value)
    			got := "<nil>"
    			if err != nil {
    				got = err.Error()
    			}
    			if !strings.HasSuffix(got, tc.want) {
    				t.Fatalf("got error %q, want %q", got, tc.want)
    			}
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    		},
    		{
    			totalObjectNum:  5000,
    			expectObjectNum: 5000,
    		},
    	}
    	for _, tc := range testCases {
    		b.Run(
    			fmt.Sprintf("totalObjectNum=%d, expectObjectNum=%d", tc.totalObjectNum, tc.expectObjectNum),
    			func(b *testing.B) {
    				// create sample pods
    				fakePods := make([]example.Pod, tc.totalObjectNum, tc.totalObjectNum)
    				for i := range fakePods {
    					fakePods[i].Namespace = "default"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    			actualHint, err := p.(*Fit).isSchedulableAfterPodChange(logger, tc.pod, tc.oldObj, tc.newObj)
    			if tc.expectedErr {
    				require.Error(t, err)
    				return
    			}
    			require.NoError(t, err)
    			require.Equal(t, tc.expectedHint, actualHint)
    		})
    	}
    }
    
    func Test_isSchedulableAfterNodeChange(t *testing.T) {
    	testcases := map[string]struct {
    		pod            *v1.Pod
    		oldObj, newObj interface{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
  8. pkg/kubelet/status/status_manager_test.go

    			},
    		},
    	}
    
    	for _, tc := range useCases {
    		t.Run(tc.desc, func(t *testing.T) {
    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.PodDisruptionConditions, tc.enablePodDisruptionConditions)
    			output := mergePodStatus(tc.oldPodStatus(getPodStatus()), tc.newPodStatus(getPodStatus()), tc.hasRunningContainers)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  9. pkg/apis/certificates/validation/validation_test.go

    		},
    	}}
    
    	for _, tc := range testCases {
    		t.Run(tc.description, func(t *testing.T) {
    			tc.oldBundle.ObjectMeta.ResourceVersion = "1"
    			tc.newBundle.ObjectMeta.ResourceVersion = "2"
    			gotErrors := ValidateClusterTrustBundleUpdate(tc.newBundle, tc.oldBundle)
    			if diff := cmp.Diff(gotErrors, tc.wantErrors); diff != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 61K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/listener_test.go

    	proxy.Metadata.EnvoyPrometheusPort = 15090
    
    	for _, tc := range testcases {
    		t.Run(tc.name, func(t *testing.T) {
    			listeners := buildOutboundListeners(t, proxy, nil, tc.sidecar, tc.services...)
    			if len(listeners) != len(tc.expectedListener) {
    				t.Logf("listeners: %v", listeners[0].GetAddress().GetSocketAddress().GetPortValue())
    				t.Fatalf("expected %d listeners, found %d", len(tc.expectedListener), len(listeners))
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 93.6K bytes
    - Viewed (0)
Back to top