nic-chen commented on a change in pull request #2104:
URL: https://github.com/apache/apisix-dashboard/pull/2104#discussion_r732380280



##########
File path: api/test/e2enew/base/base.go
##########
@@ -81,6 +82,19 @@ func APISIXExpect() *httpexpect.Expect {
        return httpexpect.New(t, APISIXHost)
 }
 
+func APISIXStreamProxyExpect(port uint16, isHTTPS bool) *httpexpect.Expect {
+       if port == 0 {
+               port = 10090
+       }
+       t := getTestingHandle()
+
+       if isHTTPS {
+               return httpexpect.New(t, "https://"; + 
net.JoinHostPort("127.0.0.1", strconv.Itoa(int(port))))
+       } else {
+               return httpexpect.New(t, "http://"; + 
net.JoinHostPort("127.0.0.1", strconv.Itoa(int(port))))
+       }
+}

Review comment:
       I think we should add a TCP test case, make sure it works well. 




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to