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