libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1103045 - /incubator/libcloud/trunk/test/loadbalancer/test_gogrid.py
Date Sat, 14 May 2011 11:25:36 GMT
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))
                 )



Mime
View raw message