markusthoemmes closed pull request #3260: Enhance the RestResult with more 
information to debug failing tests e?
URL: https://github.com/apache/incubator-openwhisk/pull/3260
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/tests/src/test/scala/common/rest/WskRest.scala 
b/tests/src/test/scala/common/rest/WskRest.scala
index 4934b8ec42..a8a9c16022 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 = {


 

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to