Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetDeviceMountPath (0.2 sec)

  1. pkg/volume/csi/csi_attacher_test.go

    			if tc.skipPVCSISource {
    				spec.PersistentVolume.Spec.CSI = nil
    			}
    		}
    		// Run
    		mountPath, err := csiAttacher.GetDeviceMountPath(spec)
    
    		// Verify
    		if err != nil && !tc.shouldFail {
    			t.Errorf("test should not fail, but error occurred: %v", err)
    		} else if err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  2. pkg/volume/testing/testing.go

    	}
    	return "/dev/sdb", nil
    }
    
    func (fv *FakeVolume) GetWaitForAttachCallCount() int {
    	fv.RLock()
    	defer fv.RUnlock()
    	return fv.WaitForAttachCallCount
    }
    
    func (fv *FakeVolume) GetDeviceMountPath(spec *volume.Spec) (string, error) {
    	fv.Lock()
    	defer fv.Unlock()
    	fv.GetDeviceMountPathCallCount++
    	return "", nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
Back to top