Use webmock to test outbound requests in release-tools
We use webmock for testing spec requests, but there are specs (such as schedule_spec.rb
) that stub a YAML file instead. Recently we upgraded release-tools to ruby 2.7 gitlab-org/gitlab-build-images!335 (merged), and we find out that http
gem was incompatible with this ruby version #1323 (closed), causing the auto-deploy tasks to stopped working for some minutes.
This sort of errors should be caught by our test suite instead of in production, a possible idea for that is to standardize our test outbound requests to use webmock