WIP: Use testcontainers to coordinate services in tests #97

Draft
joao.dubas wants to merge 7 commits from jpd-use-testcontainer into main
Showing only changes of commit 58c010f486 - Show all commits

View File

@ -30,9 +30,15 @@ import Config
config :wabanex, dns_cluster_query: System.get_env("DNS_CLUSTER_QUERY") || :ignore
get_multi_env = fn varnames, default ->
multi_get_env = fn varnames, default ->
varnames
|> Enum.reduce(nil, &(System.get_env(&1) || &2))
|> Enum.reduce(nil, fn
varname, nil ->
System.get_env(varname) || nil
_varname, value ->
value
end)
|> Kernel.||(default)
end