Add missing pieces due to rebase
This commit is contained in:
2
api.go
2
api.go
@@ -22,7 +22,7 @@ func main() {
|
||||
s := initStorage()
|
||||
f := initFactory(s)
|
||||
|
||||
ipf := provisioner.NewInstanceProvisionerFactory(provisioner.NewWindows(f, s), provisioner.NewDinD(f, s))
|
||||
ipf := provisioner.NewInstanceProvisionerFactory(provisioner.NewWindowsASG(f, s), provisioner.NewDinD(f, s))
|
||||
sp := provisioner.NewOverlaySessionProvisioner(f)
|
||||
|
||||
core := pwd.NewPWD(f, e, s, sp, ipf)
|
||||
|
||||
@@ -46,7 +46,7 @@ type instanceInfo struct {
|
||||
id string
|
||||
}
|
||||
|
||||
func NewWindows(f docker.FactoryApi, st storage.StorageApi) *windows {
|
||||
func NewWindowsASG(f docker.FactoryApi, st storage.StorageApi) *windows {
|
||||
return &windows{factory: f, storage: st}
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ import (
|
||||
"github.com/play-with-docker/play-with-docker/docker"
|
||||
"github.com/play-with-docker/play-with-docker/event"
|
||||
"github.com/play-with-docker/play-with-docker/provisioner"
|
||||
"github.com/play-with-docker/play-with-docker/pwd/types"
|
||||
"github.com/play-with-docker/play-with-docker/storage"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/mock"
|
||||
@@ -75,6 +74,7 @@ func TestSessionNew(t *testing.T) {
|
||||
|
||||
************************** Not sure how to test this as it can pick any manager as the first node in the swarm cluster.
|
||||
|
||||
|
||||
func TestSessionSetup(t *testing.T) {
|
||||
_d := &docker.Mock{}
|
||||
_f := &docker.FactoryMock{}
|
||||
@@ -165,3 +165,4 @@ func TestSessionSetup(t *testing.T) {
|
||||
_g.AssertExpectations(t)
|
||||
_e.M.AssertExpectations(t)
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user