codacy.test.docker.RabbitDocker.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codacy-test-bench_2.13 Show documentation
Show all versions of codacy-test-bench_2.13 Show documentation
A library to send events on rabbit-mq
The newest version!
package codacy.test
package docker
import com.whisk.docker.{DockerContainer, DockerReadyChecker}
trait RabbitDocker {
val rabbitImage: String = "rabbitmq:3.7"
val rabbitPort = 5672
lazy val rabbitPorts =
Seq(5672 -> Some(rabbitPort))
val rabbitStartedSentence =
"Server startup complete"
lazy val rabbitContainer = DockerContainer(rabbitImage)
.withPorts(rabbitPorts: _*)
.withReadyChecker(DockerReadyChecker.LogLineContains(rabbitStartedSentence))
}