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/requests/api/runner_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/requests/api/runner_spec.rb')
-rw-r--r-- | spec/requests/api/runner_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/api/runner_spec.rb b/spec/requests/api/runner_spec.rb index c63621fe7d1..2f322cc7054 100644 --- a/spec/requests/api/runner_spec.rb +++ b/spec/requests/api/runner_spec.rb @@ -1320,7 +1320,7 @@ describe API::Runner, :clean_gitlab_redis_shared_state do end before do - fog_connection.directories.get('artifacts').files.create( + fog_connection.directories.new(key: 'artifacts').files.create( key: 'tmp/uploads/12312300', body: 'content' ) |