diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
commit | e8d2c2579383897a1dd7f9debd359abe8ae8373d (patch) | |
tree | c42be41678c2586d49a75cabce89322082698334 /spec/finders/packages | |
parent | fc845b37ec3a90aaa719975f607740c22ba6a113 (diff) |
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'spec/finders/packages')
6 files changed, 7 insertions, 0 deletions
diff --git a/spec/finders/packages/conan/package_file_finder_spec.rb b/spec/finders/packages/conan/package_file_finder_spec.rb index d0c9efa1418..c2f445c58f7 100644 --- a/spec/finders/packages/conan/package_file_finder_spec.rb +++ b/spec/finders/packages/conan/package_file_finder_spec.rb @@ -4,6 +4,7 @@ require 'spec_helper' RSpec.describe ::Packages::Conan::PackageFileFinder do let_it_be(:package) { create(:conan_package) } let_it_be(:package_file) { package.package_files.first } + let(:package_file_name) { package_file.file_name } let(:params) { {} } diff --git a/spec/finders/packages/go/module_finder_spec.rb b/spec/finders/packages/go/module_finder_spec.rb index e5c8827fc8d..a93fd855529 100644 --- a/spec/finders/packages/go/module_finder_spec.rb +++ b/spec/finders/packages/go/module_finder_spec.rb @@ -5,6 +5,7 @@ require 'spec_helper' RSpec.describe Packages::Go::ModuleFinder do let_it_be(:project) { create :project } let_it_be(:other_project) { create :project } + let(:finder) { described_class.new project, module_name } shared_examples 'an invalid path' do diff --git a/spec/finders/packages/group_packages_finder_spec.rb b/spec/finders/packages/group_packages_finder_spec.rb index 29b2f0fffd7..d7f62bdfbb4 100644 --- a/spec/finders/packages/group_packages_finder_spec.rb +++ b/spec/finders/packages/group_packages_finder_spec.rb @@ -129,6 +129,7 @@ RSpec.describe Packages::GroupPackagesFinder do context 'with package_name' do let_it_be(:named_package) { create(:maven_package, project: project, name: 'maven') } + let(:params) { { package_name: package_name } } context 'as complete name' do diff --git a/spec/finders/packages/nuget/package_finder_spec.rb b/spec/finders/packages/nuget/package_finder_spec.rb index 59cca2d06dc..4ad02ce7da8 100644 --- a/spec/finders/packages/nuget/package_finder_spec.rb +++ b/spec/finders/packages/nuget/package_finder_spec.rb @@ -11,6 +11,7 @@ RSpec.describe Packages::Nuget::PackageFinder do let_it_be(:package3) { create(:nuget_package, name: 'Another.Dummy.Package', project: project) } let_it_be(:other_package_1) { create(:nuget_package, name: package1.name, version: package1.version) } let_it_be(:other_package_2) { create(:nuget_package, name: package1.name, version: package2.version) } + let(:package_name) { package1.name } let(:package_version) { nil } let(:limit) { 50 } @@ -57,6 +58,7 @@ RSpec.describe Packages::Nuget::PackageFinder do let_it_be(:package4) { create(:nuget_package, name: package1.name, project: project) } let_it_be(:package5) { create(:nuget_package, name: package1.name, project: project) } let_it_be(:package6) { create(:nuget_package, name: package1.name, project: project) } + let(:limit) { 2 } it { is_expected.to match_array([package5, package6]) } diff --git a/spec/finders/packages/package_file_finder_spec.rb b/spec/finders/packages/package_file_finder_spec.rb index ab58f75fcae..8014f04d917 100644 --- a/spec/finders/packages/package_file_finder_spec.rb +++ b/spec/finders/packages/package_file_finder_spec.rb @@ -4,6 +4,7 @@ require 'spec_helper' RSpec.describe Packages::PackageFileFinder do let_it_be(:package) { create(:maven_package) } let_it_be(:package_file) { package.package_files.first } + let(:package_file_name) { package_file.file_name } let(:params) { {} } diff --git a/spec/finders/packages/package_finder_spec.rb b/spec/finders/packages/package_finder_spec.rb index 2bb4f05a41d..1b0c88a4771 100644 --- a/spec/finders/packages/package_finder_spec.rb +++ b/spec/finders/packages/package_finder_spec.rb @@ -25,6 +25,7 @@ RSpec.describe ::Packages::PackageFinder do context 'processing packages' do let_it_be(:nuget_package) { create(:nuget_package, :processing, project: project) } + let(:package_id) { nuget_package.id } it 'are not returned' do |