- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 1,123 for testCases (0.26 sec)
-
cmd/kubeadm/app/util/apiclient/wait_test.go
limitations under the License. */ package apiclient import ( "reflect" "testing" kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm" ) func TestGetControlPlaneComponents(t *testing.T) { testcases := []struct { name string cfg *kubeadmapi.ClusterConfiguration expected []controlPlaneComponent }{ { name: "port values from config", cfg: &kubeadmapi.ClusterConfiguration{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 16 15:33:38 UTC 2024 - 2.3K bytes - Viewed (0) -
pkg/util/tail/tail_test.go
line := strings.Repeat("a", blockSize) testBytes := []byte(line + "\n" + line + "\n" + line + "\n" + line + "\n" + line[blockSize/2:]) // incomplete line file.Write(testBytes) testCases := []struct { name string max int64 longerThanMax bool expected string }{ { name: "the max is negative", max: -1, longerThanMax: true,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 13:13:22 UTC 2024 - 2.3K bytes - Viewed (0) -
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) -
pkg/kubelet/network/dns/dns_test.go
select { case event := <-recorder.Events: return event default: return "" } } ) func TestParseResolvConf(t *testing.T) { testCases := []struct { data string nameservers []string searches []string options []string isErr bool }{ {"", []string{}, []string{}, []string{}, false},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 25.6K bytes - Viewed (0) -
platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/xctest/XCTestTestFrameworkIntegrationTest.groovy
List<XCTestCaseElement> testCases = [ testCase(failingTestCaseName, FAILING_TEST, true), passingTestCase(passingTestCaseName) ] }.withImport(libcModuleName), new XCTestSourceFileElement("SomeOtherTest") { List<XCTestCaseElement> testCases = [ passingTestCase(passingTestCaseName)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 4.7K bytes - Viewed (0) -
pkg/kubelet/eviction/helpers_test.go
equal: false, }, } for i, testCase := range testCases { if compareThresholdValue(testCase.a, testCase.b) != testCase.equal || compareThresholdValue(testCase.b, testCase.a) != testCase.equal { t.Errorf("Test case: %v failed", i) } } } func TestAddContainerFsThresholds(t *testing.T) { gracePeriod := time.Duration(1) testCases := []struct { description string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 15 23:14:12 UTC 2024 - 106.7K bytes - Viewed (0) -
cmd/erasure-object_test.go
} } toObjectNames := func(testCases []testCaseType) []ObjectToDelete { names := make([]ObjectToDelete, len(testCases)) for i := range testCases { names[i] = ObjectToDelete{ ObjectV: ObjectV{ ObjectName: testCases[i].object, }, } } return names } objectNames := toObjectNames(testCases)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jan 30 20:43:25 UTC 2024 - 36.8K bytes - Viewed (0) -
cluster/gce/gci/apiserver_kms_test.go
EncryptionProviderConfig string CloudKMSIntegration bool } func TestEncryptionProviderFlag(t *testing.T) { var ( encryptionConfigFlag = "--encryption-provider-config" ) testCases := []struct { desc string encryptionProviderConfig string wantFlag bool }{ { desc: "ENCRYPTION_PROVIDER_CONFIG is set",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 30 06:23:50 UTC 2021 - 6.3K bytes - Viewed (0) -
cmd/kubeadm/app/images/images_test.go
} func TestGetPauseImage(t *testing.T) { testcases := []struct { name string cfg *kubeadmapi.ClusterConfiguration expected string }{ { name: "pause image defined", cfg: &kubeadmapi.ClusterConfiguration{ ImageRepository: "test.repo", }, expected: "test.repo/pause:" + constants.PauseVersion, }, } for _, tc := range testcases { t.Run(tc.name, func(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 06:33:37 UTC 2023 - 8.9K bytes - Viewed (0) -
pkg/apis/policy/validation/validation_test.go
func TestValidateUnhealthyPodEvictionPolicyDisruptionBudgetSpec(t *testing.T) { c1 := intstr.FromString("10%") alwaysAllowPolicy := policy.AlwaysAllow invalidPolicy := policy.UnhealthyPodEvictionPolicyType("Invalid") testCases := []struct { name string pdbSpec policy.PodDisruptionBudgetSpec expectErr bool }{{ name: "valid nil UnhealthyPodEvictionPolicy", pdbSpec: policy.PodDisruptionBudgetSpec{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 07 20:44:13 UTC 2023 - 9.1K bytes - Viewed (0)