- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 328 for newWith (0.69 sec)
-
pkg/apis/authorization/validation/validation.go
allErrs := ValidateSubjectAccessReviewSpec(sar.Spec, field.NewPath("spec")) objectMetaShallowCopy := sar.ObjectMeta objectMetaShallowCopy.ManagedFields = nil if !apiequality.Semantic.DeepEqual(metav1.ObjectMeta{}, objectMetaShallowCopy) { allErrs = append(allErrs, field.Invalid(field.NewPath("metadata"), sar.ObjectMeta, `must be empty`)) } return allErrs }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 18 15:37:57 UTC 2023 - 4.8K bytes - Viewed (0) -
istioctl/pkg/util/formatting/formatter_test.go
package formatting import ( "testing" . "github.com/onsi/gomega" "istio.io/istio/pkg/config/analysis/diag" "istio.io/istio/pkg/url" ) func TestFormatter_PrintLog(t *testing.T) { g := NewWithT(t) firstMsg := diag.NewMessage( diag.NewMessageType(diag.Error, "B1", "Explosion accident: %v"), diag.MockResource("SoapBubble"), "the bubble is too big", ) secondMsg := diag.NewMessage(
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 4.1K bytes - Viewed (0) -
pilot/cmd/pilot-agent/status/ready/probe_test.go
initServerStats = "cluster_manager.cds.update_success: 1\nlistener_manager.lds.update_success: 1\nserver.state: 2" noServerStats = "" ) func TestEnvoyStatsCompleteAndSuccessful(t *testing.T) { g := NewWithT(t) server := testserver.CreateAndStartServer(liveServerStats) defer server.Close() ctx, cancel := context.WithCancel(context.Background()) defer cancel()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 5.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/validator.go
if err != nil { allErrs = append(allErrs, field.Invalid(field.NewPath(scale.SpecReplicasPath), specReplicas, err.Error())) } else if specReplicas < 0 { allErrs = append(allErrs, field.Invalid(field.NewPath(scale.SpecReplicasPath), specReplicas, "should be a non-negative integer")) } else if specReplicas > math.MaxInt32 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 14:00:05 UTC 2024 - 7.4K bytes - Viewed (0) -
pkg/test/util/yml/cache_test.go
g.Expect(items).To(HaveLen(0)) } func TestCache_GetFileFor_Empty(t *testing.T) { g := NewWithT(t) d := t.TempDir() t.Logf("Test Dir: %q", d) c := NewCache(d) f := c.GetFileFor(CacheKey{}) g.Expect(f).To(BeEmpty()) } func TestCache_Delete(t *testing.T) { g := NewWithT(t) d := t.TempDir() t.Logf("Test Dir: %q", d) c := NewCache(d) _, err := c.Apply(gateway)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 6.8K bytes - Viewed (0) -
pkg/apis/core/pods/helpers_test.go
}{ { "empty podspec", field.NewPath("spec"), &api.PodSpec{}, []string{}, }, { "regular containers", field.NewPath("spec"), &api.PodSpec{ Containers: []api.Container{ {Name: "c1"}, {Name: "c2"}, }, }, []string{"spec.containers[0]", "spec.containers[1]"}, }, { "init containers", field.NewPath("spec"), &api.PodSpec{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 14 01:35:30 UTC 2023 - 6.1K bytes - Viewed (0) -
pkg/config/resource/instance_test.go
) func TestInstance_IsEmpty_False(t *testing.T) { g := NewWithT(t) e := Instance{ Message: &emptypb.Empty{}, } g.Expect(e.IsEmpty()).To(BeFalse()) } func TestInstance_IsEmpty_True(t *testing.T) { g := NewWithT(t) e := Instance{} g.Expect(e.IsEmpty()).To(BeTrue()) } func TestInstance_Clone_Empty(t *testing.T) { g := NewWithT(t) e := &Instance{} c := e.Clone()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 1.2K bytes - Viewed (0) -
pkg/apis/node/validation/validation.go
for _, msg := range apivalidation.NameIsDNSLabel(rc.Handler, false) { allErrs = append(allErrs, field.Invalid(field.NewPath("handler"), rc.Handler, msg)) } if rc.Overhead != nil { allErrs = append(allErrs, validateOverhead(rc.Overhead, field.NewPath("overhead"))...) } if rc.Scheduling != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 10 19:08:24 UTC 2022 - 3.2K bytes - Viewed (0) -
pkg/config/analysis/diag/message_test.go
"istio.io/istio/pkg/url" ) func TestMessage_String(t *testing.T) { g := NewWithT(t) mt := NewMessageType(Error, "IST-0042", "Cheese type not found: %q") m := NewMessage(mt, nil, "Feta") g.Expect(m.String()).To(Equal(`Error [IST-0042] Cheese type not found: "Feta"`)) } func TestMessageWithResource_String(t *testing.T) { g := NewWithT(t) mt := NewMessageType(Error, "IST-0042", "Cheese type not found: %q")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 3.7K bytes - Viewed (0) -
tests/integration/pilot/analyze_test.go
func TestEmptyCluster(t *testing.T) { // nolint: staticcheck framework. NewTest(t). RequiresSingleCluster(). Run(func(t framework.TestContext) { g := NewWithT(t) ns := namespace.NewOrFail(t, t, namespace.Config{ Prefix: "istioctl-analyze", Inject: true, }) istioCtl := istioctl.NewOrFail(t, t, istioctl.Config{})
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 16.3K bytes - Viewed (0)