Demo entry 2670086

MarathonClusterIntegrationTest

   

Submitted by anonymous on Sep 11, 2015 at 18:56
Language: Scala. Code size: 681 Bytes.

/**
  * Convenient trait to test against a Marathon cluster.
  *
  * The cluster sized is determined by [[IntegrationTestConfig.clusterSize]].
  */
trait MarathonClusterIntegrationTest extends SingleMarathonIntegrationTest { self: Suite =>
  lazy val marathonFacades: Seq[MarathonFacade] = config.marathonUrls.map(url => new MarathonFacade(url, testBasePath))

  override protected def beforeAll(configMap: ConfigMap): Unit = {
    super.beforeAll(configMap)
    val parameters = List("--master", config.master, "--event_subscriber", "http_callback") ++ extraMarathonParameters
    config.marathonPorts.tail.foreach(port => startMarathon(port, parameters: _*))
  }
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).