diff options
author | John Cai <jcai@gitlab.com> | 2020-05-26 02:30:01 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2020-06-01 19:42:01 +0300 |
commit | 87b8dde88db42036d6c03b5537e7ee9b720c1aa5 (patch) | |
tree | ec5622a315c1e2ab99ac253bb17f918da1ce77a2 /_support/test-boot | |
parent | 2b825079253900d72cab202b9673b857ed103da5 (diff) |
Dependency inject gitlab api
Diffstat (limited to '_support/test-boot')
-rwxr-xr-x | _support/test-boot | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/_support/test-boot b/_support/test-boot index 61eeeef3f..3f9f810fc 100755 --- a/_support/test-boot +++ b/_support/test-boot @@ -17,6 +17,7 @@ def main(gitaly_dir) Dir.mktmpdir do |dir| Dir.chdir(dir) + File.write(File.join("#{gitaly_dir}/ruby/gitlab-shell", '.gitlab_shell_secret'), 'test_gitlab_shell_token') File.write('config.toml', <<~CONFIG socket_path = "#{ADDR}" @@ -31,6 +32,10 @@ def main(gitaly_dir) [gitlab-shell] dir = "#{gitaly_dir}/ruby/gitlab-shell" + + [gitlab] + url = 'http://gitlab_url' + CONFIG ) |