Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Plugin starts tests even if not all containers are ready.  #100

@rossoha

Description

@rossoha

In current state plugin checks that container is up by trying to get container ID from docker.
My proposal is that plugin should run tests only after all containers has status healthy or none.
Fast workaround can be added to DockerCommands

def getDockerContainerId(instanceName: String, serviceName: String): String = {
  //Docker replaces '/' with '_' in the identifier string so search for replaced version
  Process(s"""docker ps --all --filter=name=${instanceName.replace('/', '_')}_${serviceName}_ --format=\"{{.ID}}\  --filter=\"health=healthy\" --filter=\"health=none\"  """").!!.trim().replaceAll("\"", "")
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions