Added missing GetVmwareDriver() method to VMware Builder's DriverMock.

This commit is contained in:
Ali Rizvi-Santiago 2017-04-13 19:19:43 -05:00
parent 6423525a33
commit 258804106b
1 changed files with 17 additions and 0 deletions

View File

@ -206,3 +206,20 @@ func (d *DriverMock) Verify() error {
d.VerifyCalled = true
return d.VerifyErr
}
func (d *DriverMock) GetVmwareDriver() VmwareDriver {
var state VmwareDriver
state.DhcpLeasesPath = func(string) string {
return "/path/to/dhcp.leases"
}
state.DhcpConfPath = func(string) string {
return "/path/to/dhcp.conf"
}
state.VmnetnatConfPath = func(string) string {
return "/path/to/vmnetnat.conf"
}
state.NetmapConfPath = func() string {
return "/path/to/netmap.conf"
}
return state
}