Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for badValue1 (0.34 sec)

  1. pkg/kubelet/cm/cpumanager/policy_static_test.go

    		},
    		{
    			description: "bad single arg",
    			policyOptions: map[string]string{
    				"badValue1": "",
    			},
    			expectedError: true,
    		},
    		{
    			description: "bad multiple arg",
    			policyOptions: map[string]string{
    				"badValue1": "",
    				"badvalue2": "aaaa",
    			},
    			expectedError: true,
    		},
    		{
    			description: "good arg",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/validation/validation_test.go

    			t.Errorf("expected true for '%s': %v", val, msgs)
    		}
    	}
    
    	badValues := []string{
    		"", "A", "ABC", "aBc", "A1", "A-1", "1-A",
    		"-", "a-", "-a", "1-", "-1",
    		"_", "a_", "_a", "a_b", "1_", "_1", "1_2",
    		".", "a.", ".a", "a.b", "1.", ".1", "1.2",
    		" ", "a ", " a", "a b", "1 ", " 1", "1 2",
    		strings.Repeat("a", 64),
    	}
    	for _, val := range badValues {
    		if msgs := IsDNS1123Label(val); len(msgs) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 04:51:54 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  3. operator/cmd/mesh/testdata/manifest-generate/input/flag_force.yaml

    apiVersion: install.istio.io/v1alpha1
    kind: IstioOperator
    spec:
      profile: empty
      components:
        pilot:
          enabled: true
      values:
        global:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 07 02:36:43 UTC 2020
    - 171 bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/labels/selector_test.go

    				&field.Error{
    					Type:     field.ErrorTypeInvalid,
    					Field:    "values",
    					BadValue: []string{},
    				},
    			},
    		},
    		{
    			Key:  "x2",
    			Op:   selection.NotIn,
    			Vals: sets.NewString(),
    			WantErr: field.ErrorList{
    				&field.Error{
    					Type:     field.ErrorTypeInvalid,
    					Field:    "values",
    					BadValue: []string{},
    				},
    			},
    		},
    		{
    			Key:  "x3",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 14 16:39:04 UTC 2022
    - 29.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization_test.cc

        func.func @main() -> tensor<1xi32> {
          %0 = "tf.BadValue"() {value = dense<1000> : tensor<1xi32>} : () -> tensor<1xi32>
          func.return %0 : tensor<1xi32>
        }
      })";
      CellReader<int64_t> error(kFailedLegalizationStreamz);
      CreateModule(kMlirModuleStr);
    
      auto result = Run();
    
      EXPECT_TRUE(result.failed());
      EXPECT_EQ(error.Delta("tf.BadValue"), 1);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top