|
@@ -33,6 +33,7 @@ func setupFakeDaemon(t *testing.T, c *container.Container) *Daemon {
|
|
configStore: &config.Config{},
|
|
configStore: &config.Config{},
|
|
linkIndex: newLinkIndex(),
|
|
linkIndex: newLinkIndex(),
|
|
netController: netController,
|
|
netController: netController,
|
|
|
|
+ imageService: &fakeImageService{},
|
|
}
|
|
}
|
|
|
|
|
|
c.Root = root
|
|
c.Root = root
|
|
@@ -51,6 +52,14 @@ func setupFakeDaemon(t *testing.T, c *container.Container) *Daemon {
|
|
return d
|
|
return d
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+type fakeImageService struct {
|
|
|
|
+ ImageService
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (i *fakeImageService) StorageDriver() string {
|
|
|
|
+ return "overlay"
|
|
|
|
+}
|
|
|
|
+
|
|
func cleanupFakeContainer(c *container.Container) {
|
|
func cleanupFakeContainer(c *container.Container) {
|
|
_ = os.RemoveAll(c.Root)
|
|
_ = os.RemoveAll(c.Root)
|
|
}
|
|
}
|