bzp2010 commented on a change in pull request #2104:
URL: https://github.com/apache/apisix-dashboard/pull/2104#discussion_r732492730
##########
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:
Hi, @nic-chen.
I think the main purpose of Manager API testing is to ensure that it can
correctly create corresponding data entities according to user requests and
store them in etcd. Therefore, we only need to test that this part works well
(I have added test cases using streamroute proxy HTTP and HTTPS (TLS + SNI),
which also belong to one of TCP). More DP tests on functional availability have
been carried out in Apache APISIX. I don't think it is necessary to add more DP
test cases.
What do you think?
--
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]