Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for barValue (0.16 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. pkg/apis/core/validation/validation_test.go

    						expectedFieldErrors = append(expectedFieldErrors, &field.Error{
    							Type:     err.Type,
    							Field:    expectedField,
    							BadValue: err.BadValue,
    							Detail:   err.Detail,
    						})
    					}
    					errs := ValidatePodStatusUpdate(newPod, oldPod, PodValidationOptions{})
    					if diff := cmp.Diff(expectedFieldErrors, errs); diff != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    			for i := range errs {
    				// Ignore unchecked fields for this test
    				errs[i].Detail = ""
    				errs[i].BadValue = nil
    			}
    
    			require.ElementsMatch(t, tt.errors, errs)
    		})
    	}
    }
    
    func TestValidateFieldPath(t *testing.T) {
    	sts := schema.Structural{
    		Generic: schema.Generic{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
Back to top