Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for testPass (0.2 sec)

  1. pkg/kubelet/eviction/helpers_test.go

    		},
    	}
    	for testName, testCase := range testCases {
    		thresholds, err := ParseThresholdConfig(testCase.allocatableConfig, testCase.evictionHard, testCase.evictionSoft, testCase.evictionSoftGracePeriod, testCase.evictionMinReclaim)
    		if testCase.expectErr != (err != nil) {
    			t.Errorf("Err not as expected, test: %v, error expected: %v, actual: %v", testName, testCase.expectErr, err)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. cmd/server_test.go

    		{serverType: "ErasureSet", signer: signerV4},
    	}
    	globalServerCtxt.StrictS3Compat = true
    	for i, testCase := range testCases {
    		t.Run(fmt.Sprintf("Test: %d, ServerType: %s", i+1, testCase.serverType), func(t *testing.T) {
    			runAllTests(testCase, &check{t, testCase.serverType})
    		})
    	}
    }
    
    // Setting up the test suite.
    // Starting the Test server with temporary backend.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  6. pkg/api/pod/util_test.go

    			},
    		},
    	}
    	for _, tc := range testCases {
    		t.Run(tc.desc, func(t *testing.T) {
    			MarkPodProposedForResize(tc.oldPod, tc.newPod)
    			if diff := cmp.Diff(tc.expectedPod, tc.newPod); diff != "" {
    				t.Errorf("unexpected pod spec (-want, +got):\n%s", diff)
    			}
    		})
    	}
    }
    
    func TestDropClusterTrustBundleProjectedVolumes(t *testing.T) {
    	testCases := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  7. 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)
  8. pkg/kubelet/eviction/eviction_manager_test.go

    func TestPIDPressure_VerifyPodStatus(t *testing.T) {
    	testCases := map[string]struct {
    		wantPodStatus v1.PodStatus
    	}{
    		"eviction due to pid pressure": {
    			wantPodStatus: v1.PodStatus{
    				Phase:   v1.PodFailed,
    				Reason:  "Evicted",
    				Message: "The node was low on resource: pids. Threshold quantity: 1200, available: 500. ",
    			},
    		},
    	}
    	for name, tc := range testCases {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  9. 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)
  10. src/reflect/all_test.go

    		Embed
    		x, X int
    	}
    	type S4 struct {
    		*Embed
    		x, X int
    	}
    
    	type testCase struct {
    		// -1 means Addr().Elem() of current value
    		index  []int
    		canSet bool
    	}
    	tests := []struct {
    		val   Value
    		cases []testCase
    	}{{
    		val: ValueOf(&S1{}),
    		cases: []testCase{
    			{[]int{0}, false},
    			{[]int{0, -1}, false},
    			{[]int{0, 0}, false},
    			{[]int{0, 0, -1}, false},
    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