Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 36 for testPass (0.34 sec)

  1. 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)
  2. pkg/controller/podautoscaler/horizontal_test.go

    func TestStoreScaleEvents(t *testing.T) {
    	type TestCase struct {
    		name                   string
    		key                    string
    		replicaChange          int32
    		prevScaleEvents        []timestampedScaleEvent
    		newScaleEvents         []timestampedScaleEvent
    		scalingRules           *autoscalingv2.HPAScalingRules
    		expectedReplicasChange int32
    	}
    	tests := []TestCase{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 199.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/apiserver_test.go

    		} else if simpleStorage.actualNamespace != testCase.namespace {
    			t.Errorf("%d: %q unexpected resource namespace: %s", i, testCase.url, simpleStorage.actualNamespace)
    		}
    		if simpleStorage.requestedLabelSelector == nil || simpleStorage.requestedLabelSelector.String() != testCase.label {
    			t.Errorf("%d: unexpected label selector: expected=%v got=%v", i, testCase.label, simpleStorage.requestedLabelSelector)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:15:22 UTC 2023
    - 158.7K bytes
    - Viewed (0)
  4. pkg/config/validation/validation_test.go

    		})
    	}
    }
    
    func TestValidateHTTPHeaderName(t *testing.T) {
    	testCases := []struct {
    		name  string
    		valid bool
    	}{
    		{name: "header1", valid: true},
    		{name: "X-Requested-With", valid: true},
    		{name: "", valid: false},
    	}
    
    	for _, tc := range testCases {
    		if got := ValidateHTTPHeaderName(tc.name); (got == nil) != tc.valid {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. pkg/apis/batch/validation/validation_test.go

    	validPodTemplateSpec := getValidPodTemplateSpecForGenerated(getValidGeneratedSelector())
    	validPodTemplateSpec.Labels = map[string]string{}
    
    	type testCase struct {
    		old       *batch.CronJobSpec
    		new       *batch.CronJobSpec
    		expectErr bool
    	}
    
    	cases := map[string]testCase{
    		"no validation because timeZone is nil for old and new": {
    			old: &batch.CronJobSpec{
    				Schedule:          "0 * * * *",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 124.3K 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. tests/integration/pilot/common/routing.go

    func VMTestCases(vms echo.Instances) func(t TrafficContext) {
    	return func(t TrafficContext) {
    		if t.Settings().Skip(echo.VM) {
    			t.Skipf("VMs are disabled")
    		}
    		var testCases []vmCase
    
    		for _, vm := range vms {
    			testCases = append(testCases,
    				vmCase{
    					name: "dns: VM to k8s cluster IP service name.namespace host",
    					from: vm,
    					to:   t.Apps.A,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
Back to top