SUSE / suse-migration-services

GNU General Public License v3.0
7 stars 11 forks source link

Bind mount the configured certs location bsc#1219004 #279

Closed rtamalin closed 9 months ago

rtamalin commented 9 months ago

When the migration is running ensure that the correct certs directory is bind mounted from the /system-root into the ISO boot's runtime environment, by retrieving the configured server.certlocation setting from the /system-root/etc/regionserverclnt.cfg file.

Add unit tests for new get_regionsrv_certs_path() function and tweak some existing tests, that depend upon mocking calls to builtin.open(), so that they mock any calls to get_regionsrv_certs_path() so as to avoid triggering additional open() calls that would break those tests.

rtamalin commented 9 months ago

I'm going to squash the commits into as single commit before merging; helps with keeping the changes log management simpler ;-)