Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 41 for badvals (0.12 sec)

  1. pkg/registry/apps/daemonset/strategy_test.go

    			},
    			map[string]string{"a": "b"},
    			map[string]string{"c": "d"},
    			field.ErrorList{
    				&field.Error{
    					Type:  field.ErrorTypeInvalid,
    					Field: field.NewPath("spec").Child("selector").String(),
    					BadValue: &metav1.LabelSelector{
    						MatchLabels:      map[string]string{"c": "d"},
    						MatchExpressions: []metav1.LabelSelectorRequirement{},
    					},
    					Detail: "field is immutable",
    				},
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 01:52:02 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  2. src/internal/profile/merge.go

    		return err
    	}
    
    	baseVals := make([]int64, len(p.SampleType))
    	for _, s := range pb.Sample {
    		for i, v := range s.Value {
    			baseVals[i] += v
    		}
    	}
    
    	srcVals := make([]int64, len(p.SampleType))
    	for _, s := range p.Sample {
    		for i, v := range s.Value {
    			srcVals[i] += v
    		}
    	}
    
    	normScale := make([]float64, len(baseVals))
    	for i := range baseVals {
    		if srcVals[i] == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 17 19:35:56 UTC 2020
    - 11.3K bytes
    - Viewed (0)
  3. pkg/apis/resource/validation/validation_resourceslice_test.go

    		},
    	}
    }
    
    func TestValidateResourceSlice(t *testing.T) {
    	goodName := "foo"
    	badName := "!@#$%^"
    	driverName := "test.example.com"
    	now := metav1.Now()
    	badValue := "spaces not allowed"
    
    	scenarios := map[string]struct {
    		slice        *resource.ResourceSlice
    		wantFailures field.ErrorList
    	}{
    		"good": {
    			slice: testResourceSlice(goodName, goodName, driverName),
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/noderesources/test_util.go

    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/util/validation/field"
    	"k8s.io/kubernetes/pkg/scheduler/apis/config"
    )
    
    var (
    	ignoreBadValueDetail = cmpopts.IgnoreFields(field.Error{}, "BadValue", "Detail")
    	defaultResources     = []config.ResourceSpec{
    		{Name: string(v1.ResourceCPU), Weight: 1},
    		{Name: string(v1.ResourceMemory), Weight: 1},
    	}
    	extendedRes         = "abc.com/xyz"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 01:07:28 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  5. pkg/apis/resource/validation/validation_podschedulingcontext_test.go

    	}
    }
    
    func TestValidatePodSchedulingContexts(t *testing.T) {
    	goodName := "foo"
    	goodNS := "ns"
    	goodPodSchedulingSpec := resource.PodSchedulingContextSpec{}
    	now := metav1.Now()
    	badName := "!@#$%^"
    	badValue := "spaces not allowed"
    
    	scenarios := map[string]struct {
    		schedulingCtx *resource.PodSchedulingContext
    		wantFailures  field.ErrorList
    	}{
    		"good-schedulingCtx": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 09:18:08 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  6. pkg/apis/resource/validation/validation_resourceclaimtemplate_test.go

    	goodName := "foo"
    	badName := "!@#$%^"
    	goodNS := "ns"
    	goodClaimSpec := resource.ResourceClaimSpec{
    		ResourceClassName: goodName,
    		AllocationMode:    validMode,
    	}
    	now := metav1.Now()
    	badValue := "spaces not allowed"
    	badAPIGroup := "example.com/v1"
    	goodAPIGroup := "example.com"
    
    	scenarios := map[string]struct {
    		template     *resource.ResourceClaimTemplate
    		wantFailures field.ErrorList
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  7. pkg/apis/resource/validation/validation_resourceclaimparameters_test.go

    		},
    		DriverRequests: requests,
    	}
    }
    
    var goodRequests []resource.DriverRequests
    
    func TestValidateResourceClaimParameters(t *testing.T) {
    	goodName := "foo"
    	badName := "!@#$%^"
    	badValue := "spaces not allowed"
    	now := metav1.Now()
    
    	scenarios := map[string]struct {
    		parameters   *resource.ResourceClaimParameters
    		wantFailures field.ErrorList
    	}{
    		"good": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:21:16 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. pkg/apis/resource/validation/validation_resourceclassparameters_test.go

    			Namespace: namespace,
    		},
    		Filters: filters,
    	}
    }
    
    var goodFilters []resource.ResourceFilter
    
    func TestValidateResourceClassParameters(t *testing.T) {
    	goodName := "foo"
    	badName := "!@#$%^"
    	badValue := "spaces not allowed"
    	now := metav1.Now()
    
    	scenarios := map[string]struct {
    		parameters   *resource.ResourceClassParameters
    		wantFailures field.ErrorList
    	}{
    		"good": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:21:16 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  9. pkg/apis/resource/validation/validation_resourceclass_test.go

    	goodName := "foo"
    	now := metav1.Now()
    	goodParameters := resource.ResourceClassParametersReference{
    		Name:      "valid",
    		Namespace: "valid",
    		Kind:      "foo",
    	}
    	badName := "!@#$%^"
    	badValue := "spaces not allowed"
    	badAPIGroup := "example.com/v1"
    	goodAPIGroup := "example.com"
    
    	scenarios := map[string]struct {
    		class        *resource.ResourceClass
    		wantFailures field.ErrorList
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/env_write.txt

    ! go env -w GOOS
    stderr 'arguments must be KEY=VALUE: invalid argument: GOOS'
    
    # go env -w rejects invalid GO111MODULE values, as otherwise cmd/go would break
    ! go env -w GO111MODULE=badvalue
    stderr 'invalid GO111MODULE value "badvalue"'
    
    # go env -w rejects invalid GOPATH values
    ! go env -w GOPATH=~/go
    stderr 'GOPATH entry cannot start with shell metacharacter'
    
    ! go env -w GOPATH=./go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 18:42:31 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top