- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for testCases (0.26 sec)
-
cmd/object-handlers_test.go
getPutObjectURL("", testCase.bucketName, testCase.objectName), int64(testCase.dataLen), testCase.chunkSize, bytes.NewReader(testCase.data), testCase.accessKey, testCase.secretKey) case testCase.contentEncoding == "": req, err = newTestStreamingSignedRequest(http.MethodPut, getPutObjectURL("", testCase.bucketName, testCase.objectName), int64(testCase.dataLen), testCase.chunkSize, bytes.NewReader(testCase.data),
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 161.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go
if pod.Annotations == nil { pod.Annotations = make(map[string]string) } pod.Annotations[key] = "true" } mile := func(s string) { milestones = append(milestones, s) } testCases := []struct { name string decorator func(runtime.Object) beginCreate BeginCreateFunc afterCreate AfterCreateFunc // the TTLFunc is an easy hook to force a failure
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 101.8K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods_test.go
fe00::2 ip6-allrouters 203.0.113.1 podFoo.domainFoo podFoo fd00::6 podFoo.domainFoo podFoo `, }, } for _, testCase := range testCases { actualContent := managedHostsFileContent(testCase.hostIPs, testCase.hostName, testCase.hostDomainName, testCase.hostAliases) assert.Equal(t, testCase.expectedContent, string(actualContent), "hosts file content not expected") } } func TestRunInContainerNoSuchPod(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 00:05:23 UTC 2024 - 198.8K bytes - Viewed (0) -
pkg/controller/job/job_controller_test.go
newPod.ResourceVersion = "2" testCases := map[string]struct { requeues int oldPodPhase v1.PodPhase phase v1.PodPhase wantBackoff time.Duration }{ "failure with pod updates batching": { requeues: 0, phase: v1.PodFailed, wantBackoff: syncJobBatchPeriod, }, } for name, tc := range testCases { t.Run(name, func(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 15:36:36 UTC 2024 - 229.2K bytes - Viewed (0) -
pilot/pkg/networking/core/cluster_test.go
}, } for _, testCase := range testCases { t.Run(testCase.name, func(t *testing.T) { test.SetForTest(t, &features.VerifyCertAtClient, testCase.verifyCertAtClient) selectTrafficPolicyComponents(testCase.policy) if testCase.policy.Tls.CaCertificates != testCase.expectedCARootPath { t.Errorf("%v got %v when expecting %v", testCase.name, testCase.policy.Tls.CaCertificates, testCase.expectedCARootPath)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 108.8K bytes - Viewed (0) -
pkg/kubelet/kubelet_test.go
func TestValidateContainerLogStatus(t *testing.T) { testKubelet := newTestKubelet(t, false /* controllerAttachDetachEnabled */) defer testKubelet.Cleanup() kubelet := testKubelet.kubelet containerName := "x" testCases := []struct { statuses []v1.ContainerStatus success bool // whether getting logs for the container should succeed. pSuccess bool // whether getting logs for the previous container should succeed. }{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 106.9K bytes - Viewed (0) -
src/net/http/transport_test.go
} func TestTransportProxy(t *testing.T) { defer afterTest(t) testCases := []struct{ siteMode, proxyMode testMode }{ {http1Mode, http1Mode}, {http1Mode, https1Mode}, {https1Mode, http1Mode}, {https1Mode, https1Mode}, } for _, testCase := range testCases { siteMode := testCase.siteMode proxyMode := testCase.proxyMode
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 21:59:21 UTC 2024 - 192.6K bytes - Viewed (0) -
pkg/printers/internalversion/printers_test.go
}} for _, testCase := range testCases { t.Run(testCase.name, func(t *testing.T) { rows, err := printIngressClass(testCase.ingressClass, printers.GenerateOptions{}) if err != nil { t.Fatalf("Error generating table rows for Ingress: %#v", err) } for i := range rows { rows[i].Object.Object = nil } if !reflect.DeepEqual(testCase.expected, rows) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 14:04:15 UTC 2024 - 218.6K bytes - Viewed (0)