Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for testname1 (0.41 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. tests/integration/pilot/common/routing.go

    							return fmt.Errorf("split configured for %d destinations, but framework gives %d", len(split), len(dests))
    						}
    						splitPerHost := map[echo.NamespacedName]int{}
    						destNames := dests.NamespacedNames()
    						for i, pct := range split {
    							splitPerHost[destNames[i]] = pct
    						}
    						for serviceName, exp := range splitPerHost {
    							hostResponses := result.Responses.Match(func(r echoClient.Response) bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K 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 TestNames(t *testing.T) {
    	for _, test := range nameTests {
    		typ := TypeOf(test.v).Elem()
    		if got := typ.Name(); got != test.want {
    			t.Errorf("%v Name()=%q, want %q", typ, got, test.want)
    		}
    	}
    }
    
    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