This commit was merged in pull request #32.
This commit is contained in:
@@ -175,10 +175,20 @@ func TestWriteOverride(t *testing.T) {
|
||||
type fakeSelf struct {
|
||||
mounts []container.MountPoint
|
||||
err error
|
||||
id string // the container's ID, when set
|
||||
image string // the container's image ID, when set
|
||||
labels map[string]string // the container's labels, when set
|
||||
}
|
||||
|
||||
func (f fakeSelf) ContainerInspect(context.Context, string) (container.InspectResponse, error) {
|
||||
return container.InspectResponse{Mounts: f.mounts}, f.err
|
||||
insp := container.InspectResponse{Mounts: f.mounts}
|
||||
if f.id != "" || f.image != "" {
|
||||
insp.ContainerJSONBase = &container.ContainerJSONBase{ID: f.id, Image: f.image}
|
||||
}
|
||||
if f.labels != nil {
|
||||
insp.Config = &container.Config{Labels: f.labels}
|
||||
}
|
||||
return insp, f.err
|
||||
}
|
||||
|
||||
func TestMountRoots(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user