GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit bf38936f authored by Stan Hu's avatar Stan Hu

Merge branch 'mk/avoid-extra-storage-perm-and-query' into 'master'

Avoid extra storage bucket perm and query

See merge request gitlab-org/gitlab-ce!23995
parents 33a9c35b d2d85c31
......@@ -195,7 +195,7 @@ def connect_to_remote_directory(connection_settings)
if connection.service == ::Fog::Storage::Local
connection.directories.create(key: remote_directory)
else
connection.directories.get(remote_directory)
connection.directories.new(key: remote_directory)
end
end
......
......@@ -1320,7 +1320,7 @@ def authorize_artifacts_with_token_in_headers(params = {}, request_headers = hea
end
before do
fog_connection.directories.get('artifacts').files.create(
fog_connection.directories.new(key: 'artifacts').files.create(
key: 'tmp/uploads/12312300',
body: 'content'
)
......
......@@ -1123,7 +1123,7 @@
context 'with valid remote_id' do
before do
fog_connection.directories.get('lfs-objects').files.create(
fog_connection.directories.new(key: 'lfs-objects').files.create(
key: 'tmp/uploads/12312300',
body: 'content'
)
......
......@@ -201,7 +201,7 @@ def store_dir
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'
)
......
......@@ -716,7 +716,7 @@ def when_file_is_in_use
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'
)
......
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