- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 466 for testCases (0.32 sec)
-
pkg/controller/tainteviction/taint_eviction_test.go
expectedDeleteTimes: durationSlice{ {[]string{"pod1", "pod2", "pod3"}, 0}, }, }, } for _, item := range testCases { t.Run(item.description, func(t *testing.T) { t.Logf("Starting testcase %q", item.description) ctx, cancel := context.WithCancel(context.Background()) defer cancel() fakeClientset := fake.NewSimpleClientset(&corev1.PodList{Items: item.pods})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 31.3K bytes - Viewed (0) -
pilot/pkg/security/model/authentication_test.go
expected: nil, }, } for _, c := range testCases { t.Run(c.name, func(t *testing.T) { if got := ConstructSdsSecretConfig(c.secretName); !cmp.Equal(got, c.expected, protocmp.Transform()) { t.Errorf("ConstructSdsSecretConfig: got(%#v), want(%#v)\n", got, c.expected) } }) } } func TestApplyToCommonTLSContext(t *testing.T) { testCases := []struct { name string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Feb 20 22:39:21 UTC 2024 - 18.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/converter_test.go
{ // Test slice of interface{} with different values. obj: &D{ A: []interface{}{float64(3.5), int64(4), "3.0", nil}, }, }, } for i := range testCases { t.Run(fmt.Sprintf("%d", i), func(t *testing.T) { doRoundTrip(t, testCases[i].obj) }) } } // TestUnknownFields checks for the collection of unknown // field errors from the various possible locations of
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 16:02:13 UTC 2023 - 22.9K bytes - Viewed (0) -
pkg/credentialprovider/plugin/config_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 09 14:24:11 UTC 2023 - 14.2K bytes - Viewed (0) -
platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/xctest/SwiftXCTestIntegrationTest.groovy
new XCTestSourceFileElement("NormalTestSuite") { List<XCTestCaseElement> testCases = [ passingTestCase("testExpectedTestName")] }, new XCTestSourceFileElement("SpecialCharsTestSuite") { List<XCTestCaseElement> testCases = [ passingTestCase("test_name_with_leading_underscore"),
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 20.8K bytes - Viewed (0) -
pkg/volume/csi/nodeinfomanager/nodeinfomanager_test.go
}, } test(t, true /* addNodeInfo */, testcases) } func generateVolumeLimits(i int32) *storage.VolumeNodeResources { return &storage.VolumeNodeResources{ Count: utilpointer.Int32Ptr(i), } } // TestUninstallCSIDriver tests UninstallCSIDriver with various existing Node and/or CSINode objects. func TestUninstallCSIDriver(t *testing.T) { testcases := []testcase{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Dec 17 02:02:59 UTC 2022 - 34.3K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/token_test.go
fakeClient.AddReactor("get", "secrets", func(action core.Action) (handled bool, ret runtime.Object, err error) { return true, nil, apierrors.NewNotFound(v1.Resource("secrets"), "foo") }) testCases := []struct { name string token string usages []string extraGroups []string printJoin bool expectedError bool }{ { name: "valid: empty token",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 05:47:48 UTC 2024 - 13.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/dump/dump_test.go
func TestPretty(t *testing.T) { tcs := customString("test") tpcs := pCustomString("&test") tce := customError(0) tpce := pCustomError(0) teb := embed{"test"} tebw := embedwrap{teb, &teb} testCases := []struct { a interface{} want string }{ {int8(93), "(int8) 93\n"}, {int16(93), "(int16) 93\n"}, {int32(93), "(int32) 93\n"}, {int64(93), "(int64) 93\n"}, {int(-93), "(int) -93\n"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 27 01:24:22 UTC 2023 - 10.3K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods_linux_test.go
func TestMakeMounts(t *testing.T) { bTrue := true propagationHostToContainer := v1.MountPropagationHostToContainer propagationBidirectional := v1.MountPropagationBidirectional propagationNone := v1.MountPropagationNone testCases := map[string]struct { container v1.Container podVolumes kubecontainer.VolumeMap supportsRRO bool expectErr bool expectedErrMsg string expectedMounts []kubecontainer.Mount }{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 09 18:00:59 UTC 2024 - 11.3K bytes - Viewed (0) -
pkg/kubelet/config/http_test.go
Spec: v1.PodSpec{ Containers: []v1.Container{{Name: "_INVALID_"}}, }, }, }, } for _, testCase := range testCases { data, err := json.Marshal(testCase.pod) if err != nil { t.Fatalf("%s: Some weird json problem: %v", testCase.desc, err) } fakeHandler := utiltesting.FakeHandler{ StatusCode: http.StatusOK, ResponseBody: string(data), }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 14 09:38:23 UTC 2022 - 11.2K bytes - Viewed (0)