Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/packages/debian/file_entry_spec.rb')
-rw-r--r--spec/models/packages/debian/file_entry_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/models/packages/debian/file_entry_spec.rb b/spec/models/packages/debian/file_entry_spec.rb
index e981adf69bc..ed6372f2873 100644
--- a/spec/models/packages/debian/file_entry_spec.rb
+++ b/spec/models/packages/debian/file_entry_spec.rb
@@ -31,6 +31,13 @@ RSpec.describe Packages::Debian::FileEntry, type: :model do
describe 'validations' do
it { is_expected.to be_valid }
+ context 'with FIPS mode', :fips_mode do
+ it 'raises an error' do
+ expect { subject.validate! }
+ .to raise_error(::Packages::FIPS::DisabledError, 'Debian registry is not FIPS compliant')
+ end
+ end
+
describe '#filename' do
it { is_expected.to validate_presence_of(:filename) }
it { is_expected.not_to allow_value('Hé').for(:filename) }