Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for UnmountDevice (0.15 sec)

  1. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    			deviceToDetach := operationexecutor.AttachedVolume{VolumeSpec: tmpSpec, PluginName: "fake-file-plugin"}
    			err := oex.UnmountDevice(deviceToDetach, asw, hostutil)
    			// Assert
    			if assert.Error(t, err) {
    				assert.Contains(t, err.Error(), tc.expectedErrMsg)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_attacher_test.go

    			}
    			// Clear out the client if specified
    			// The lookup to generate a new client will fail
    			if tc.unsetClient {
    				csiAttacher.csiClient = nil
    			}
    
    			// Run
    			err := csiAttacher.UnmountDevice(tc.deviceMountPath)
    			// Verify
    			if err != nil {
    				if !tc.shouldFail {
    					t.Errorf("test should not fail, but error occurred: %v", err)
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  3. pkg/volume/testing/testing.go

    	defer fv.Unlock()
    	return nil, nil
    }
    
    func (fv *FakeVolume) GetDetachCallCount() int {
    	fv.RLock()
    	defer fv.RUnlock()
    	return fv.DetachCallCount
    }
    
    func (fv *FakeVolume) UnmountDevice(globalMountPath string) error {
    	fv.Lock()
    	defer fv.Unlock()
    	fv.UnmountDeviceCallCount++
    	if fv.UnmountDeviceHook != nil {
    		return fv.UnmountDeviceHook(globalMountPath)
    	}
    	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