diff options
author | Michael Kozono <mkozono@gmail.com> | 2018-12-21 20:56:37 +0300 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2018-12-21 21:34:05 +0300 |
commit | d2d85c31fea920b0e62fb600fc6de874762a71ad (patch) | |
tree | d63cbc08102fe75d28d8e302179e874e69f99409 /spec/uploaders/file_uploader_spec.rb | |
parent | a9049532a271117983430d2d80b8ad61879ecf7a (diff) |
Avoid extra storage bucket perm and query
Specifically, the `ListAllMyBuckets` permission.
This works if you know the directory exists.
See more:
* https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23981
* https://stackoverflow.com/a/12288581/1992201
Diffstat (limited to 'spec/uploaders/file_uploader_spec.rb')
-rw-r--r-- | spec/uploaders/file_uploader_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/uploaders/file_uploader_spec.rb b/spec/uploaders/file_uploader_spec.rb index c74e0bf1955..db9e5eb2ad6 100644 --- a/spec/uploaders/file_uploader_spec.rb +++ b/spec/uploaders/file_uploader_spec.rb @@ -201,7 +201,7 @@ describe FileUploader do end let!(:fog_file) do - fog_connection.directories.get('uploads').files.create( + fog_connection.directories.new(key: 'uploads').files.create( key: 'tmp/uploads/test/123123', body: 'content' ) |