- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for newWith (0.1 sec)
-
pkg/apis/apps/validation/validation_test.go
field.Required(field.NewPath("spec", "selector"), ""), field.Invalid(field.NewPath("spec", "template", "metadata", "labels"), nil, ""), // selector is empty, labels are not, so select doesn't match labels }, }, { name: "selector_doesnt_match", set: mkStatefulSet(&validPodTemplate, tweakSelectorLabels(map[string]string{"foo": "bar"})), errs: field.ErrorList{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 111.9K bytes - Viewed (0) -
pilot/pkg/networking/core/cluster_test.go
"inbound|10001||": overrideSettings, "inbound|10002||": basicSettings, }, }, } for name, tt := range cases { t.Run(name, func(t *testing.T) { g := NewWithT(t) clusters := xdstest.ExtractClusters(buildTestClusters(clusterTest{ t: t, serviceHostname: "*.example.org", nodeType: model.SidecarProxy, mesh: testMesh(),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 108.8K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go
} errs, _ := celValidator.Validate(ctx, field.NewPath("root"), &s, tt.obj, nil, celconfig.RuntimeCELCostBudget) for _, err := range errs { t.Errorf("unexpected error: %v", err) } // test context cancellation found := false evalCtx, cancel := context.WithTimeout(ctx, time.Microsecond) cancel() errs, _ = celValidator.Validate(evalCtx, field.NewPath("root"), &s, tt.obj, nil, celconfig.RuntimeCELCostBudget)
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/scheduler/schedule_one_test.go
tf.RegisterBindPlugin(defaultbinder.Name, defaultbinder.New), tf.RegisterPluginAsExtensions(noderesources.Name, frameworkruntime.FactoryAdapter(feature.Features{}, noderesources.NewFit), "Filter", "PreFilter"), } informerFactory := informers.NewSharedInformerFactory(clientsetfake.NewSimpleClientset(objects...), 0)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:20:55 UTC 2024 - 128.1K bytes - Viewed (0) -
src/cmd/go/internal/load/pkg.go
// old, even this code checking for it is stale now! newPath := strings.Replace(p.ImportPath, "code.google.com/p/go.", "golang.org/x/", 1) e := ImportErrorf(p.ImportPath, "the %v command has moved; use %v instead.", p.ImportPath, newPath) setError(e) return } elem := p.DefaultExecName() + cfg.ExeSuffix
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0) -
pkg/apis/admissionregistration/validation/validation_test.go
Warning: "message", }}, }, }, expectedError: "Required value", }, } { 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) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 147.1K bytes - Viewed (0) -
pkg/apis/batch/validation/validation_test.go
Spec: batch.JobSpec{ Template: validPodTemplateSpec, }, }, }, }, } for k, v := range cases { errs := validateCronJobSpec(v.new, v.old, field.NewPath("spec"), corevalidation.PodValidationOptions{}) if len(errs) > 0 && !v.expectErr { t.Errorf("unexpected error for %s: %v", k, errs) } else if len(errs) == 0 && v.expectErr {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 20:49:09 UTC 2024 - 124.3K bytes - Viewed (0)