- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 149 for newWith (0.17 sec)
-
pkg/config/schema/collection/schemas_test.go
Proto: "google.protobuf.Struct", }.MustBuild() ) func TestSchemas_Basic(t *testing.T) { g := NewWithT(t) schemas := collection.SchemasFor(emptyResource) g.Expect(schemas.All()).To(HaveLen(1)) g.Expect(schemas.All()[0]).To(Equal(emptyResource)) } func TestSchemas_MustAdd(t *testing.T) { g := NewWithT(t) defer func() { r := recover() g.Expect(r).To(BeNil()) }() b := collection.NewSchemasBuilder()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 5.4K bytes - Viewed (0) -
pkg/apis/scheduling/validation/validation.go
// value is immutable. if pc.Value != oldPc.Value { allErrs = append(allErrs, field.Forbidden(field.NewPath("value"), "may not be changed in an update.")) } // preemptionPolicy is immutable. allErrs = append(allErrs, apivalidation.ValidateImmutableField(pc.PreemptionPolicy, oldPc.PreemptionPolicy, field.NewPath("preemptionPolicy"))...) return allErrs
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 27 07:30:47 UTC 2022 - 3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/internalversion/validation/validation.go
if len(options.ResourceVersion) == 0 { allErrs = append(allErrs, field.Forbidden(field.NewPath("resourceVersionMatch"), "resourceVersionMatch is forbidden unless resourceVersion is provided")) } if len(options.Continue) > 0 { allErrs = append(allErrs, field.Forbidden(field.NewPath("resourceVersionMatch"), "resourceVersionMatch is forbidden when continue is provided")) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 01 09:55:40 UTC 2023 - 3.5K bytes - Viewed (0) -
pkg/config/analysis/diag/messages_test.go
// limitations under the License. package diag import ( "testing" . "github.com/onsi/gomega" "istio.io/istio/pkg/url" ) func TestMessages_Sort(t *testing.T) { g := NewWithT(t) firstMsg := NewMessage( NewMessageType(Error, "B1", "Template: %q"), MockResource("B"), "B", ) secondMsg := NewMessage( NewMessageType(Warning, "A1", "Template: %q"), MockResource("B"),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 4.2K bytes - Viewed (0) -
pkg/apis/core/validation/events.go
allErrs = append(allErrs, ValidateImmutableField(newEvent.Message, oldEvent.Message, field.NewPath("message"))...) allErrs = append(allErrs, ValidateImmutableField(newEvent.Source, oldEvent.Source, field.NewPath("source"))...) allErrs = append(allErrs, ValidateImmutableField(newEvent.FirstTimestamp, oldEvent.FirstTimestamp, field.NewPath("firstTimestamp"))...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 01 19:47:37 UTC 2022 - 9.2K bytes - Viewed (0) -
pkg/apis/coordination/validation/validation.go
allErrs = append(allErrs, ValidateLeaseSpec(&lease.Spec, field.NewPath("spec"))...) return allErrs } // ValidateLeaseUpdate validates an update of Lease object. func ValidateLeaseUpdate(lease, oldLease *coordination.Lease) field.ErrorList { allErrs := validation.ValidateObjectMetaUpdate(&lease.ObjectMeta, &oldLease.ObjectMeta, field.NewPath("metadata"))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 03 17:25:43 UTC 2022 - 2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/validation/field/errors_test.go
testCases := struct { ErrList []ErrorList NumExpectedErrs []int }{ []ErrorList{ nil, {}, {Invalid(NewPath("f"), "v", "d")}, {Invalid(NewPath("f"), "v", "d"), Invalid(NewPath("f"), "v", "d")}, {Invalid(NewPath("f"), "v", "d"), InternalError(NewPath(""), fmt.Errorf("e"))}, }, []int{ 0, 0, 1, 1, 2, }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 28 07:31:28 UTC 2023 - 4.2K bytes - Viewed (0) -
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)