Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,718 for testPass (0.13 sec)

  1. pkg/kubelet/cm/memorymanager/memory_manager_test.go

    			},
    			expectedError: nil,
    			machineInfo:   machineInfo,
    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.description, func(t *testing.T) {
    			res, err := getSystemReservedMemory(&testCase.machineInfo, testCase.nodeAllocatableReservation, testCase.systemReservedMemory)
    
    			if !reflect.DeepEqual(res, testCase.expectedReserved) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 05 13:01:40 UTC 2023
    - 70.2K bytes
    - Viewed (0)
  2. pkg/kubelet/apis/config/validation/validation_reserved_memory_test.go

    		},
    	}
    
    	for _, testCase := range testCases {
    		errors := validateReservedMemoryConfiguration(testCase.kubeletConfiguration)
    
    		if len(errors) != 0 && testCase.expectedError == nil {
    			t.Errorf("expected errors %v, got %v", errors, testCase.expectedError)
    		}
    
    		if testCase.expectedError != nil {
    			if len(errors) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 18 13:38:01 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  3. internal/config/etcd/etcd_test.go

    		{"http://localhost:2379", []string{"http://localhost:2379"}, false, true},
    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run(testCase.s, func(t *testing.T) {
    			endpoints, secure, err := parseEndpoints(testCase.s)
    			if err != nil && testCase.success {
    				t.Errorf("expected to succeed but failed with %s", err)
    			}
    			if !testCase.success && err == nil {
    				t.Error("expected failure but succeeded instead")
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  4. cmd/api-response_test.go

    		},
    	}
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			gotLocation := getObjectLocation(testCase.request, testCase.domains, testCase.bucket, testCase.object)
    			if testCase.expectedLocation != gotLocation {
    				t.Errorf("expected %s, got %s", testCase.expectedLocation, gotLocation)
    			}
    		})
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  5. pkg/proxy/ipvs/ipset_test.go

    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			set := NewIPSet(fakeipset.NewFake(testIPSetVersion), testCase.set.Name, testCase.setType, testCase.ipv6, "comment-"+testCase.set.Name)
    
    			if err := set.handle.CreateSet(&set.IPSet, true); err != nil {
    				t.Errorf("Unexpected error: %v", err)
    			}
    
    			for _, entry := range testCase.currentEntries {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  6. 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)
  7. cmd/api-utils_test.go

    		{"_user", "url", "_user"},
    		{"firstname.lastname", "url", "firstname.lastname"},
    	}
    	for i, testCase := range testCases {
    		t.Run(fmt.Sprintf("Test%d", i+1), func(t *testing.T) {
    			outputText := s3EncodeName(testCase.inputText, testCase.encodingType)
    			if testCase.expectedOutput != outputText {
    				t.Errorf("Expected `%s`, got `%s`", testCase.expectedOutput, outputText)
    			}
    		})
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  8. pkg/kubelet/active_deadline_test.go

    	testCases := []struct {
    		pod      *v1.Pod
    		expected bool
    	}{{pods[0], true}, {pods[1], false}, {pods[2], false}, {pods[3], false}, {pods[4], false}}
    
    	for i, testCase := range testCases {
    		if actual := handler.ShouldSync(testCase.pod); actual != testCase.expected {
    			t.Errorf("[%d] ShouldSync expected %#v, got %#v", i, testCase.expected, actual)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 08 09:06:42 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  9. cmd/xl-storage_unix_test.go

    }
    
    // Tests if the directory and file creations happen with proper umask.
    func TestIsValidUmaskVol(t *testing.T) {
    	tmpPath := t.TempDir()
    	testCases := []struct {
    		volName       string
    		expectedUmask int
    	}{
    		{"is-this-valid", getUmask()},
    	}
    	testCase := testCases[0]
    
    	// Initialize a new xlStorage layer.
    	disk, err := newLocalXLStorage(tmpPath)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jul 25 19:37:26 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  10. internal/amztime/parse_test.go

    		},
    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run(testCase.timeStr, func(t *testing.T) {
    			gott, goterr := Parse(testCase.timeStr)
    			if !errors.Is(goterr, testCase.expectedErr) {
    				t.Errorf("expected %v, got %v", testCase.expectedErr, goterr)
    			}
    			if !gott.Equal(testCase.expectedTime) {
    				t.Errorf("expected %v, got %v", testCase.expectedTime, gott)
    			}
    		})
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Sep 07 14:24:54 UTC 2022
    - 1.6K bytes
    - Viewed (0)
Back to top