diff options
| author | mo khan <mo.khan@gmail.com> | 2020-03-20 17:08:23 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-03-26 20:04:48 -0600 |
| commit | 38a2f3123bb4dc6ec2f7479a0e682c92b81a954b (patch) | |
| tree | 16feaf24e3c5ca71bd1c5d93a0504b2e18cf6919 /spec/integration/java | |
| parent | 4db9ccdf7a07654e7d546b5a6ab7467cf3818c93 (diff) | |
Install pip packages from a custom index
* Read PIP_INDEX_URL to identify where to download packages from
Diffstat (limited to 'spec/integration/java')
| -rw-r--r-- | spec/integration/java/gradle_spec.rb | 2 | ||||
| -rw-r--r-- | spec/integration/java/maven_spec.rb | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/integration/java/gradle_spec.rb b/spec/integration/java/gradle_spec.rb index 3c63e37..7a510ac 100644 --- a/spec/integration/java/gradle_spec.rb +++ b/spec/integration/java/gradle_spec.rb @@ -60,7 +60,7 @@ plugins { ].each do |gradle_version| %w[8 11].each do |java_version| context "when scanning a gradle (v#{gradle_version}) project that uses a kotlin build script" do - let(:build_file_content) { fixture_file_content("build.gradle.kts") } + let(:build_file_content) { fixture_file_content("java/build.gradle.kts") } it 'scans a gradle project' do runner.add_file('build.gradle.kts', build_file_content) diff --git a/spec/integration/java/maven_spec.rb b/spec/integration/java/maven_spec.rb index ad4cf5e..176cb6e 100644 --- a/spec/integration/java/maven_spec.rb +++ b/spec/integration/java/maven_spec.rb @@ -6,7 +6,7 @@ RSpec.describe "maven" do describe "When the maven dependencies come from a custom public maven repository" do it 'is able to detect some of the licenses' do - runner.add_file('pom.xml', fixture_file_content('pom-public-gitlab-repository.xml')) + runner.add_file('pom.xml', fixture_file_content('java/pom-public-gitlab-repository.xml')) report = runner.scan(env: { 'CI_PROJECT_ID' => '17523603' @@ -17,8 +17,8 @@ RSpec.describe "maven" do end it 'downloads packages from by using a custom `settings.xml`' do - runner.add_file('pom.xml', fixture_file_content('pom-public-gitlab-repository.xml')) - runner.add_file('my_settings.xml', fixture_file_content('custom-maven-settings.xml')) + runner.add_file('pom.xml', fixture_file_content('java/pom-public-gitlab-repository.xml')) + runner.add_file('my_settings.xml', fixture_file_content('java/custom-maven-settings.xml')) report = runner.scan(env: { 'CI_PROJECT_ID' => 'invalid', @@ -50,7 +50,7 @@ RSpec.describe "maven" do describe "When scanning a project with multiple modules" do before do - runner.mount(dir: fixture_file('maven-multimodule')) + runner.mount(dir: fixture_file('java/maven-multimodule')) end it 'detects dependences from each module' do |
