diff options
author | James Lopez <james@jameslopez.es> | 2018-06-25 15:10:26 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-07-06 15:46:18 +0200 |
commit | a2bf1641546a1d3eeb3e9f44734854f655c0adef (patch) | |
tree | 0652c20a92513330aa09c4a2ec9adbfaeb3a6494 /spec/uploaders | |
parent | b0fa01fce3822da94aee6264829841996beb6df3 (diff) | |
download | gitlab-ce-a2bf1641546a1d3eeb3e9f44734854f655c0adef.tar.gz |
Update Import/Export to use object storage (based on aa feature flag)
Diffstat (limited to 'spec/uploaders')
-rw-r--r-- | spec/uploaders/import_export_uploader_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/uploaders/import_export_uploader_spec.rb b/spec/uploaders/import_export_uploader_spec.rb new file mode 100644 index 00000000000..51b173b682d --- /dev/null +++ b/spec/uploaders/import_export_uploader_spec.rb @@ -0,0 +1,20 @@ +require 'spec_helper' + +describe ImportExportUploader do + let(:model) { build_stubbed(:import_export_upload) } + let(:upload) { create(:upload, model: model) } + + subject { described_class.new(model, :import_file) } + + context "object_store is REMOTE" do + before do + stub_uploads_object_storage + end + + include_context 'with storage', described_class::Store::REMOTE + + it_behaves_like 'builds correct paths', + store_dir: %r[import_export_upload/import_file/], + upload_path: %r[import_export_upload/import_file/] + end +end |