Exemplo n.º 1
0
 def test_set_weight(self, mock):
     '''
     Test if it get a value from etcd, by direct path
     '''
     self.assertTrue(
         haproxyconn.set_weight('db1.salt.com', 'mysql', weight=11))
Exemplo n.º 2
0
 def test_set_weight(self):
     '''
     Test setting the weight of a given server
     '''
     self.assertTrue(haproxyconn.set_weight('db1.salt.com', 'mysql',
                                            weight=11))
Exemplo n.º 3
0
 def test_set_weight(self):
     """
     Test setting the weight of a given server
     """
     self.assertTrue(
         haproxyconn.set_weight("db1.salt.com", "mysql", weight=11))