summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-04-22 10:03:45 -0600
committermo khan <mo.khan@gmail.com>2020-04-22 12:31:16 -0600
commite8aadb0323135defca027c5ac09c2a2e8a2194b4 (patch)
treedb395a60486fd6ce255d7281c97cb5c1687c9bca /spec/support
parentd65dd61597375bfd6e6953fd4d0990a836fc3503 (diff)
Use keytool to import a ca certificate
* Remove dind for license scan and move it to code_quality * Add spec to verify TLS connections to maven repo * Add CHANGELOG and bump version
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/fixture_file_helper.rb2
-rw-r--r--spec/support/integration_test_helper.rb6
2 files changed, 7 insertions, 1 deletions
diff --git a/spec/support/fixture_file_helper.rb b/spec/support/fixture_file_helper.rb
index 5a9599f..313ee35 100644
--- a/spec/support/fixture_file_helper.rb
+++ b/spec/support/fixture_file_helper.rb
@@ -5,7 +5,7 @@ module FixtureFileHelper
ERB
.new(content)
- .result(OpenStruct.new(data).send(:binding))
+ .result(OpenStruct.new(data).instance_eval { binding })
end
def fixture_file(path)
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