- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 915 for tc (0.11 sec)
-
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go
tc.startingPod.ResourceVersion = "2" tc.startingPod.APIVersion = examplev1.SchemeGroupVersion.String() // pod with rv=3 is found when attempting to persist the update tc.updatePod.Name = name tc.updatePod.Namespace = namespace tc.updatePod.UID = uid tc.updatePod.ResourceVersion = "3" tc.updatePod.APIVersion = examplev1.SchemeGroupVersion.String() // patches are submitted with a rv=2
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 41.8K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_assignment_test.go
}, }...) for _, tc := range testCases { t.Run(tc.description, func(t *testing.T) { result, err := takeByTopologyNUMAPacked(tc.topo, tc.availableCPUs, tc.numCPUs) if tc.expErr != "" && err != nil && err.Error() != tc.expErr { t.Errorf("expected error to be [%v] but it was [%v]", tc.expErr, err) } if !result.Equals(tc.expResult) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 09 17:31:37 UTC 2023 - 22.7K bytes - Viewed (0) -
pilot/pkg/security/authz/matcher/header_test.go
PresentMatch: true, }, }, }, } for _, tc := range testCases { t.Run(tc.Name, func(t *testing.T) { actual := HeaderMatcher(tc.K, tc.V) if !cmp.Equal(tc.Expect, actual, protocmp.Transform()) { t.Errorf("expecting %v, but got %v", tc.Expect, actual) } }) } } func TestHostMatcherWithRegex(t *testing.T) { testCases := []struct {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 17 22:42:11 UTC 2023 - 6.3K bytes - Viewed (0) -
security/pkg/pki/util/verify_cert_test.go
expectedErr: "", }, } for id, tc := range testCases { err := VerifyCertificate( tc.privPem, tc.certChainPem, tc.rootCertPem, tc.expectedFields) if err != nil { if len(tc.expectedErr) == 0 { t.Errorf("%s: Unexpected error: %v", id, err) } else if !strings.Contains(err.Error(), tc.expectedErr) { t.Errorf("%s: Unexpected error: %v VS (expected) %s", id, err, tc.expectedErr) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 16 14:56:37 UTC 2022 - 6.5K bytes - Viewed (0) -
pkg/apis/core/taint_test.go
Value: "bar", Effect: TaintEffectPreferNoSchedule, }, expectMatch: false, }, } for _, tc := range testCases { if tc.expectMatch != tc.taint.MatchTaint(tc.taintToMatch) { t.Errorf("[%s] expect taint %s match taint %s", tc.description, tc.taint.ToString(), tc.taintToMatch.ToString()) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 16 13:06:01 UTC 2019 - 2.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/validation/path/name_test.go
}, } for k, tc := range testcases { msgs := ValidatePathSegmentName(tc.Name, tc.Prefix) if len(tc.ExpectedMsg) == 0 && len(msgs) > 0 { t.Errorf("%s: expected no message, got %v", k, msgs) } if len(tc.ExpectedMsg) > 0 && len(msgs) == 0 { t.Errorf("%s: expected error message, got none", k) } if len(tc.ExpectedMsg) > 0 && !strings.Contains(msgs[0], tc.ExpectedMsg) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 27 13:49:29 UTC 2017 - 3.8K bytes - Viewed (0) -
test/fixedbugs/issue19658.go
log.Fatalf("expected a panic in output for %s, got: %s", tc.Type, out) } eolIdx := bytes.IndexByte(out[panicIdx:], '\n') + panicIdx if panicIdx == -1 { log.Fatalf("expected a newline in output for %s after the panic, got: %s", tc.Type, out) } out = out[0:eolIdx] if string(out) != tc.Expect { log.Fatalf("expected '%s' for panic(%s(%s)), got %s", tc.Expect, tc.Type, tc.Input, out) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:56:32 UTC 2023 - 2.3K bytes - Viewed (0) -
plugin/pkg/admission/network/denyserviceexternalips/admission_test.go
} attrs := admission.NewAttributesRecord( tc.newSvc, // new object tc.oldSvc, // old object core.Kind("Service").WithVersion("version"), tc.newSvc.Namespace, tc.newSvc.Name, corev1.Resource("services").WithVersion("version"), "", // subresource op, opt, false, // dryRun nil, // userInfo ) err := ctrl.Validate(context.TODO(), attrs, nil)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 14 05:36:44 UTC 2021 - 3K bytes - Viewed (0) -
pkg/util/kernel/version_test.go
expected: nil, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { kernelVersion, err := getVersion(tc.readFileFunc) if tc.err != nil { assert.Equal(t, tc.err.Error(), err.Error()) assert.Nil(t, kernelVersion) } else { assert.NoError(t, err) assert.Equal(t, tc.expected.Major(), kernelVersion.Major()) assert.Equal(t, tc.expected.Minor(), kernelVersion.Minor())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 19:24:34 UTC 2023 - 2.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/request/webhook_duration_test.go
} if wd.ValidatingWebhookTracker.GetLatency() != tc.MaxDuration { t.Errorf("expected validate duration: %q, but got: %q", tc.MaxDuration, wd.ValidatingWebhookTracker.GetLatency()) } if wd.APFQueueWaitTracker.GetLatency() != tc.MaxDuration { t.Errorf("expected priority & fairness duration: %q, but got: %q", tc.MaxDuration, wd.APFQueueWaitTracker.GetLatency()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 09:15:20 UTC 2023 - 2.4K bytes - Viewed (0)