summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorCan Eldem <celdem@gitlab.com>2020-05-06 11:42:04 +0000
committerCan Eldem <celdem@gitlab.com>2020-05-06 11:42:04 +0000
commit6b40d051f8325ea957e60fc37abe26e97c5de2b6 (patch)
treef64e2d51b783c339609958de8af3564ecc92e632 /spec/support
parent8e427c7987e90a028e6d9f344a9f70bb13b6eee4 (diff)
parentb963d8d572fdf93d9c76e45d400465d8c5c2fae0 (diff)
Merge branch '212921-offline-npm' into 'master'v3.8.0
Specify a custom CA for npm See merge request gitlab-org/security-products/license-management!145
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/integration_test_helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/support/integration_test_helper.rb b/spec/support/integration_test_helper.rb
index b25297c..ead30d4 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_npm_host
+ @private_npm_host ||= ENV.fetch('PRIVATE_NPM_HOST').tap do |host|
+ add_host(host, ENV.fetch('PRIVATE_NPM_IP'))
+ 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'))