def test_shutdown(self): # test shutdown lib.assert_command('irods-grid shutdown --all', 'STDOUT_SINGLELINE', 'shutting down') time.sleep( 2 ) lib.assert_command('ils', 'STDERR_SINGLELINE', 'USER_SOCK_CONNECT_ERR') lib.start_irods_server()
def test_shutdown(self): # test shutdown lib.assert_command('irods-grid shutdown --all', 'STDOUT_SINGLELINE', 'shutting down') time.sleep(2) lib.assert_command('ils', 'STDERR_SINGLELINE', 'USER_SOCK_CONNECT_ERR') lib.start_irods_server()
def test_re_shm_cleanup(self): irodsctl_fullpath = os.path.join(lib.get_irods_top_level_dir(), 'iRODS', 'irodsctl') lib.assert_command([irodsctl_fullpath, 'stop'], 'STDOUT_SINGLELINE', 'Stopping iRODS server') assert not lib.re_shm_exists(), lib.re_shm_exists() lib.start_irods_server()
def irods_server_stopped(): lib.stop_irods_server() try: yield finally: lib.start_irods_server()
def test_shutdown_local_server(self): initial_size_of_server_log = lib.get_log_size('server') lib.assert_command(['irods-grid', 'shutdown', '--hosts', lib.get_hostname()], 'STDOUT_SINGLELINE', 'shutting down') time.sleep(10) # server gives control plane the all-clear before printing done message assert 1 == lib.count_occurrences_of_string_in_log('server', 'iRODS Server is done', initial_size_of_server_log) lib.start_irods_server()