use the inmem service registry for the manager_test

pull/172/head
vaikas-google 9 years ago
parent f3fd7b14dc
commit 1ee72edf31

@ -23,6 +23,7 @@ import (
"testing"
"github.com/kubernetes/deployment-manager/common"
"github.com/kubernetes/deployment-manager/registry"
)
var template = common.Template{Name: "test", Content: "test"}
@ -251,7 +252,8 @@ func (r *repositoryStub) SetTypeInstances(d string, is map[string][]*common.Type
var testExpander = &expanderStub{}
var testRepository = newRepositoryStub()
var testDeployer = newDeployerStub()
var testManager = NewManager(testExpander, testDeployer, testRepository)
var testRegistryService = registry.NewInmemRepositoryService()
var testManager = NewManager(testExpander, testDeployer, testRepository, testRegistryService)
func TestListDeployments(t *testing.T) {
testRepository.reset()

Loading…
Cancel
Save