diff options
| author | mo khan <mo.khan@gmail.com> | 2020-04-14 17:53:26 +0000 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-04-14 17:53:26 +0000 |
| commit | 3fdf2793726ad19d7f654fec0a9a98600d39d48f (patch) | |
| tree | f57d0fbea6e26f9722e773e8148ca00a4f82817f /spec/support/integration_test_helper.rb | |
| parent | dda9e59a4a3ab471001998d0e68d67ab12b4ac69 (diff) | |
| parent | abc83e16d11ae1476f2b41ab4c2dd975cb7f1776 (diff) | |
Merge branch '213584-pip-root-certificate' into 'master'v3.7.1
Specify PIP_CERT when installing pip packages
See merge request gitlab-org/security-products/license-management!133
Diffstat (limited to 'spec/support/integration_test_helper.rb')
| -rw-r--r-- | spec/support/integration_test_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/support/integration_test_helper.rb b/spec/support/integration_test_helper.rb index 6c30a99..52693f2 100644 --- a/spec/support/integration_test_helper.rb +++ b/spec/support/integration_test_helper.rb @@ -86,6 +86,12 @@ module IntegrationTestHelper end end + def private_pypi_host + @private_pypi_host ||= ENV.fetch('PRIVATE_PYPI_HOST').tap do |host| + add_host(host, ENV.fetch('PRIVATE_PYPI_IP')) + end + end + def runner(*args) @runner ||= IntegrationTestRunner.new(*args) end |
