Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for testSam (0.18 sec)

  1. pkg/apis/apps/validation/validation_test.go

    					NumberAvailable:        1,
    					NumberUnavailable:      -2,
    				},
    			},
    		},
    	}
    
    	for testName, errorCase := range errorCases {
    		if errs := ValidateDaemonSetStatusUpdate(&errorCase.update, &errorCase.old); len(errs) == 0 {
    			t.Errorf("expected failure: %s", testName)
    		}
    	}
    }
    
    func TestValidateDaemonSetUpdate(t *testing.T) {
    	validSelector := map[string]string{"a": "b"}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 111.9K bytes
    - Viewed (0)
  2. pkg/kubelet/eviction/helpers_test.go

    						Quantity: quantityMustParse("1Gi"),
    					},
    				},
    			},
    		},
    	}
    	for testName, testCase := range testCases {
    		t.Run(testName, func(t *testing.T) {
    			if !thresholdsEqual(testCase.expected, addAllocatableThresholds(testCase.thresholds)) {
    				t.Errorf("Err not as expected, test: %v, Unexpected data: %s", testName, cmp.Diff(testCase.expected, addAllocatableThresholds(testCase.thresholds)))
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_node_status_test.go

    		nodeIP   string
    		success  bool
    		testName string
    	}
    	tests := []test{
    		{
    			nodeIP:   "",
    			success:  false,
    			testName: "IP not set",
    		},
    		{
    			nodeIP:   "127.0.0.1",
    			success:  false,
    			testName: "IPv4 loopback address",
    		},
    		{
    			nodeIP:   "::1",
    			success:  false,
    			testName: "IPv6 loopback address",
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    				tt.costBudget = celconfig.RuntimeCELCostBudget
    			}
    			ctx := context.TODO()
    			for j := range tt.valid {
    				validRule := tt.valid[j]
    				testName := validRule
    				if len(testName) > 127 {
    					testName = testName[:127]
    				}
    				t.Run(testName, func(t *testing.T) {
    					t.Parallel()
    					s := withRule(*tt.schema, validRule)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  5. pkg/controller/statefulset/stateful_set_control_test.go

    	set.Spec.MinReadySeconds = minReadySeconds
    	return set
    }
    
    func runTestOverPVCRetentionPolicies(t *testing.T, testName string, testFn func(*testing.T, *apps.StatefulSetPersistentVolumeClaimRetentionPolicy)) {
    	subtestName := "StatefulSetAutoDeletePVCDisabled"
    	if testName != "" {
    		subtestName = fmt.Sprintf("%s/%s", testName, subtestName)
    	}
    	t.Run(subtestName, func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 19:01:47 UTC 2024
    - 108.7K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/cluster_test.go

    	for _, tc := range cases {
    		settingsName := "default"
    		if settings != nil {
    			settingsName = "override"
    		}
    		testName := fmt.Sprintf("%s-%s-%s", tc.clusterName, settingsName, tc.proxyType)
    		t.Run(testName, func(t *testing.T) {
    			g := NewWithT(t)
    			clusters := xdstest.ExtractClusters(buildTestClusters(clusterTest{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  7. pkg/controller/nodelifecycle/node_lifecycle_controller_test.go

    			},
    			expectedFollowingStates: map[string]ZoneState{
    				testutil.CreateZoneID("region1", "zone1"): stateFullDisruption,
    			},
    		},
    	}
    
    	for testName, tt := range tests {
    		t.Run(testName, func(t *testing.T) {
    			_, ctx := ktesting.NewTestContext(t)
    			fakeNodeHandler := &testutil.FakeNodeHandler{
    				Existing:  tt.nodeList,
    				Clientset: fake.NewSimpleClientset(),
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 03:26:45 UTC 2024
    - 119K bytes
    - Viewed (0)
  8. api/openapi-spec/v3/apis__apiextensions.k8s.io__v1_openapi.json

    relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 178.6K bytes
    - Viewed (0)
  9. src/net/http/transport_test.go

    		{Header{"\r\nTrx": {"X-Another-One"}}, `invalid trailer field name "\r\nTrx"`},
    	}
    
    	for i, tt := range cases {
    		testName := fmt.Sprintf("%s%d", mode, i)
    		t.Run(testName, func(t *testing.T) {
    			req, err := NewRequest("GET", cst.URL, nil)
    			if err != nil {
    				t.Fatal(err)
    			}
    			req.Trailer = tt.trailer
    			res, err := cst.Client().Do(req)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  10. src/reflect/all_test.go

    	}
    }
    
    func TestNilPtrValueSub(t *testing.T) {
    	var pi *int
    	if pv := ValueOf(pi); pv.Elem().IsValid() {
    		t.Error("ValueOf((*int)(nil)).Elem().IsValid()")
    	}
    }
    
    func TestMap(t *testing.T) {
    	m := map[string]int{"a": 1, "b": 2}
    	mv := ValueOf(m)
    	if n := mv.Len(); n != len(m) {
    		t.Errorf("Len = %d, want %d", n, len(m))
    	}
    	keys := mv.MapKeys()
    	newmap := MakeMap(mv.Type())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top