Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 2,910 for nvalid (0.13 sec)

  1. pkg/api/job/warnings_test.go

    				Completions:    pointer.Int32(1_000_000_000),
    			},
    		},
    		"invalid PodTemplate": {
    			spec: &batch.JobSpec{
    				CompletionMode: completionModePtr(batch.NonIndexedCompletion),
    				Template: core.PodTemplateSpec{
    					Spec: core.PodSpec{ImagePullSecrets: []core.LocalObjectReference{{Name: ""}}},
    				},
    			},
    			wantWarningsCount: 1,
    		},
    		"valid Indexed low completions low parallelism": {
    			spec: &batch.JobSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 14 14:38:42 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/struct.go

    			check.recordDef(ident, fld)
    		}
    	}
    
    	// addInvalid adds an embedded field of invalid type to the struct for
    	// fields with errors; this keeps the number of struct fields in sync
    	// with the source as long as the fields are _ or have different names
    	// (go.dev/issue/25627).
    	addInvalid := func(ident *syntax.Name) {
    		typ = Typ[Invalid]
    		tag = ""
    		add(ident, true)
    	}
    
    	var prev syntax.Expr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. pkg/config/resource/name_test.go

    			valid:       true,
    		},
    		{
    			description: "valid name with namespace",
    			name:        "testNamespace/testName",
    			want:        "testNamespace/testName",
    			valid:       true,
    		},
    	}
    	for _, s := range steps {
    		t.Run(s.description, func(tt *testing.T) {
    			n, err := ParseFullName(s.name)
    			if err == nil && n.String() != s.want {
    				tt.Fatalf("unexpected name: %v", n)
    			}
    			if s.valid {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 29 20:42:01 UTC 2020
    - 3.1K bytes
    - Viewed (0)
  4. pkg/registry/apps/controllerrevision/strategy_test.go

    		name       string
    		newHistory *apps.ControllerRevision
    		oldHistory *apps.ControllerRevision
    		isValid    bool
    	}{
    		{
    			name:       "valid",
    			newHistory: valid,
    			oldHistory: valid,
    			isValid:    true,
    		},
    		{
    			name:       "changed data",
    			newHistory: changedData,
    			oldHistory: valid,
    			isValid:    false,
    		},
    		{
    			name:       "changed revision",
    			newHistory: changedRevision,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 09 11:14:08 UTC 2017
    - 4.5K bytes
    - Viewed (0)
  5. operator/pkg/util/path_test.go

    	tests := []struct {
    		desc   string
    		in     string
    		expect bool
    	}{
    		{
    			desc:   "valid",
    			in:     "[1:2]",
    			expect: true,
    		},
    		{
    			desc:   "invalid",
    			in:     "[:2]",
    			expect: false,
    		},
    		{
    			desc:   "invalid-2",
    			in:     "[1:]",
    			expect: false,
    		},
    		{
    			desc:   "empty",
    			in:     "",
    			expect: false,
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Aug 29 00:15:38 UTC 2020
    - 6.7K bytes
    - Viewed (0)
  6. pkg/registry/storage/volumeattachment/storage/storage_test.go

    	pvName := "foo"
    	test.TestCreate(
    		// valid
    		volumeAttachment,
    		// invalid
    		&storageapi.VolumeAttachment{
    			ObjectMeta: metav1.ObjectMeta{Name: "*BadName!"},
    			Spec: storageapi.VolumeAttachmentSpec{
    				Attacher: "invalid-attacher-!@#$%^&*()",
    				Source: storageapi.VolumeAttachmentSource{
    					PersistentVolumeName: &pvName,
    				},
    				NodeName: "invalid-node-!@#$%^&*()",
    			},
    		},
    	)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 6.2K bytes
    - Viewed (1)
  7. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/name_flags_test.go

    			outputFormat:  "invalid",
    			expectNoMatch: true,
    		},
    		{
    			name:          "printer should not match on any other format supported by another printer",
    			outputFormat:  "go-template",
    			expectNoMatch: true,
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			printFlags := NamePrintFlags{
    				Operation: tc.operation,
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 21 15:08:30 UTC 2018
    - 3.1K bytes
    - Viewed (0)
  8. pkg/webhooks/validation/server/server_test.go

    				Object:    runtime.RawExtension{Raw: valid},
    				Operation: kube.Create,
    			},
    			allowed: true,
    		},
    		{
    			name:  "valid update",
    			admit: wh.validate,
    			in: &kube.AdmissionRequest{
    				Kind:      metav1.GroupVersionKind{Kind: collections.Mock.Kind()},
    				Object:    runtime.RawExtension{Raw: valid},
    				Operation: kube.Update,
    			},
    			allowed: true,
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 01 01:34:15 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  9. internal/bucket/encryption/bucket-sse-config_test.go

    			expectedErr:    nil,
    			shouldPass:     true,
    			expectedConfig: actualKMSConfig,
    			keyID:          "my-minio-key",
    		},
    		// 3. Invalid - more than one rule
    		{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Aug 16 18:28:30 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  10. pkg/apis/resource/validation/validation_resourceslice_test.go

    		},
    		"invalid-name-update": {
    			oldResourceSlice: validResourceSlice,
    			update: func(slice *resource.ResourceSlice) *resource.ResourceSlice {
    				slice.Name += "-update"
    				return slice
    			},
    			wantFailures: field.ErrorList{field.Invalid(field.NewPath("metadata", "name"), name+"-update", "field is immutable")},
    		},
    		"invalid-update-nodename": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top