mirror of
https://github.com/ClaperCo/Claper.git
synced 2026-08-29 01:58:48 +02:00
Fix http client for s3
This commit is contained in:
@@ -10,6 +10,9 @@ import Config
|
||||
config :claper,
|
||||
ecto_repos: [Claper.Repo]
|
||||
|
||||
config :ex_aws,
|
||||
http_client: ExAws.Request.Req
|
||||
|
||||
# Configures the endpoint
|
||||
config :claper, ClaperWeb.Endpoint,
|
||||
render_errors: [view: ClaperWeb.ErrorView, accepts: ~w(html json), layout: false],
|
||||
|
||||
@@ -6,6 +6,12 @@ defmodule Claper.Tasks.ConverterTest do
|
||||
alias Claper.Presentations.PresentationFile
|
||||
alias Claper.Tasks.Converter
|
||||
|
||||
test "uses the available Req client for S3 requests" do
|
||||
assert Application.fetch_env!(:ex_aws, :http_client) == ExAws.Request.Req
|
||||
assert Code.ensure_loaded?(ExAws.Request.Req)
|
||||
assert function_exported?(ExAws.Request.Req, :request, 5)
|
||||
end
|
||||
|
||||
describe "regenerate_thumbnails/1" do
|
||||
test "uses convert when magick is unavailable" do
|
||||
storage_dir = unique_tmp_dir()
|
||||
|
||||
Reference in New Issue
Block a user