Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for testCases (0.14 sec)

  1. cmd/xl-storage_test.go

    			expectedErr: errFileNameTooLong,
    		},
    	}
    
    	for i, testCase := range testCases {
    		if err := xlStorage.RenameFile(context.Background(), testCase.srcVol, testCase.srcPath, testCase.destVol, testCase.destPath); err != testCase.expectedErr {
    			t.Fatalf("TestXLStorage %d:  Expected the error to be : \"%v\", got: \"%v\".", i+1, testCase.expectedErr, err)
    		}
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 17:45:28 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    			expectedErr: "",
    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			// only the KMSv2 feature flag is enabled
    			_, err := LoadEncryptionConfig(testContext(t), testCase.filePath, false, "")
    
    			if len(testCase.expectedErr) > 0 && !strings.Contains(errString(err), testCase.expectedErr) {
    				t.Fatalf("expected error %q, got %q", testCase.expectedErr, errString(err))
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  3. 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)
  4. pkg/controller/statefulset/stateful_set_utils_test.go

    			},
    			schema:      podKind,
    			shouldMatch: false,
    		},
    	}
    	for _, tc := range testCases {
    		got := matchesRef(&tc.ref, &tc.obj, tc.schema)
    		if got != tc.shouldMatch {
    			t.Errorf("Failed %s: got %t, expected %t", tc.name, got, tc.shouldMatch)
    		}
    	}
    }
    
    func TestIsClaimOwnerUpToDate(t *testing.T) {
    	testCases := []struct {
    		name            string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 50.9K bytes
    - Viewed (0)
  5. pkg/volume/csi/csi_attacher_test.go

    		if err != nil {
    			t.Error(err)
    		}
    		if watch != nil {
    			watch.Modify(attach)
    		}
    	}
    }
    
    func TestAttacherAttach(t *testing.T) {
    	testCases := []struct {
    		name                string
    		nodeName            string
    		driverName          string
    		volumeName          string
    		attachID            string
    		spec                *volume.Spec
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  6. pkg/apis/networking/validation/validation_test.go

    				return out
    			}, expectErr: true,
    		},
    	}
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			err := ValidateIPAddressUpdate(testCase.new(old), old)
    			if !testCase.expectErr && err != nil {
    				t.Errorf("ValidateIPAddressUpdate must be successful for test '%s', got %v", testCase.name, err)
    			}
    			if testCase.expectErr && err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 73.3K bytes
    - Viewed (0)
  7. pkg/apis/flowcontrol/validation/validation_test.go

    		},
    	}}
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			gv := flowcontrolv1beta3.SchemeGroupVersion
    			if testCase.requestGV != nil {
    				gv = *testCase.requestGV
    			}
    			errs := ValidatePriorityLevelConfiguration(testCase.priorityLevelConfiguration, gv, PriorityLevelValidationOptions{})
    			if !assert.ElementsMatch(t, testCase.expectedErrors, errs) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 54.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_test.go

    )
    
    func TestValidateAuthenticationConfiguration(t *testing.T) {
    	featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.StructuredAuthenticationConfiguration, true)
    
    	testCases := []struct {
    		name              string
    		in                *api.AuthenticationConfiguration
    		disallowedIssuers []string
    		want              string
    	}{
    		{
    			name: "jwt authenticator is empty",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 87.2K bytes
    - Viewed (0)
  9. pkg/volume/csi/csi_mounter_test.go

    	}
    	return nil
    }
    
    func TestMounterGetPath(t *testing.T) {
    	plug, tmpDir := newTestPlugin(t, nil)
    	defer os.RemoveAll(tmpDir)
    
    	// TODO (vladimirvivien) specName with slashes will not work
    	testCases := []struct {
    		name           string
    		specVolumeName string
    		path           string
    	}{
    		{
    			name:           "simple specName",
    			specVolumeName: "spec-0",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  10. cmd/object-api-listobjects_test.go

    				resultV, err = obj.ListObjectVersions(context.Background(), testCase.bucketName,
    					testCase.prefix, testCase.marker, "", testCase.delimiter, testCase.maxKeys)
    			} else {
    				t.Log("ListObjects, bucket:", testCase.bucketName, "prefix:",
    					testCase.prefix, "marker:", testCase.marker, "delimiter:",
    					testCase.delimiter, "maxkeys:", testCase.maxKeys)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
Back to top