Regenerate Gitaly's config.toml each rspec run

This behaviour I removed in 08cdf65b9e, but this reverts this specific
line. In case storages, or other options changes which are set by the
Rails environment, this will easier to migrate to.

Storage paths is kept in plural, to support multiple storage in later
release for just testing purposes. But its probable that multi Gitaly
scenarios need to be tested.
This commit is contained in:
Zeger-Jan van de Weg 2018-10-24 11:22:32 +02:00
parent 2a8c3f6d5c
commit 6f4c1fd5a5
No known key found for this signature in database
GPG key ID: 65F6A8D64A88ABAC

View file

@ -158,8 +158,9 @@ module TestEnv
version: Gitlab::GitalyClient.expected_server_version,
task: "gitlab:gitaly:install[#{gitaly_dir},#{repos_path}]") do
start_gitaly(gitaly_dir)
end
Gitlab::SetupHelper.create_gitaly_configuration(gitaly_dir, { 'default' => repos_path }, force: true)
start_gitaly(gitaly_dir)
end
end
def start_gitaly(gitaly_dir)