Get rid of default-zone everywhere.

This commit is contained in:
Prashanth Balasubramanian 2016-06-03 11:22:56 -07:00
parent 3bed62f51e
commit 61558f4d19
6 changed files with 21 additions and 15 deletions

View file

@ -29,7 +29,7 @@ import (
const (
testDefaultBeNodePort = int64(3000)
defaultZone = "default-zone"
defaultZone = "zone-a"
)
func newFakeLoadBalancerPool(f LoadBalancers, t *testing.T) LoadBalancerPool {
@ -39,8 +39,8 @@ func newFakeLoadBalancerPool(f LoadBalancers, t *testing.T) LoadBalancerPool {
namer := &utils.Namer{}
healthChecker := healthchecks.NewHealthChecker(fakeHCs, "/", namer)
healthChecker.Init(&healthchecks.FakeHealthCheckGetter{nil})
nodePool := instances.NewNodePool(fakeIGs, defaultZone)
nodePool.Init(&instances.FakeZoneLister{[]string{"zone-a"}})
nodePool := instances.NewNodePool(fakeIGs)
nodePool.Init(&instances.FakeZoneLister{[]string{defaultZone}})
backendPool := backends.NewBackendPool(
fakeBackends, healthChecker, nodePool, namer, []int64{}, false)
return NewLoadBalancerPool(f, backendPool, testDefaultBeNodePort, namer)