def test_invalid_timeout(self): self.assertRaises(TypeError, curator.override_timeout('invalid', 'delete'))
def test_sync_flush(self): self.assertEqual(180, curator.override_timeout(30, 'sync_flush'))
def test_invalid_action(self): self.assertEqual(30, curator.override_timeout(30, 'invalid'))
def test_no_change(self): self.assertEqual(30, curator.override_timeout(30, 'delete'))
def test_forcemerge_snapshot(self): self.assertEqual(21600, curator.override_timeout(30, 'forcemerge')) self.assertEqual(21600, curator.override_timeout(30, 'snapshot'))