Ejemplo n.º 1
0
 def test_get_dead_dns(self):
     clu = self.get_clu(("absent-name-in-dns.rambler.ru", "index3.rambler.ru", "index1.rambler.ru"))
     deads = radist.get_dead_nodes(clu.test, timeout=4)
     assert len(deads) == 1
     assert deads[0].primary.server == "absent-name-in-dns.rambler.ru"
Ejemplo n.º 2
0
 def test_get_dead(self):
     clu = self.get_clu(("10.1.1.1", "index3.rambler.ru", "index1.rambler.ru"))
     deads = radist.get_dead_nodes(clu.test, timeout=4)
     assert len(deads) == 1
     assert deads[0].primary.server == "10.1.1.1"