You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ra...@apache.org on 2018/01/17 13:39:28 UTC

[incubator-openwhisk] branch master updated: Code clean up (#3190)

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

rabbah 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 ca38d59  Code clean up (#3190)
ca38d59 is described below

commit ca38d5919f3aab6ab2b451627ad1d2fa1035a6c6
Author: James Dubee <jw...@us.ibm.com>
AuthorDate: Wed Jan 17 08:39:24 2018 -0500

    Code clean up (#3190)
---
 common/scala/src/main/scala/whisk/http/BasicHttpService.scala          | 2 +-
 tests/src/test/scala/system/rest/GoCLINginxTests.scala                 | 3 ---
 .../src/test/scala/whisk/core/controller/test/SwaggerRoutesTests.scala | 1 -
 3 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/common/scala/src/main/scala/whisk/http/BasicHttpService.scala b/common/scala/src/main/scala/whisk/http/BasicHttpService.scala
index 798bb1e..7fe5147 100644
--- a/common/scala/src/main/scala/whisk/http/BasicHttpService.scala
+++ b/common/scala/src/main/scala/whisk/http/BasicHttpService.scala
@@ -60,7 +60,7 @@ trait BasicHttpService extends Directives with TransactionCounter {
    */
   def loglevelForRoute(route: String): Logging.LogLevel = Logging.InfoLevel
 
-  /** Rejection handler to terminate connection on a bad request. Delegates to Akka handler. */
+  /** Prioritized rejections based on relevance. */
   val prioritizeRejections = recoverRejections { rejections =>
     val priorityRejection = rejections.find {
       case rejection: UnacceptedResponseContentTypeRejection => true
diff --git a/tests/src/test/scala/system/rest/GoCLINginxTests.scala b/tests/src/test/scala/system/rest/GoCLINginxTests.scala
index a5049a6..3621a4d 100644
--- a/tests/src/test/scala/system/rest/GoCLINginxTests.scala
+++ b/tests/src/test/scala/system/rest/GoCLINginxTests.scala
@@ -32,10 +32,7 @@ import DefaultJsonProtocol._
  */
 @RunWith(classOf[JUnitRunner])
 class GoCLINginxTests extends FlatSpec with Matchers with RestUtil {
-  val ProductName = "OpenWhisk_CLI"
   val DownloadLinkGoCli = "cli/go/download"
-  val OperatingSystems = List("mac", "linux", "windows")
-  val Architectures = List("386", "amd64")
   val ServiceURL = getServiceURL()
 
   it should s"respond to all files in root directory" in {
diff --git a/tests/src/test/scala/whisk/core/controller/test/SwaggerRoutesTests.scala b/tests/src/test/scala/whisk/core/controller/test/SwaggerRoutesTests.scala
index c0d4613..acfda89 100644
--- a/tests/src/test/scala/whisk/core/controller/test/SwaggerRoutesTests.scala
+++ b/tests/src/test/scala/whisk/core/controller/test/SwaggerRoutesTests.scala
@@ -23,7 +23,6 @@ import org.scalatest.junit.JUnitRunner
 
 import akka.http.scaladsl.model.StatusCodes._
 import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport._
-//import akka.http.scaladsl.model.Uri.Query
 import akka.http.scaladsl.server.Route
 import akka.http.scaladsl.model.Uri
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].