def test_check_mirror_segments(self): wait_counter = 1 max_count = 5 newfault = Fault() while(wait_counter <= max_count): check_mirrors = newfault.are_mirrors_up() if(check_mirrors): tinctest.logger.info('Mirrors are up..') return tinctest.logger.info('Waiting [' + str(wait_counter) + '] for the mirrors segments to come up') sleep(10) wait_counter += 1 tinctest.logger.info('\nReached the wait counter : '+str(max_count)) self.fail('Mirrors are down even after recovery')
def test_check_mirror_segments(self): wait_counter = 1 max_count = 5 newfault = Fault() while (wait_counter <= max_count): check_mirrors = newfault.are_mirrors_up() if (check_mirrors): tinctest.logger.info('Mirrors are up..') return tinctest.logger.info('Waiting [' + str(wait_counter) + '] for the mirrors segments to come up') sleep(10) wait_counter += 1 tinctest.logger.info('\nReached the wait counter : ' + str(max_count)) self.fail('Mirrors are down even after recovery')
def test_run_recovery(self): newfault = Fault() newfault.run_recovery()
def test_kill_mirror_processes(self): newfault = Fault() # Sleep introduced in order for the Transactions to start first sleep(15) newfault.kill_processes_with_role('m')