- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 36 for tc (0.2 sec)
-
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) -
tests/integration/pilot/common/routing.go
protocol: protocol.HTTP, port: 80, }, } for _, tc := range testCases { t.RunTraffic(TrafficTestCase{ name: fmt.Sprintf("%v to external service %v", tc.from[0].NamespacedName(), tc.to), config: SidecarScope, opts: echo.CallOptions{ Address: tc.to, HTTP: echo.HTTP{ Headers: HostHeader(t.Apps.External.All[0].Config().DefaultHostHeader), },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 08 21:52:51 UTC 2024 - 135.9K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_control_test.go
expectedErr: syncErr, }, } for _, tc := range testCases { t.Run(tc.desc, func(t *testing.T) { set := newStatefulSet(3) client := fake.NewSimpleClientset(set) om, ssu, ssc := setupController(client) if tc.hasSyncErr { om.SetCreateStatefulPodError(syncErr, 0) } if tc.hasStatusErr { ssu.SetUpdateStatefulSetStatusError(statusErr, 0) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 07 19:01:47 UTC 2024 - 108.7K bytes - Viewed (0) -
src/net/http/transport_test.go
{disableKeepAlives: true, close: true}, } for _, tc := range tests { t.Run(fmt.Sprintf("DisableKeepAlive=%v,RequestClose=%v", tc.disableKeepAlives, tc.close), func(t *testing.T) { ts := newClientServerTest(t, mode, hostPortHandler).ts c := ts.Client() c.Transport.(*Transport).DisableKeepAlives = tc.disableKeepAlives req, err := NewRequest("GET", ts.URL, nil) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 21:59:21 UTC 2024 - 192.6K bytes - Viewed (0) -
pkg/kubelet/eviction/helpers_test.go
}, }, }, } { t.Run(tc.name, func(t *testing.T) { sort.Sort(byEvictionPriority(tc.thresholds)) for i := range tc.expected { if tc.thresholds[i].Signal != tc.expected[i].Signal { t.Errorf("At index %d, expected threshold with signal %s, but got %s", i, tc.expected[i].Signal, tc.thresholds[i].Signal) } } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 15 23:14:12 UTC 2024 - 106.7K bytes - Viewed (0) -
src/reflect/all_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0) -
pkg/controller/daemon/daemon_controller_test.go
addNodes(manager.nodeStore, 0, 2, nil) for _, pod := range tc.wantedPods { manager.podStore.Add(pod) } for _, pod := range tc.ignoredPods { err = manager.podStore.Add(pod) if err != nil { t.Fatal(err) } } nodesToDaemonPods, err := manager.getNodesToDaemonPods(context.TODO(), ds, tc.includeDeletedTerminal) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 111.4K bytes - Viewed (0) -
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) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go
errDetail: "does not refer to a valid field", }, } for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { validField, _, err := ValidFieldPath(tc.fieldPath, tc.schema) if err == nil && tc.errDetail != "" { t.Errorf("expected err contains: %v but get nil", tc.errDetail) } if err != nil && tc.errDetail == "" { t.Errorf("unexpected error: %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 17:14:10 UTC 2024 - 159.9K bytes - Viewed (0) -
pkg/apis/admissionregistration/validation/validation_test.go
}, } { t.Run(tc.name, func(t *testing.T) { errs := validateValidatingAdmissionPolicyStatus(tc.status, field.NewPath("status")) err := errs.ToAggregate() if err != nil { if e, a := tc.expectedError, err.Error(); !strings.Contains(a, e) || e == "" { t.Errorf("expected to contain %s, got %s", e, a) } } else { if tc.expectedError != "" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 147.1K bytes - Viewed (0)