Commit 4e50680d authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab-ce master

parents f9f3ef60 f93f09e7
---
title: Allow 'rake gitlab:cleanup:remote_upload_files' to read bucket files without
having permissions to see all buckets.
merge_request: 23981
author:
type: fixed
......@@ -67,7 +67,7 @@ module Gitlab
end
def remote_directory
connection.directories.get(configuration['remote_directory'])
connection.directories.new(key: configuration['remote_directory'])
end
def connection
......
......@@ -25,7 +25,7 @@ describe Gitlab::Cleanup::RemoteUploads do
expect(::Fog::Storage).to receive(:new).and_return(connection)
expect(connection).to receive(:directories).and_return(double(get: directory))
expect(connection).to receive(:directories).and_return(double(new: directory))
expect(directory).to receive(:files).and_return(remote_files)
end
......
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