You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ma...@apache.org on 2018/02/13 12:47:44 UTC

[incubator-openwhisk] branch master updated: Enhance the RestResult with more information to debug failing tests. (#3260)

This is an automated email from the ASF dual-hosted git repository.

markusthoemmes pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
     new f8d69f2  Enhance the RestResult with more information to debug failing tests. (#3260)
f8d69f2 is described below

commit f8d69f21be516bdc21f2a9039232cf32475c7b12
Author: Christian Bickel <gi...@cbickel.de>
AuthorDate: Tue Feb 13 13:47:41 2018 +0100

    Enhance the RestResult with more information to debug failing tests. (#3260)
---
 tests/src/test/scala/common/rest/WskRest.scala | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/src/test/scala/common/rest/WskRest.scala b/tests/src/test/scala/common/rest/WskRest.scala
index 4934b8e..a8a9c16 100644
--- a/tests/src/test/scala/common/rest/WskRest.scala
+++ b/tests/src/test/scala/common/rest/WskRest.scala
@@ -1531,6 +1531,12 @@ class RestResult(var statusCode: StatusCode, var respData: String = "", blocking
       respData,
       RestResult.convertHttpResponseToStderr(respData)) {
 
+  override def toString: String = {
+    super.toString + s"""statusCode: $statusCode
+       |respData: $respData
+       |blocking: $blocking""".stripMargin
+  }
+
   def respBody: JsObject = respData.parseJson.asJsObject
 
   def getField(key: String): String = {

-- 
To stop receiving notification emails like this one, please contact
markusthoemmes@apache.org.