Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 26 of 26 for tc (0.04 sec)

  1. pkg/kubelet/kubelet_test.go

    		if !found {
    			t.Fatalf("resource allocation should exist: (pod: %#v, container: %s)", tc.pod, tc.pod.Spec.Containers[0].Name)
    		}
    		assert.Equal(t, tc.expectedPodResourceAllocation[string(tc.pod.UID)][tc.pod.Spec.Containers[0].Name], allocatedResources, tc.name)
    	}
    }
    
    func TestHandlePodResourcesResize(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  2. pilot/pkg/model/telemetry_test.go

    			input:      1 * time.Second,
    			defaultVal: 0,
    			expected:   durationpb.New(1 * time.Second),
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			actual := getInterval(tc.input, tc.defaultVal)
    			assert.Equal(t, tc.expected, actual)
    		})
    	}
    }
    
    func Test_appendApplicableTelemetries(t *testing.T) {
    	namespacedName := types.NamespacedName{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  3. cmd/handler-api.go

    		// perform the API call immediately.
    		if deadline <= 0 {
    			globalHTTPStats.addRequestsInQueue(-1)
    			f.ServeHTTP(w, r)
    			return
    		}
    
    		if tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt); ok {
    			tc.FuncName = "s3.MaxClients"
    		}
    
    		deadlineTimer := time.NewTimer(deadline)
    		defer deadlineTimer.Stop()
    
    		ctx := r.Context()
    		select {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 12 08:13:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. cmd/metrics-v2.go

    	gatherers := prometheus.Gatherers{
    		registry,
    	}
    
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if ok {
    			tc.FuncName = funcName
    			tc.ResponseRecorder.LogErrBody = true
    		}
    
    		mfs, err := gatherers.Gather()
    		if err != nil && len(mfs) == 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/sidecar_simulation_test.go

      - name: auto
        port: 81
      - name: tcp
        port: 82
      - name: tls
        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"},
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    			requestRV:        "0",
    			expectResponseRV: secondNonConsistentReadRV,
    		},
    	}
    	for _, tc := range tcs {
    		t.Run(tc.name, func(t *testing.T) {
    			out := &example.PodList{}
    			opts := storage.ListOptions{
    				ResourceVersion: tc.requestRV,
    				Predicate:       storage.Everything,
    			}
    			err = store.GetList(ctx, "/pods/empty", opts, out)
    			if err != nil {
    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