Support enabling upload filters during instance gen
This commit is contained in:
parent
bc3cf0fee0
commit
6c61ef14c3
4 changed files with 77 additions and 3 deletions
|
|
@ -63,7 +63,13 @@ defmodule Pleroma.InstanceTest do
|
|||
"--uploads-dir",
|
||||
"test/uploads",
|
||||
"--static-dir",
|
||||
"./test/../test/instance/static/"
|
||||
"./test/../test/instance/static/",
|
||||
"--strip-uploads",
|
||||
"y",
|
||||
"--dedupe-uploads",
|
||||
"n",
|
||||
"--anonymize-uploads",
|
||||
"n"
|
||||
])
|
||||
end
|
||||
|
||||
|
|
@ -82,6 +88,7 @@ defmodule Pleroma.InstanceTest do
|
|||
assert generated_config =~ "password: \"dbpass\""
|
||||
assert generated_config =~ "configurable_from_database: true"
|
||||
assert generated_config =~ "http: [ip: {127, 0, 0, 1}, port: 4000]"
|
||||
assert generated_config =~ "filters: [Pleroma.Upload.Filter.ExifTool]"
|
||||
assert File.read!(tmp_path() <> "setup.psql") == generated_setup_psql()
|
||||
assert File.exists?(Path.expand("./test/instance/static/robots.txt"))
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue