diff options
Diffstat (limited to 'spec/integration')
| -rw-r--r-- | spec/integration/dotnet/nuget_spec.rb | 2 | ||||
| -rw-r--r-- | spec/integration/go/modules_spec.rb | 2 | ||||
| -rw-r--r-- | spec/integration/java/gradle_spec.rb | 2 | ||||
| -rw-r--r-- | spec/integration/java/maven_spec.rb | 2 | ||||
| -rw-r--r-- | spec/integration/js/bower_spec.rb | 2 | ||||
| -rw-r--r-- | spec/integration/js/npm_spec.rb | 2 | ||||
| -rw-r--r-- | spec/integration/js/yarn_spec.rb | 2 | ||||
| -rw-r--r-- | spec/integration/php/composer_spec.rb | 2 | ||||
| -rw-r--r-- | spec/integration/python/pip_spec.rb | 2 | ||||
| -rw-r--r-- | spec/integration/python/pipenv_spec.rb | 2 | ||||
| -rw-r--r-- | spec/integration/ruby/bundler_spec.rb | 2 | ||||
| -rw-r--r-- | spec/integration/rust/cargo_spec.rb | 2 |
12 files changed, 12 insertions, 12 deletions
diff --git a/spec/integration/dotnet/nuget_spec.rb b/spec/integration/dotnet/nuget_spec.rb index fb8cb91..849011e 100644 --- a/spec/integration/dotnet/nuget_spec.rb +++ b/spec/integration/dotnet/nuget_spec.rb @@ -206,7 +206,7 @@ RSpec.describe "nuget" do end context "when the CA certificate is provided" do - let(:env) { { 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate('wildcard.test').read } } + let(:env) { { 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate.read } } specify do expect(subject).to match_schema diff --git a/spec/integration/go/modules_spec.rb b/spec/integration/go/modules_spec.rb index 788e264..fb70db6 100644 --- a/spec/integration/go/modules_spec.rb +++ b/spec/integration/go/modules_spec.rb @@ -113,7 +113,7 @@ RSpec.describe "modules" do context "when the CA certificate is provided" do let(:env) do { - 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate('wildcard.test').read, + 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate.read, 'GOPROXY' => 'https://goproxy.test' } end diff --git a/spec/integration/java/gradle_spec.rb b/spec/integration/java/gradle_spec.rb index 48a602f..e6fbc1d 100644 --- a/spec/integration/java/gradle_spec.rb +++ b/spec/integration/java/gradle_spec.rb @@ -54,7 +54,7 @@ plugins { context 'when scanning a project that needs to connect to multiple TLS endpoints with different custom certificate chains' do subject do runner.scan(env: { - 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate('wildcard.test').read, + 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate.read, 'PRIVATE_MAVEN_HOST' => 'maven.test' }) end diff --git a/spec/integration/java/maven_spec.rb b/spec/integration/java/maven_spec.rb index 4061b65..b112fd2 100644 --- a/spec/integration/java/maven_spec.rb +++ b/spec/integration/java/maven_spec.rb @@ -91,7 +91,7 @@ RSpec.describe "maven" do end context "when connecting to a custom package registry with a self signed certificate" do - let(:report) { runner.scan(env: { 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate('wildcard.test').read }) } + let(:report) { runner.scan(env: { 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate.read }) } before do runner.add_file('pom.xml') do diff --git a/spec/integration/js/bower_spec.rb b/spec/integration/js/bower_spec.rb index 95617d6..720bdf8 100644 --- a/spec/integration/js/bower_spec.rb +++ b/spec/integration/js/bower_spec.rb @@ -27,7 +27,7 @@ RSpec.describe "bower" do end context "when scanning a bower project with a dependency from a custom npm registry" do - subject { runner.scan(env: { 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate('wildcard.test').read }) } + subject { runner.scan(env: { 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate.read }) } before do runner.add_file(".npmrc", "registry = https://npm.test") diff --git a/spec/integration/js/npm_spec.rb b/spec/integration/js/npm_spec.rb index bd74fd7..b61aa0f 100644 --- a/spec/integration/js/npm_spec.rb +++ b/spec/integration/js/npm_spec.rb @@ -470,7 +470,7 @@ RSpec.describe "npm" do end context "when scanning a project with dependencies sourced from a custom registry" do - subject { runner.scan(env: { 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate('wildcard.test').read }) } + subject { runner.scan(env: { 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate.read }) } let(:private_npm_host) { 'npm.test' } diff --git a/spec/integration/js/yarn_spec.rb b/spec/integration/js/yarn_spec.rb index 8fcda9c..9f0ff56 100644 --- a/spec/integration/js/yarn_spec.rb +++ b/spec/integration/js/yarn_spec.rb @@ -153,7 +153,7 @@ RSpec.describe "yarn" do end context "when scanning a project with dependencies sourced from a custom registry" do - subject { runner.scan(env: { 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate('wildcard.test').read }) } + subject { runner.scan(env: { 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate.read }) } let(:private_npm_host) { 'npm.test' } diff --git a/spec/integration/php/composer_spec.rb b/spec/integration/php/composer_spec.rb index 383bc94..685e5ad 100644 --- a/spec/integration/php/composer_spec.rb +++ b/spec/integration/php/composer_spec.rb @@ -105,7 +105,7 @@ RSpec.describe "composer" do end context "when the CA certificate is provided" do - let(:env) { { 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate('wildcard.test').read } } + let(:env) { { 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate.read } } specify do expect(subject).to match_schema diff --git a/spec/integration/python/pip_spec.rb b/spec/integration/python/pip_spec.rb index b2e55b2..856d463 100644 --- a/spec/integration/python/pip_spec.rb +++ b/spec/integration/python/pip_spec.rb @@ -182,7 +182,7 @@ RSpec.describe "pip" do it 'downloads the packages and trusts the certificate' do report = runner.scan(env: { - 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate('wildcard.test').read, + 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate.read, 'PIP_INDEX_URL' => index_url }) diff --git a/spec/integration/python/pipenv_spec.rb b/spec/integration/python/pipenv_spec.rb index 74e1c6e..b7847fd 100644 --- a/spec/integration/python/pipenv_spec.rb +++ b/spec/integration/python/pipenv_spec.rb @@ -213,7 +213,7 @@ RSpec.describe "pipenv" do let(:index_url) { "https://pypi.test/simple" } let(:env) do { - 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate('wildcard.test').read, + 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate.read, 'PIP_INDEX_URL' => index_url } end diff --git a/spec/integration/ruby/bundler_spec.rb b/spec/integration/ruby/bundler_spec.rb index 5020d3f..953aec9 100644 --- a/spec/integration/ruby/bundler_spec.rb +++ b/spec/integration/ruby/bundler_spec.rb @@ -101,7 +101,7 @@ RSpec.describe "bundler" do context "when the CA certificate is provided" do let(:env) do { - 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate('wildcard.test').read, + 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate.read, 'LOG_LEVEL' => 'debug' } end diff --git a/spec/integration/rust/cargo_spec.rb b/spec/integration/rust/cargo_spec.rb index cdb4834..c8794f8 100644 --- a/spec/integration/rust/cargo_spec.rb +++ b/spec/integration/rust/cargo_spec.rb @@ -33,7 +33,7 @@ RSpec.describe "cargo" do end context "when the CA certificate is provided" do - let(:env) { { 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate('wildcard.test').read } } + let(:env) { { 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate.read } } specify do expect(subject).to match_schema |
