fix mocks
This commit is contained in:
parent
70150ffa0f
commit
0860edeed8
|
@ -28,6 +28,10 @@ type MockDriver struct {
|
|||
IPAddressResult string
|
||||
IPAddressErr error
|
||||
|
||||
KillCalled bool
|
||||
KillID string
|
||||
KillError error
|
||||
|
||||
LoginCalled bool
|
||||
LoginUsername string
|
||||
LoginPassword string
|
||||
|
@ -160,6 +164,12 @@ func (d *MockDriver) StartContainer(config *ContainerConfig) (string, error) {
|
|||
return d.StartID, d.StartError
|
||||
}
|
||||
|
||||
func (d *MockDriver) KillContainer(id string) error {
|
||||
d.KillCalled = true
|
||||
d.KillID = id
|
||||
return d.KillError
|
||||
}
|
||||
|
||||
func (d *MockDriver) StopContainer(id string) error {
|
||||
d.StopCalled = true
|
||||
d.StopID = id
|
||||
|
|
Loading…
Reference in New Issue