summaryrefslogtreecommitdiff
path: root/spec/integration/python/pipenv_spec.rb
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-04-14 17:53:26 +0000
committermo khan <mo.khan@gmail.com>2020-04-14 17:53:26 +0000
commit3fdf2793726ad19d7f654fec0a9a98600d39d48f (patch)
treef57d0fbea6e26f9722e773e8148ca00a4f82817f /spec/integration/python/pipenv_spec.rb
parentdda9e59a4a3ab471001998d0e68d67ab12b4ac69 (diff)
parentabc83e16d11ae1476f2b41ab4c2dd975cb7f1776 (diff)
Merge branch '213584-pip-root-certificate' into 'master'v3.7.1
Specify PIP_CERT when installing pip packages See merge request gitlab-org/security-products/license-management!133
Diffstat (limited to 'spec/integration/python/pipenv_spec.rb')
-rw-r--r--spec/integration/python/pipenv_spec.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/spec/integration/python/pipenv_spec.rb b/spec/integration/python/pipenv_spec.rb
index 9ec7d96..b54ee99 100644
--- a/spec/integration/python/pipenv_spec.rb
+++ b/spec/integration/python/pipenv_spec.rb
@@ -203,20 +203,15 @@ RSpec.describe "pipenv" do
end
context "when connecting to a private package repository with self signed certificate" do
- let(:index_url) { "https://gitlab-airgap-pypi.us-west1-b.c.group-secure-a89fe7.internal/simple" }
+ let(:index_url) { "https://#{private_pypi_host}/simple" }
let(:bundle) { fixture_file_content('python/pypi.crt') }
- def install_airgap_hosts
- add_host('gitlab-airgap-test.us-west1-b.c.group-secure-a89fe7.internal', '34.82.7.216')
- add_host('gitlab-airgap-pypi.us-west1-b.c.group-secure-a89fe7.internal', '35.227.149.218')
- end
-
before do
runner.add_file('Pipfile', fixture_file_content('python/airgap-Pipfile.erb', index_url: index_url))
runner.add_file('Pipfile.lock', fixture_file_content('python/airgap-Pipfile.lock.erb', index_url: index_url))
end
- pending 'downloads the packages and trusts the certificate' do
+ it 'downloads the packages and trusts the certificate' do
report = runner.scan(env: {
'ADDITIONAL_CA_CERT_BUNDLE' => bundle,
'PIP_INDEX_URL' => index_url