Commit e7c207fe authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'kassio/project-import-fix-excluded-key-test' into 'master'

Make the test more resilient to Project default changes

See merge request gitlab-org/gitlab!49602
parents 6b7456df 6769145b
......@@ -674,10 +674,12 @@ RSpec.describe Gitlab::ImportExport::Project::TreeRestorer do
end
it 'does not allow setting params that are excluded from import_export settings' do
project.create_import_data(data: { override_params: { lfs_enabled: true } })
original_value = project.lfs_enabled?
project.create_import_data(data: { override_params: { lfs_enabled: !original_value } })
expect(restored_project_json).to eq(true)
expect(project.lfs_enabled).to be_falsey
expect(project.lfs_enabled).to eq(original_value)
end
it 'overrides project feature access levels' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment