summaryrefslogtreecommitdiff
path: root/spec/uploaders
diff options
context:
space:
mode:
authorAlessio Caiazza <acaiazza@gitlab.com>2018-05-29 15:08:16 +0200
committerAlessio Caiazza <acaiazza@gitlab.com>2018-05-29 19:01:05 +0200
commita23ef89e576125740bd33aa64e434c38454790fc (patch)
tree514d775e9c4fa69e18627f3ad3b757d1c3891fc8 /spec/uploaders
parent4c74936f4567ba142bcd9ca31c8f5f10c8aa52fa (diff)
downloadgitlab-ce-a23ef89e576125740bd33aa64e434c38454790fc.tar.gz
Fix missing timeout value in object storage pre-authorization call
Diffstat (limited to 'spec/uploaders')
-rw-r--r--spec/uploaders/object_storage_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/uploaders/object_storage_spec.rb b/spec/uploaders/object_storage_spec.rb
index 4165a005063..2dd0925a8e6 100644
--- a/spec/uploaders/object_storage_spec.rb
+++ b/spec/uploaders/object_storage_spec.rb
@@ -382,6 +382,8 @@ describe ObjectStorage do
is_expected.to have_key(:RemoteObject)
expect(subject[:RemoteObject]).to have_key(:ID)
+ expect(subject[:RemoteObject]).to include(Timeout: a_kind_of(Integer))
+ expect(subject[:RemoteObject][:Timeout]).to be(ObjectStorage::DIRECT_UPLOAD_TIMEOUT)
expect(subject[:RemoteObject]).to have_key(:GetURL)
expect(subject[:RemoteObject]).to have_key(:DeleteURL)
expect(subject[:RemoteObject]).to have_key(:StoreURL)