Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 3,141 for valid (0.04 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/validation/validation.go

    func IsValidIPv4Address(fldPath *field.Path, value string) field.ErrorList {
    	var allErrors field.ErrorList
    	ip := netutils.ParseIPSloppy(value)
    	if ip == nil || ip.To4() == nil {
    		allErrors = append(allErrors, field.Invalid(fldPath, value, "must be a valid IPv4 address"))
    	}
    	return allErrors
    }
    
    // IsValidIPv6Address tests that the argument is a valid IPv6 address.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 16:08:43 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. pilot/pkg/model/validation_test.go

    				},
    			},
    		},
    	}
    	for _, c := range cases {
    		t.Run(c.name, func(t *testing.T) {
    			if got := c.instance.Validate(); (got == nil) != c.valid {
    				t.Fatalf("%s failed: got valid=%v but wanted valid=%v: %v", c.name, got == nil, c.valid, got)
    			}
    		})
    	}
    }
    
    func TestServiceValidate(t *testing.T) {
    	ports := PortList{
    		{Name: "http", Port: 80, Protocol: protocol.HTTP},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 23 19:35:35 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. pkg/registry/storage/volumeattachment/strategy_test.go

    	return &storage.VolumeAttachment{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: name,
    		},
    		Spec: storage.VolumeAttachmentSpec{
    			Attacher: "valid-attacher",
    			Source: storage.VolumeAttachmentSource{
    				PersistentVolumeName: &name,
    			},
    			NodeName: "valid-node",
    		},
    	}
    }
    
    func getValidVolumeAttachmentWithInlineSpec(name string) *storage.VolumeAttachment {
    	volumeAttachment := getValidVolumeAttachment(name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  4. pkg/apis/rbac/validation/validation_test.go

    			RoleRef:    rbac.RoleRef{APIGroup: rbac.GroupName, Kind: "ClusterRole", Name: "valid"},
    			Subjects: []rbac.Subject{
    				{Name: "validsaname", APIGroup: "", Namespace: "foo", Kind: rbac.ServiceAccountKind},
    				{Name: "valid@username", APIGroup: rbac.GroupName, Kind: rbac.UserKind},
    				{Name: "valid@groupname", APIGroup: rbac.GroupName, Kind: rbac.GroupKind},
    			},
    		},
    	)
    	if len(errs) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  5. pkg/registry/apps/controllerrevision/strategy_test.go

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

    		{"9.3.4.0 is valid since >= 6.0", "9.3.4.0", true},
    		{"not a valid semantic version", "total junk", false},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			valid := checkMinVersion(testCase.vstring)
    			if testCase.valid != valid {
    				t.Errorf("Expected result: %v, Got result: %v", testCase.valid, valid)
    			}
    		})
    	}
    }
    
    const testIPSetVersion = "v6.19"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  7. pkg/proxy/apis/config/validation/validation_test.go

    			addresses: []string{},
    		},
    		"valid 1": {
    			addresses: []string{"127.0.0.0/8"},
    		},
    		"valid 2": {
    			addresses: []string{"0.0.0.0/0"},
    		},
    		"valid 3": {
    			addresses: []string{"::/0"},
    		},
    		"valid 4": {
    			addresses: []string{"127.0.0.1/32", "1.2.3.0/24"},
    		},
    		"valid 5": {
    			addresses: []string{"127.0.0.1/32"},
    		},
    		"valid 6": {
    			addresses: []string{"::1/128"},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  8. cmd/signature-v4-parser_test.go

    				strings.Join([]string{
    					// generating a valid credential.
    					generateCredentialStr(
    						"access key",
    						sampleTimeStr,
    						"us-west-1",
    						"s3",
    						"aws4_request"),
    					// valid SignedHeader.
    					"SignedHeaders=host;x-amz-content-sha256;x-amz-date",
    					// valid Signature field.
    					// a valid signature is of form "Signature="
    					"Signature=abcd",
    				}, ","),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/upgrade/diff_test.go

    		cfgPath         string
    		expectedError   bool
    	}{
    		{
    			name:            "valid: run diff with empty config path on valid manifest path",
    			cfgPath:         "",
    			setManifestPath: true,
    			manifestPath:    testUpgradeDiffManifest,
    			expectedError:   false,
    		},
    		{
    			name:            "valid: run diff on valid manifest path",
    			cfgPath:         testUpgradeDiffConfig,
    			setManifestPath: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 04:08:57 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/ModelRuleValidationIntegrationTest.groovy

            fails "tasks"
    
            and:
            failure.assertHasCause("Failed to apply plugin class 'MyPlugin'")
            failure.assertHasCause('''Type MyPlugin.Rules is not a valid rule source:
    - Method strings() is not a valid rule method: The declared model element path ' ' is not a valid path: Model element name ' ' has illegal first character ' ' (names must start with an ASCII letter or underscore).''')
        }
    
        def "model name can be at nested path"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top