MasterHex.pm Version

Divo moto

A library implementing the Divo Stack behaviour, providing a pre-configured moto server via docker-compose for integration testing Elixir apps. The cluster is a multi-service moto compose stack that can be configured with all or specific services.

Requires inclusion of the Divo library in your mix project.

Installation

The package can be installed by adding divo and divo_moto to your list of dependencies in mix.exs:

def deps do
  [
    {:divo, "~> 1.1"},
    {:divo_moto, "~> 0.1.1"}
  ]
end

Use

In your Mix environment exs file (i.e. config/integration.exs), include the following:

config :myapp,
  divo: [
    {DivoMoto, [port: 5000, service: :all, aws_access_key_id: "access_key_id", aws_secret_access_key: "secret_key" ]}
  ]

In your integration test specify that you want to use Divo:

use Divo
...

The resulting stack will create a multi-service moto server exposing port 5000 to the host.

Configuration

You may omit the configuration arguments to DivoMoto and still have a working stack.

See Divo GitHub or Divo Hex Documentation for more instructions on using and configuring the Divo library. See bennyhat/moto-server for further documentation on using and configuring the features of this image.

License

Released under Apache 2 license.