Packages

c

com.feedzai.cosytest

DockerComposeSetup

case class DockerComposeSetup(setupName: String, composeFiles: Seq[Path], workingDirectory: Path, environment: Map[String, String]) extends Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DockerComposeSetup
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DockerComposeSetup(setupName: String, composeFiles: Seq[Path], workingDirectory: Path, environment: Map[String, String])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def checkContainersRemoval(): Boolean
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. val composeFiles: Seq[Path]
  8. def dockerComposeDown(): Boolean
  9. def dockerComposeUp(): Boolean
  10. def down(): Boolean

    Executes docker-compose down command using setup defined.

    Executes docker-compose down command using setup defined.

    returns

    true if all containers were stopped and removed otherwise false

  11. def dumpLogs(fileName: String, target: Path): Try[Unit]

    Dump logs from STDOUT using docker-compose logs for each service.

    Dump logs from STDOUT using docker-compose logs for each service. Logs will be saved to target dir in a zip file with the name specified.

    fileName

    zip file name

    target

    directory where zip file will be saved

    returns

    Try object that if fails contains exception, otherwise returns nothing

  12. val environment: Map[String, String]
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. implicit val executionContext: ExecutionContext
  15. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def getContainerLogs(serviceName: Option[String]): List[String]
  18. def getContainerMappedPort(containerId: String, port: Int): String
  19. def getProjectContainerIds(): List[String]
  20. def getServiceContainerIds(serviceName: String): List[String]
  21. def getServiceMappedPort(name: String, bindedPort: Int): Seq[String]

    Retrieves port that was mapped to binded port for specified service.

    Retrieves port that was mapped to binded port for specified service.

    name

    service name

    bindedPort

    port that was binded to some specific port

    returns

    Returns a list of ports from all service containers that have binded port

  22. def getServices(): List[String]
  23. def isContainerWithHealthCheck(containerId: String): Boolean
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def runCmd(command: Seq[String], cwd: File, envVars: Map[String, String], timeout: Duration): Boolean

    Runs a command using specified working directory.

    Runs a command using specified working directory.

    command

    list of strings that compose the command

    cwd

    working directory where command will be ran

    returns

    true if command ran with success

  29. def runCmdWithOutput(command: Seq[String], cwd: File, envVars: Map[String, String], timeout: Duration): Try[List[String]]

    Runs a command using specified working directory.

    Runs a command using specified working directory.

    command

    list of strings that compose the command

    cwd

    working directory where command will be ran

    returns

    a Try object with output lines list if succeeds

  30. val setupName: String
  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def up(timeOut: Duration): Boolean

    Executes docker-compose up command using setup defined and waits for all containers with healthchecks to be in a healthy state.

    Executes docker-compose up command using setup defined and waits for all containers with healthchecks to be in a healthy state.

    timeOut

    maximum time for all containers be in a healthy state

    returns

    true if all containers started and achieved a healthy state otherwise false

  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  36. def waitForAllHealthyContainers(timeout: Duration): Boolean
  37. def waitForHealthyContainer(containerId: String, timeout: Duration): Boolean
  38. val workingDirectory: Path

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped