summaryrefslogtreecommitdiff
path: root/spec/support/helpers/stub_object_storage.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers/stub_object_storage.rb')
-rw-r--r--spec/support/helpers/stub_object_storage.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/support/helpers/stub_object_storage.rb b/spec/support/helpers/stub_object_storage.rb
index 392300a4436..d4ac286e959 100644
--- a/spec/support/helpers/stub_object_storage.rb
+++ b/spec/support/helpers/stub_object_storage.rb
@@ -70,6 +70,13 @@ module StubObjectStorage
**params)
end
+ def stub_terraform_state_object_storage(uploader = described_class, **params)
+ stub_object_storage_uploader(config: Gitlab.config.terraform_state.object_store,
+ uploader: uploader,
+ remote_directory: 'terraform_state',
+ **params)
+ end
+
def stub_object_storage_multipart_init(endpoint, upload_id = "upload_id")
stub_request(:post, %r{\A#{endpoint}tmp/uploads/[a-z0-9-]*\?uploads\z})
.to_return status: 200, body: <<-EOS.strip_heredoc