Skip to content
代码片段 群组 项目
提交 9c0333c7 编辑于 作者: Sami Hiltunen's avatar Sami Hiltunen
浏览文件

Pass snapshot repository's relative path to Gitaly in tests

Gitaly passes the repository's relative path to Rails when it calls
the internal API. The relative path passed is the transaction's
snapshot repository's relative path. Without it Gitaly will not be
able to apply the repository's quarantine correctly as the quarantine
paths are relative to the snapshot repository.

While the relative path is passed in production code, tests haven't
been updated to pass the relative to Gitaly. This leads to test
failures when transactions are enabled in Gitaly.

Pass the relative path of the repository in the tests to ensure its
present when transactions are enabled. The relative path passed in
tests is the same as the actual relative path of the repository. In
reality the two paths would be different. As Gitaly is stubbed out
in the tests, it doesn't start a transaction and rewrite the relative
path so we use the original one.
上级 b317aeed
No related branches found
No related tags found
无相关合并请求
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册