irods / irods_testing_environment

BSD 3-Clause "New" or "Revised" License
8 stars 14 forks source link

Testing environment tries to install irods packages in database container when `--project-name` argument has underscores #226

Open SwooshyCueb opened 1 month ago

SwooshyCueb commented 1 month ago

We have a few functions in context.py that try to pull information from container names by splitting them by underscores: https://github.com/irods/irods_testing_environment/blob/615a2e24379b1b3733d7ec4ac6ed03afe8711d47/irods_testing_environment/context.py#L147-L175

However, the --project-name argument to the runner scripts allows the user to specify a string that will, among other things, be used as the first part of the container names. If the user specifies a name with underscores, these functions will return the wrong values. This causes the testing environment to attempt to install irods packages in the database container, which will fail under most circumstances due to distro mismatch.