Example #1
0
 def test_invalid_timeout(self):
     self.assertRaises(TypeError, curator.override_timeout('invalid', 'delete'))
Example #2
0
 def test_sync_flush(self):
     self.assertEqual(180, curator.override_timeout(30, 'sync_flush'))
Example #3
0
 def test_invalid_action(self):
     self.assertEqual(30, curator.override_timeout(30, 'invalid'))
Example #4
0
 def test_no_change(self):
     self.assertEqual(30, curator.override_timeout(30, 'delete'))
Example #5
0
 def test_forcemerge_snapshot(self):
     self.assertEqual(21600, curator.override_timeout(30, 'forcemerge'))
     self.assertEqual(21600, curator.override_timeout(30, 'snapshot'))
Example #6
0
 def test_invalid_timeout(self):
     self.assertRaises(TypeError,
                       curator.override_timeout('invalid', 'delete'))
Example #7
0
 def test_invalid_action(self):
     self.assertEqual(30, curator.override_timeout(30, 'invalid'))
Example #8
0
 def test_sync_flush(self):
     self.assertEqual(180, curator.override_timeout(30, 'sync_flush'))
Example #9
0
 def test_forcemerge_snapshot(self):
     self.assertEqual(21600, curator.override_timeout(30, 'forcemerge'))
     self.assertEqual(21600, curator.override_timeout(30, 'snapshot'))
Example #10
0
 def test_no_change(self):
     self.assertEqual(30, curator.override_timeout(30, 'delete'))