Add code to handle Setup With Status tracking

This commit is contained in:
Hemant Kumar
2019-09-25 16:00:11 -04:00
parent dc9e64c31e
commit 321e99367a
31 changed files with 263 additions and 54 deletions

View File

@@ -847,6 +847,11 @@ func (fv *FakeVolume) SetUp(mounterArgs MounterArgs) error {
return fv.SetUpAt(fv.getPath(), mounterArgs)
}
func (fv *FakeVolume) SetUpWithStatusTracking(mounterArgs MounterArgs) (volumetypes.OperationStatus, error) {
err := fv.SetUp(mounterArgs)
return volumetypes.OperationFinished, err
}
func (fv *FakeVolume) GetSetUpCallCount() int {
fv.RLock()
defer fv.RUnlock()