summaryrefslogtreecommitdiff
path: root/spec/support/integration_test_helper.rb
diff options
context:
space:
mode:
authorCan Eldem <celdem@gitlab.com>2020-04-23 09:57:57 +0000
committerCan Eldem <celdem@gitlab.com>2020-04-23 09:57:57 +0000
commit86950d555fc22d88134360fdc7c3da87ba5f8895 (patch)
treedb395a60486fd6ce255d7281c97cb5c1687c9bca /spec/support/integration_test_helper.rb
parentd65dd61597375bfd6e6953fd4d0990a836fc3503 (diff)
parente8aadb0323135defca027c5ac09c2a2e8a2194b4 (diff)
Merge branch '212342-java-root-certificates' into 'master'v3.7.4
Pull packages from a custom mvn repository with a custom root certificate. See merge request gitlab-org/security-products/license-management!139
Diffstat (limited to 'spec/support/integration_test_helper.rb')
-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 52693f2..b25297c 100644
--- a/spec/support/integration_test_helper.rb
+++ b/spec/support/integration_test_helper.rb
@@ -92,6 +92,12 @@ module IntegrationTestHelper
end
end
+ def private_maven_host
+ @private_maven_host ||= ENV.fetch('PRIVATE_MAVEN_HOST').tap do |host|
+ add_host(host, ENV.fetch('PRIVATE_MAVEN_IP'))
+ end
+ end
+
def runner(*args)
@runner ||= IntegrationTestRunner.new(*args)
end