Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for barValue (0.16 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. pkg/apis/resource/validation/validation_resourceclaim_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 {
    		claim        *resource.ResourceClaim
    		wantFailures field.ErrorList
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  8. pkg/scheduler/apis/config/validation/validation_pluginargs_test.go

    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/kubernetes/pkg/scheduler/apis/config"
    )
    
    var (
    	ignoreBadValueDetail = cmpopts.IgnoreFields(field.Error{}, "BadValue", "Detail")
    )
    
    func TestValidateDefaultPreemptionArgs(t *testing.T) {
    	cases := map[string]struct {
    		args     config.DefaultPreemptionArgs
    		wantErrs field.ErrorList
    	}{
    		"valid args (default)": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  9. src/text/template/exec.go

    // setTopVar overwrites the top-nth variable on the stack. Used by range iterations.
    func (s *state) setTopVar(n int, value reflect.Value) {
    	s.vars[len(s.vars)-n].value = value
    }
    
    // varValue returns the value of the named variable.
    func (s *state) varValue(name string) reflect.Value {
    	for i := s.mark() - 1; i >= 0; i-- {
    		if s.vars[i].name == name {
    			return s.vars[i].value
    		}
    	}
    	s.errorf("undefined variable: %s", name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_test.go

    						t.Errorf("expected err type %s, got %s",
    							expected.Type.String(),
    							errList[i].Type.String())
    					}
    					if expected.BadValue != errList[i].BadValue {
    						t.Errorf("expected bad value '%s', got '%s'",
    							expected.BadValue,
    							errList[i].BadValue)
    					}
    				}
    			}
    		})
    
    	}
    }
    
    func TestValidateAndCompileMatchConditions(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 87.2K bytes
    - Viewed (0)
Back to top