ningyougang commented on PR #517: URL: https://github.com/apache/openwhisk-cli/pull/517#issuecomment-1222104154
Now there has only 1 test case failed ![image](https://user-images.githubusercontent.com/11749867/185889805-7455cb72-79ef-46c5-9ef1-d62ac27eaa75.png) I tested local in Test's scala's main like below ``` ... def main(args: Array[String]): Unit = { implicit val actorSystem = ActorSystem("test-actor-system") val uri = Uri("http://localhost:8081") val requests = new ListBuffer[(HttpRequest, HttpResponse)] //val port = freePort() val port = 9999 val proxy = Route { context => val request = context.request val handler = Source .single(proxyRequest(request, uri)) .via(makeHttpFlow(uri)) .runWith(Sink.head) .map { response => requests += ((request, response)) response } .flatMap(context.complete(_)) handler } println("new port:" + port) val binding = Http(actorSystem).newServerAt(interface = "localhost", port = port).bindFlow(proxy) binding.map { b => Thread.sleep(1000 * 60) } } ``` It can open a new proxy port which points to the original endpoint. I don't know why failed in test case. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@openwhisk.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org