"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "scripts/irods/test/test_rule_engine_plugin_passthrough.py" between
irods-4.2.5.tar.gz and irods-4.2.6.tar.gz

About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.

test_rule_engine_plugin_passthrough.py  (irods-4.2.5):test_rule_engine_plugin_passthrough.py  (irods-4.2.6)
skipping to change at line 71 skipping to change at line 71
with open(core_re_path, 'a') as core_re: with open(core_re_path, 'a') as core_re:
core_re.write(pep_name + "(*a, *b, *c) { writeLine('serv erLog', '" + second_msg + "'); }\n") core_re.write(pep_name + "(*a, *b, *c) { writeLine('serv erLog', '" + second_msg + "'); }\n")
# Trigger the Passthrough REP and the PEP that was just adde d to core.re. # Trigger the Passthrough REP and the PEP that was just adde d to core.re.
self.admin.run_icommand('ils') self.admin.run_icommand('ils')
# Verify that the Passthrough REP message appears in the log file before # Verify that the Passthrough REP message appears in the log file before
# the message produced by the PEP in core.re. # the message produced by the PEP in core.re.
with open(paths.server_log_path(), 'r') as log_file: with open(paths.server_log_path(), 'r') as log_file:
mm = mmap.mmap(log_file.fileno(), 0, access=mmap.ACCESS_ READ) mm = mmap.mmap(log_file.fileno(), 0, access=mmap.ACCESS_ READ)
index = mm.find("returned 'RULE_ENGINE_CONTINUE' to REPF ") index = mm.find("returned '{0}' to REPF.".format(str(RUL E_ENGINE_CONTINUE)))
self.assertTrue(index != -1) self.assertTrue(index != -1)
self.assertTrue(mm.find(second_msg, index) != -1) self.assertTrue(mm.find(second_msg, index) != -1)
mm.close() mm.close()
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)