Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 483 for testCases (0.37 sec)

  1. cmd/kube-proxy/app/server_test.go

    		},
    	}
    
    	for i := range testCases {
    		gotHealthz := addressFromDeprecatedFlags(testCases[i].healthzBindAddress, testCases[i].healthzPort)
    		gotMetrics := addressFromDeprecatedFlags(testCases[i].metricsBindAddress, testCases[i].metricsPort)
    
    		errFn := func(name, except, got string) {
    			t.Errorf("case %s: expected %v, got %v", name, except, got)
    		}
    
    		if gotHealthz != testCases[i].expHealthz {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 32.3K 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. testing/internal-testing/src/main/groovy/org/gradle/integtests/fixtures/HtmlTestExecutionResult.groovy

                return assertTestsExecuted(testNames.collect { testCase(it) } as TestCase[])
            }
    
            @Override
            TestClassExecutionResult assertTestsExecuted(TestCase... testCases) {
                def executedAndNotSkipped = testsExecuted - testsSkipped
                assert executedAndNotSkipped.containsAll(testCases)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/cpumanager/state/state_checkpoint_test.go

    	testutil "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/state/testing"
    	"k8s.io/utils/cpuset"
    )
    
    const testingCheckpoint = "cpumanager_checkpoint_test"
    
    func TestCheckpointStateRestore(t *testing.T) {
    	testCases := []struct {
    		description       string
    		checkpointContent string
    		policyName        string
    		initialContainers containermap.ContainerMap
    		expectedError     string
    		expectedState     *stateMemory
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/etcd3/metrics/metrics_test.go

    	registry := metrics.NewKubeRegistry()
    	defer registry.Reset()
    	registry.Register(decodeErrorCounts)
    	resourceName := "pods"
    	testedMetrics := "apiserver_storage_decode_errors_total"
    	testCases := []struct {
    		desc     string
    		resource string
    		want     string
    	}{
    		{
    			desc:     "test success",
    			resource: resourceName,
    			want: `
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 21:15:32 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. 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)
  8. security/pkg/credentialfetcher/plugin/gce_test.go

    		"65xiNg"
    )
    
    func TestShouldRotate(t *testing.T) {
    	jwtExp := time.Date(2020, time.April, 5, 10, 13, 54, 0, time.FixedZone("PDT", -int((7*time.Hour).Seconds())))
    	testCases := map[string]struct {
    		jwt            string
    		now            time.Time
    		expectedRotate bool
    	}{
    		"remaining life time is in grace period": {
    			jwt:            thirdPartyJwt,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 03 18:09:59 UTC 2021
    - 10.1K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/cpumanager/cpu_manager_test.go

    			activePods: func() []*v1.Pod {
    				return []*v1.Pod{testCase.pod}
    			},
    		}
    
    		containers := append(
    			testCase.pod.Spec.InitContainers,
    			testCase.pod.Spec.Containers...)
    
    		containerIDs := append(
    			testCase.initContainerIDs,
    			testCase.containerIDs...)
    
    		expCSets := append(
    			testCase.expInitCSets,
    			testCase.expCSets...)
    
    		cumCSet := cpuset.New()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 42.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/api/validation/objectmeta_test.go

    		t.Errorf("unexpected error message: %v", errs)
    	}
    }
    
    func TestValidateObjectMetaOwnerReferences(t *testing.T) {
    	trueVar := true
    	falseVar := false
    	testCases := []struct {
    		description          string
    		ownerReferences      []metav1.OwnerReference
    		expectError          bool
    		expectedErrorMessage string
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 07 03:12:31 UTC 2022
    - 17.8K bytes
    - Viewed (0)
Back to top