Use gitaly RPCs to setup rspec test repositories
What does this MR do and why?
Previously TestEnv
copied a cloned bare repository directly into the gitaly repository filesystem. Doing this will not be possible for gitaly cluster, so instead we now generate a bundle and use the CreateRepositoryFromBundle
RPC to seed repositories in test factories.
Once this is done, the remaining tasks will be removing any direct repository filesystem access, i.e. using rugged. Any tests that do this will need to be rewritten to use RPCs instead.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by James Fargher