diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-20 13:49:51 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-20 13:49:51 +0000 |
commit | 71786ddc8e28fbd3cb3fcc4b3ff15e5962a1c82e (patch) | |
tree | 6a2d93ef3fb2d353bb7739e4b57e6541f51cdd71 /spec/services/packages/debian/extract_changes_metadata_service_spec.rb | |
parent | a7253423e3403b8c08f8a161e5937e1488f5f407 (diff) | |
download | gitlab-ce-71786ddc8e28fbd3cb3fcc4b3ff15e5962a1c82e.tar.gz |
Add latest changes from gitlab-org/gitlab@15-9-stable-eev15.9.0-rc42
Diffstat (limited to 'spec/services/packages/debian/extract_changes_metadata_service_spec.rb')
-rw-r--r-- | spec/services/packages/debian/extract_changes_metadata_service_spec.rb | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/spec/services/packages/debian/extract_changes_metadata_service_spec.rb b/spec/services/packages/debian/extract_changes_metadata_service_spec.rb index 4765e6c3bd4..4d6acac219b 100644 --- a/spec/services/packages/debian/extract_changes_metadata_service_spec.rb +++ b/spec/services/packages/debian/extract_changes_metadata_service_spec.rb @@ -1,10 +1,9 @@ # frozen_string_literal: true require 'spec_helper' -RSpec.describe Packages::Debian::ExtractChangesMetadataService do +RSpec.describe Packages::Debian::ExtractChangesMetadataService, feature_category: :package_registry do describe '#execute' do - let_it_be(:distribution) { create(:debian_project_distribution, codename: 'unstable') } - let_it_be(:incoming) { create(:debian_incoming, project: distribution.project) } + let_it_be(:incoming) { create(:debian_incoming) } let(:source_file) { incoming.package_files.first } let(:dsc_file) { incoming.package_files.second } @@ -13,12 +12,6 @@ RSpec.describe Packages::Debian::ExtractChangesMetadataService do subject { service.execute } - context 'with FIPS mode enabled', :fips_mode do - it 'raises an error' do - expect { subject }.to raise_error(::Packages::FIPS::DisabledError) - end - end - context 'with valid package file' do it 'extract metadata', :aggregate_failures do expected_fields = { 'Architecture' => 'source amd64', 'Binary' => 'libsample0 sample-dev sample-udeb' } |