summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
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'))