You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2011/05/14 13:25:36 UTC
svn commit: r1103045 -
/incubator/libcloud/trunk/test/loadbalancer/test_gogrid.py
Author: tomaz
Date: Sat May 14 11:25:35 2011
New Revision: 1103045
URL: http://svn.apache.org/viewvc?rev=1103045&view=rev
Log:
Pass in the algorithm to the create_balancer method.
Modified:
incubator/libcloud/trunk/test/loadbalancer/test_gogrid.py
Modified: incubator/libcloud/trunk/test/loadbalancer/test_gogrid.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/test/loadbalancer/test_gogrid.py?rev=1103045&r1=1103044&r2=1103045&view=diff
==============================================================================
--- incubator/libcloud/trunk/test/loadbalancer/test_gogrid.py (original)
+++ incubator/libcloud/trunk/test/loadbalancer/test_gogrid.py Sat May 14 11:25:35 2011
@@ -3,7 +3,7 @@ import os.path
import sys
import unittest
-from libcloud.loadbalancer.base import LB, LBMember
+from libcloud.loadbalancer.base import LB, LBMember, LBAlgorithm
from libcloud.loadbalancer.drivers.gogrid import GoGridLBDriver
from test import MockHttp, MockRawResponse
@@ -29,6 +29,7 @@ class GoGridTests(unittest.TestCase):
def test_create_balancer(self):
balancer = self.driver.create_balancer(name='test2',
port=80,
+ algorithm=LBAlgorithm.ROUND_ROBIN,
members=(LBMember(None, '10.1.0.10', 80),
LBMember(None, '10.1.0.11', 80))
)