Skip to content

plugins.aea-ledger-fetchai.aea_ledger_fetchai.test_tools.docker_images

This module contains testing utilities.

FetchLedgerDockerImage Objects

class FetchLedgerDockerImage(DockerImage)

Wrapper to Fetch ledger Docker image.

__init__

def __init__(client: DockerClient,
             addr: str,
             port: int,
             tag: str,
             config: Optional[Dict] = None)

Initialize the Fetch ledger Docker image.

Arguments:

  • client: the Docker client.
  • addr: the address.
  • port: the port.
  • tag: the tag
  • config: optional configuration to command line.

tag

@property
def tag() -> str

Get the image tag.

create

def create() -> Container

Create the container.

wait

def wait(max_attempts: int = 15, sleep_rate: float = 1.0) -> bool

Wait until the image is up.