def test_completed_recovery(self): client = Mock() client.indices.recovery.return_value = testvars.recovery_output self.assertTrue(curator.restore_check(client, testvars.named_indices))
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) )
def test_empty_recovery(self): client = Mock() client.indices.recovery.return_value = {} self.assertFalse( curator.restore_check(client, testvars.named_indices) )
def test_completed_recovery(self): client = Mock() client.indices.recovery.return_value = testvars.recovery_output self.assertTrue( curator.restore_check(client, testvars.named_indices) )
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))
def test_empty_recovery(self): client = Mock() client.indices.recovery.return_value = {} self.assertFalse(curator.restore_check(client, testvars.named_indices))