Change the cloud provider TCPLoadBalancerExists function to GetTCPLoadBalancer,

which returns the IP/DNS address of the load balancer, enabling more
intelligent reconciliation in the service controller.
This commit is contained in:
Alex Robinson
2015-05-01 10:37:48 -07:00
parent cadfde0bd1
commit a047250b53
6 changed files with 36 additions and 35 deletions

View File

@@ -173,12 +173,12 @@ func TestTCPLoadBalancer(t *testing.T) {
t.Fatalf("TCPLoadBalancer() returned false - perhaps your stack doesn't support Neutron?")
}
exists, err := lb.TCPLoadBalancerExists("noexist", "region")
_, exists, err := lb.GetTCPLoadBalancer("noexist", "region")
if err != nil {
t.Fatalf("TCPLoadBalancerExists(\"noexist\") returned error: %s", err)
t.Fatalf("GetTCPLoadBalancer(\"noexist\") returned error: %s", err)
}
if exists {
t.Fatalf("TCPLoadBalancerExists(\"noexist\") returned true")
t.Fatalf("GetTCPLoadBalancer(\"noexist\") returned exists")
}
}