diff options
author | Stan Hu <stanhu@gmail.com> | 2020-03-07 00:46:26 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2020-03-10 21:58:15 -0700 |
commit | 70c1b494b81f0035b71e47a65a70a8b86a2c8427 (patch) | |
tree | 5b327b7f90ea94b39d541c24f09bf316424c5760 /spec | |
parent | b920520599142435ce06ad155099544adc923618 (diff) | |
download | gitlab-shell-70c1b494b81f0035b71e47a65a70a8b86a2c8427.tar.gz |
Log internal HTTP requests
This restores the previous behavior of logging the success and failures
of internal HTTP requests.
Part of https://gitlab.com/gitlab-org/gitlab/issues/207916
Diffstat (limited to 'spec')
-rw-r--r-- | spec/support/gitlab_shell_setup.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/support/gitlab_shell_setup.rb b/spec/support/gitlab_shell_setup.rb index dccafb3..6982aaa 100644 --- a/spec/support/gitlab_shell_setup.rb +++ b/spec/support/gitlab_shell_setup.rb @@ -1,4 +1,5 @@ require 'yaml' +require 'tempfile' RSpec.shared_context 'gitlab shell', shared_context: :metadata do def original_root_path @@ -10,6 +11,8 @@ RSpec.shared_context 'gitlab shell', shared_context: :metadata do end def write_config(config) + config['log_file'] ||= Tempfile.new.path + File.open(config_path, 'w') do |f| f.write(config.to_yaml) end |