From 1ee72edf31399782ebd8e6cd592b095669bb5357 Mon Sep 17 00:00:00 2001 From: vaikas-google Date: Thu, 7 Jan 2016 09:32:47 -0800 Subject: [PATCH] use the inmem service registry for the manager_test --- manager/manager/manager_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/manager/manager/manager_test.go b/manager/manager/manager_test.go index a52e73d55..d0e59efda 100644 --- a/manager/manager/manager_test.go +++ b/manager/manager/manager_test.go @@ -6,7 +6,7 @@ you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 - + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -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()