fix mocks
This commit is contained in:
parent
65ad3105b3
commit
6f54468dd5
|
@ -13,6 +13,10 @@ type DriverMock struct {
|
||||||
CreateSCSIControllerController string
|
CreateSCSIControllerController string
|
||||||
CreateSCSIControllerErr error
|
CreateSCSIControllerErr error
|
||||||
|
|
||||||
|
CreateNVMeControllerVM string
|
||||||
|
CreateNVMeControllerController string
|
||||||
|
CreateNVMeControllerErr error
|
||||||
|
|
||||||
DeleteCalled bool
|
DeleteCalled bool
|
||||||
DeleteName string
|
DeleteName string
|
||||||
DeleteErr error
|
DeleteErr error
|
||||||
|
@ -70,6 +74,12 @@ func (d *DriverMock) CreateSCSIController(vm string, controller string) error {
|
||||||
return d.CreateSCSIControllerErr
|
return d.CreateSCSIControllerErr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (d *DriverMock) CreateNVMeController(vm string, controller string, portcount int) error {
|
||||||
|
d.CreateNVMeControllerVM = vm
|
||||||
|
d.CreateNVMeControllerController = vm
|
||||||
|
return d.CreateNVMeControllerErr
|
||||||
|
}
|
||||||
|
|
||||||
func (d *DriverMock) Delete(name string) error {
|
func (d *DriverMock) Delete(name string) error {
|
||||||
d.DeleteCalled = true
|
d.DeleteCalled = true
|
||||||
d.DeleteName = name
|
d.DeleteName = name
|
||||||
|
|
Loading…
Reference in New Issue