|
|
@ -69,6 +69,31 @@ defmodule DecentralisedBookIndex.Generators do
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def dbi_server(opts \\ []) do
|
|
|
|
|
|
|
|
actor =
|
|
|
|
|
|
|
|
opts[:actor] ||
|
|
|
|
|
|
|
|
once(:default_actor, fn ->
|
|
|
|
|
|
|
|
generate(user())
|
|
|
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
url =
|
|
|
|
|
|
|
|
opts[:url] ||
|
|
|
|
|
|
|
|
once(:default_actor, fn ->
|
|
|
|
|
|
|
|
"http://localhost:4002"
|
|
|
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
changeset_generator(
|
|
|
|
|
|
|
|
Metadata.DBIServer,
|
|
|
|
|
|
|
|
:create,
|
|
|
|
|
|
|
|
defaults: [
|
|
|
|
|
|
|
|
name: sequence(:name, &"Server #{&1}"),
|
|
|
|
|
|
|
|
url: url
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
overrides: opts,
|
|
|
|
|
|
|
|
actor: actor
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
@doc """
|
|
|
|
@doc """
|
|
|
|
Generates a list of bids.
|
|
|
|
Generates a list of bids.
|
|
|
|
|
|
|
|
|
|
|
|