Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 682 for testPass (0.14 sec)

  1. pkg/kubelet/cm/cpumanager/policy_static_test.go

    		tm = topologymanager.NewFakeManagerWithHint(testCase.topologyHint)
    	}
    	cpus := cpuset.New()
    	if testCase.reservedCPUs != nil {
    		cpus = testCase.reservedCPUs.Clone()
    	}
    	policy, _ := NewStaticPolicy(testCase.topo, testCase.numReservedCPUs, cpus, tm, testCase.options)
    
    	st := &mockState{
    		assignments:   testCase.stAssignments,
    		defaultCPUSet: testCase.stDefaultCPUSet,
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  2. cmd/signature-v4-parser_test.go

    			expectedErrCode:  ErrNone,
    		},
    	}
    	for i, testCase := range testCases {
    		actualSignStr, actualErrCode := parseSignature(testCase.inputSignElement)
    		if testCase.expectedErrCode != actualErrCode {
    			t.Fatalf("Test %d: Expected the APIErrCode to be %d, got %d", i+1, testCase.expectedErrCode, actualErrCode)
    		}
    		if actualErrCode == ErrNone {
    			if testCase.expectedSignStr != actualSignStr {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  3. pkg/registry/discovery/endpointslice/strategy_test.go

    				},
    			},
    		},
    	}
    
    	for _, testcase := range testcases {
    		t.Run(testcase.name, func(t *testing.T) {
    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.TopologyAwareHints, testcase.hintsGateEnabled)
    
    			dropDisabledFieldsOnUpdate(testcase.oldEPS, testcase.newEPS)
    			if !apiequality.Semantic.DeepEqual(testcase.newEPS, testcase.expectedEPS) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  4. internal/config/identity/openid/jwt_test.go

    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			claims := map[string]interface{}{}
    			claims["exp"] = testCase.exp
    			err := updateClaimsExpiry(testCase.dsecs, claims)
    			if err != nil && !testCase.expectedFailure {
    				t.Errorf("Expected success, got failure %s", err)
    			}
    			if err == nil && testCase.expectedFailure {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. internal/disk/stat_test.go

    		},
    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			tmpfile, err := os.CreateTemp("", "testfile")
    			if err != nil {
    				t.Error(err)
    			}
    			tmpfile.WriteString(testCase.stat)
    			tmpfile.Sync()
    			tmpfile.Close()
    
    			iostats, err := readDriveStats(tmpfile.Name())
    			if err != nil && !testCase.expectErr {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. internal/http/listener_test.go

    	}
    
    	for testIdx, testCase := range testCases {
    		listener, listenErrs := newHTTPListener(context.Background(),
    			testCase.serverAddrs,
    			TCPOptions{},
    		)
    		for i, expectedListenErr := range testCase.expectedListenErrs {
    			if !expectedListenErr {
    				if listenErrs[i] != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/helpers_linux_test.go

    			input:  int64(1500),
    			quota:  int64(150000),
    			period: uint64(100000),
    		},
    	}
    	for _, testCase := range testCases {
    		quota := MilliCPUToQuota(testCase.input, int64(testCase.period))
    		if quota != testCase.quota {
    			t.Errorf("Input %v and %v, expected quota %v, but got quota %v", testCase.input, testCase.period, testCase.quota, quota)
    		}
    	}
    }
    
    func TestHugePageLimits(t *testing.T) {
    	Mi := int64(1024 * 1024)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  8. cmd/signature-v4-utils_test.go

    			if testCase.inputHeaderKey != "" {
    				q.Add(testCase.inputHeaderKey, testCase.inputHeaderValue)
    			}
    			inputReq.URL.RawQuery = q.Encode()
    		} else if testCase.inputHeaderKey != "" {
    			inputReq.Header.Set(testCase.inputHeaderKey, testCase.inputHeaderValue)
    		}
    		inputReq.ParseForm()
    
    		actualResult := skipContentSha256Cksum(inputReq)
    		if testCase.expectedResult != actualResult {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 05 21:26:41 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/options/etcd_test.go

    		},
    	}
    
    	for _, testcase := range testCases {
    		t.Run(testcase.name, func(t *testing.T) {
    			errs := testcase.testOptions.Validate()
    			if len(testcase.expectErr) != 0 && !strings.Contains(utilerrors.NewAggregate(errs).Error(), testcase.expectErr) {
    				t.Errorf("got err: %v, expected err: %s", errs, testcase.expectErr)
    			}
    			if len(testcase.expectErr) == 0 && len(errs) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  10. pkg/volume/emptydir/empty_dir_test.go

    			shouldFail:     true,
    			expectedResult: "",
    		},
    	}
    
    	for testCaseName, testCase := range testCases {
    		t.Run(testCaseName, func(t *testing.T) {
    			value, err := getPageSizeMountOption(testCase.medium, testCase.pod)
    			if testCase.shouldFail && err == nil {
    				t.Errorf("%s: Unexpected success", testCaseName)
    			} else if !testCase.shouldFail && err != nil {
    				t.Errorf("%s: Unexpected error: %v", testCaseName, err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top