rabbah commented on a change in pull request #3844: Add test for empty
initializer. Document other tests.
URL:
https://github.com/apache/incubator-openwhisk/pull/3844#discussion_r200489424
##########
File path: tests/src/test/scala/actionContainers/BasicActionRunnerTests.scala
##########
@@ -19,14 +19,32 @@ package actionContainers
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
-
import spray.json.DefaultJsonProtocol._
import spray.json._
@RunWith(classOf[JUnitRunner])
trait BasicActionRunnerTests extends ActionProxyContainerTestUtils {
def withActionContainer(env: Map[String, String] = Map.empty)(code:
ActionContainer => Unit): (String, String)
+ /**
+ * Runs tests for actions which receive an empty initializer (no source or
exec).
+ * @param checkResultInLogs should be true iff the result of the action is
expected to appear in stdout or stderr
+ */
+ def testNoSourceOrExec(checkResultInLogs: Boolean = true) = {
Review comment:
updated to remove the relevant code.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services