Пример #1
0
 def test_good_check(self):
     clu = self.get_clu(("index3.rambler.ru", "index1.rambler.ru"))
     assert radist.is_alive(clu.test, timeout=4)
     result = clu.test.cluster_exec("echo %(server)s > /dev/null", check=True)
     for node, status in result:
         assert status == 0
Пример #2
0
 def test_alive(self):
     clu = self.get_clu(("10.1.1.1", "index3.rambler.ru", "index1.rambler.ru"))
     assert not radist.is_alive(clu.test, timeout=4)