|
|
@ -23,6 +23,7 @@ import (
|
|
|
|
"testing"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/kubernetes/deployment-manager/common"
|
|
|
|
"github.com/kubernetes/deployment-manager/common"
|
|
|
|
|
|
|
|
"github.com/kubernetes/deployment-manager/registry"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
var template = common.Template{Name: "test", Content: "test"}
|
|
|
|
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 testExpander = &expanderStub{}
|
|
|
|
var testRepository = newRepositoryStub()
|
|
|
|
var testRepository = newRepositoryStub()
|
|
|
|
var testDeployer = newDeployerStub()
|
|
|
|
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) {
|
|
|
|
func TestListDeployments(t *testing.T) {
|
|
|
|
testRepository.reset()
|
|
|
|
testRepository.reset()
|
|
|
|