Test controller's synchronize method. Requires fake etcd client to be relocated.

This commit is contained in:
Daniel Smith
2014-06-17 17:38:06 -07:00
parent b6a260940c
commit 7e464aa55c
6 changed files with 94 additions and 21 deletions

View File

@@ -26,7 +26,7 @@ import (
"github.com/coreos/go-etcd/etcd"
)
func MakeTestEtcdRegistry(client EtcdClient, machines []string) *EtcdRegistry {
func MakeTestEtcdRegistry(client util.EtcdClient, machines []string) *EtcdRegistry {
registry := MakeEtcdRegistry(client, machines)
registry.manifestFactory = &BasicManifestFactory{
serviceRegistry: &MockServiceRegistry{},