Closed alanking closed 2 months ago
This is pretty standard across plugins:
The preferred method would probably be to use the paths
module from the scripts in the iRODS server package: https://github.com/irods/irods/blob/main/scripts/irods/paths.py This would require that the test hooks be placed in /var/lib/irods/scripts
or a python package so that our test hooks can use it, though.
Another possibility would be to create a function in the irods_python_ci_utilities
module which could abstract this a little bit: https://github.com/irods/irods_python_ci_utilities
I think this issue goes beyond the scope of this plugin. I created this issue for discussion about how we should address this across all of our plugins: https://github.com/irods/irods_testing_environment/issues/229
For this issue, let's just make some local functions to abstract this and we can solve the larger problem for all the plugins in the other issue.
Agreed.
https://github.com/irods/irods_auth_plugin_pam_interactive/blob/b05360545d6dbb16e0eadf2745e39d3d0b5438d8/irods_consortium_continuous_integration_test_hook.py#L40-L41
Let's see if there's a better way to get at that path.