You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/02/26 16:05:23 UTC

[GitHub] dubee commented on a change in pull request #4305: Use runtime tags specified in runtime manifest for YARNContainerFactoryTests

dubee commented on a change in pull request #4305: Use runtime tags specified in runtime manifest for YARNContainerFactoryTests
URL: https://github.com/apache/incubator-openwhisk/pull/4305#discussion_r260358777
 
 

 ##########
 File path: tests/src/test/scala/org/apache/openwhisk/core/containerpool/yarn/test/YARNContainerFactoryTests.scala
 ##########
 @@ -35,29 +36,18 @@ import scala.concurrent.Await
 import scala.concurrent.duration._
 
 @RunWith(classOf[JUnitRunner])
-class YARNContainerFactoryTests extends Suite with BeforeAndAfter with FlatSpecLike {
-
+class YARNContainerFactoryTests extends Suite with BeforeAndAfter with FlatSpecLike with ExecHelpers {
   val images = Array(
-    ImageName("nodejs6action", Option("openwhisk"), Option("latest")),
-    ImageName("python3action", Option("openwhisk"), Option("latest")))
-
-  val runtimes: String = "{\"runtimes\":{" +
-    "\"nodejs\":[{\"kind\":\"nodejs:6\",\"image\":{\"prefix\":\"openwhisk\",\"name\":\"nodejs6action\",\"tag\":\"latest\"}}]," +
-    "\"python\":[{\"kind\":\"python:3\",\"image\":{\"prefix\":\"openwhisk\",\"name\":\"python3action\",\"tag\":\"latest\"}}]" +
-    "}}"
-
-  implicit val logging: PrintStreamLogging = new PrintStreamLogging()
-  implicit val whiskConfig: WhiskConfig = new WhiskConfig(
-    Map(wskApiHostname -> "apihost", runtimesManifest -> runtimes) ++ wskApiHost)
-
+    ImageName("nodejs6action", Option("openwhisk"), imageTag("nodejs:6")),
 
 Review comment:
   Trying out your suggestion, @rabbah.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services