示例#1
0
 def test_completed_recovery(self):
     client = Mock()
     client.indices.recovery.return_value = testvars.recovery_output
     self.assertTrue(curator.restore_check(client, testvars.named_indices))
示例#2
0
 def test_fix_966(self):
     client = Mock()
     client.indices.recovery.return_value = testvars.recovery_966
     self.assertTrue(
         curator.restore_check(client, testvars.index_list_966)
     )
示例#3
0
 def test_empty_recovery(self):
     client = Mock()
     client.indices.recovery.return_value = {}
     self.assertFalse(
         curator.restore_check(client, testvars.named_indices)
     )
示例#4
0
 def test_completed_recovery(self):
     client = Mock()
     client.indices.recovery.return_value = testvars.recovery_output
     self.assertTrue(
         curator.restore_check(client, testvars.named_indices)
     )
示例#5
0
 def test_fix_966(self):
     client = Mock()
     client.indices.recovery.return_value = testvars.recovery_966
     self.assertTrue(curator.restore_check(client, testvars.index_list_966))
示例#6
0
 def test_empty_recovery(self):
     client = Mock()
     client.indices.recovery.return_value = {}
     self.assertFalse(curator.restore_check(client, testvars.named_indices))