- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 160 for tc (0.02 sec)
-
cmd/kubeadm/app/apis/kubeadm/validation/validation_test.go
{name: "empty CRISocket", criSocket: "", expectedErrors: true}, } for _, tc := range tests { actual := ValidateSocketPath(tc.criSocket, field.NewPath("criSocket")) actualErrors := len(actual) > 0 if actualErrors != tc.expectedErrors { t.Errorf("error: socket path: %q\n\texpected: %t\n\t actual: %t", tc.criSocket, tc.expectedErrors, actualErrors) } } } func TestValidateURLs(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 46.1K bytes - Viewed (0) -
pilot/pkg/security/authz/builder/builder_test.go
}, } baseDir := "http/" for _, extended := range []bool{false, true} { for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { option := Option{ IsCustomBuilder: tc.meshConfig != nil, UseExtendedJwt: extended, } push := push(t, baseDir+tc.input, tc.meshConfig) proxy := node(tc.version) selectionOpts := model.PolicyMatcherForProxy(proxy)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 13.8K bytes - Viewed (0) -
pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux_test.go
assert.Equal(t, manager.Admit(nil).Admit, false) assert.Equal(t, tc.expectedPodToGracePeriodOverride, killedPodsToGracePeriods) assert.Equal(t, tc.expectedDidOverrideInhibitDelay, fakeDbus.didOverrideInhibitDelay, "override system inhibit delay differs") if tc.expectedPodStatuses != nil { for _, pod := range tc.activePods {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 29.8K bytes - Viewed (0) -
pkg/spiffe/spiffe_test.go
}, } for id, tc := range testCases { got, err := genSpiffeURI(tc.trustDomain, tc.namespace, tc.serviceAccount) if tc.expectedError == "" && err != nil { t.Errorf("teste case [%v] failed, error %v", id, tc) } if tc.expectedError != "" { if err == nil { t.Errorf("want get error %v, got nil", tc.expectedError) } else if !strings.Contains(err.Error(), tc.expectedError) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 18.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/authentication_test.go
respAuds: []string{"some"}, expectSuccess: false, }, } for _, tc := range testcases { t.Run(tc.name, func(t *testing.T) { success, failed = 0, 0 auth := WithAuthentication( http.HandlerFunc(func(_ http.ResponseWriter, req *http.Request) { if tc.expectSuccess { success = 1 } else { t.Errorf("unexpected call to handler") } }),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 20.5K bytes - Viewed (0) -
cmd/generic-handlers.go
if r.Method == http.MethodHead { if ok { tc.FuncName = "handler.ValidRequest" tc.ResponseRecorder.LogErrBody = false } defer logger.AuditLog(r.Context(), w, r, mustGetClaimsFromToken(r)) writeErrorResponseHeadersOnly(w, errorCodes.ToAPIErr(ErrInsecureSSECustomerRequest)) } else { if ok { tc.FuncName = "handler.ValidRequest" tc.ResponseRecorder.LogErrBody = true }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 06 01:01:15 UTC 2024 - 20.4K bytes - Viewed (0) -
plugin/pkg/admission/gc/gc_admission_test.go
if tc.oldObj != nil { operation = apiserveradmission.Update options = &metav1.UpdateOptions{} } user := &user.DefaultInfo{Name: tc.username} attributes := apiserveradmission.NewAttributesRecord(tc.newObj, tc.oldObj, schema.GroupVersionKind{}, metav1.NamespaceDefault, "foo", tc.resource, tc.subresource, operation, options, false, user) err = gcAdmit.Validate(context.TODO(), attributes, nil) if !tc.checkError(err) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:28:42 UTC 2024 - 24.5K bytes - Viewed (0) -
pkg/proxy/topology_test.go
if tc.clusterEndpoints == nil && clusterEndpoints != nil { t.Errorf("expected no cluster endpoints but got %v", clusterEndpoints) } else { err := checkExpectedEndpoints(tc.clusterEndpoints, clusterEndpoints) if err != nil { t.Errorf("error with cluster endpoints: %v", err) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 26.6K bytes - Viewed (0) -
pkg/scheduler/apis/config/validation/validation_pluginargs_test.go
Field: "shape[3].utilization", }, }), }, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { for k, v := range tc.features { featuregatetesting.SetFeatureGateDuringTest(t, feature.DefaultFeatureGate, k, v) } err := ValidateVolumeBindingArgs(nil, &tc.args) if diff := cmp.Diff(tc.wantErr, err, ignoreBadValueDetail); diff != "" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.3K bytes - Viewed (0) -
pilot/pkg/model/authorization_test.go
}, }, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { authzPolicies := createFakeAuthorizationPolicies(tc.configs) result := authzPolicies.ListAuthorizationPolicies(tc.selectionOpts) if !reflect.DeepEqual(tc.wantAllow, result.Allow) { t.Errorf("wantAllow:%v\n but got: %v\n", tc.wantAllow, result.Allow) } if !reflect.DeepEqual(tc.wantDeny, result.Deny) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 12.7K bytes - Viewed (0)