ztelur commented on a change in pull request #242:
URL: https://github.com/apache/dubbo-go-pixiu/pull/242#discussion_r696619954



##########
File path: pkg/config/config_load_test.go
##########
@@ -36,6 +37,56 @@ var b model.Bootstrap
 
 func TestMain(m *testing.M) {
        log.Println("Prepare Bootstrap")
+
+       hcmc := model.HttpConnectionManager{
+               RouteConfig: model.RouteConfiguration{
+                       Routes: []*model.Router{
+                               {
+                                       ID: "1",
+                                       Match: model.RouterMatch{
+                                               Prefix: "/api/v1",
+                                               Methods: []string{
+                                                       "POST",
+                                               },
+                                               Path:  "",
+                                               Regex: "",
+                                               Headers: []model.HeaderMatcher{
+                                                       {Name: "X-DGP-WAY",
+                                                               Values: 
[]string{"Dubbo"},
+                                                               Regex:  false,
+                                                       },
+                                               },
+                                       },
+                                       Route: model.RouteAction{
+                                               Cluster:                     
"test_dubbo",
+                                               ClusterNotFoundResponseCode: 
505,
+                                       },
+                               },
+                       },
+                       Dynamic: false,
+               },
+               HTTPFilters: []*model.HTTPFilter{
+                       {
+                               Name:   "dgp.filters.http.api",
+                               Config: nil,
+                       },
+                       {
+                               Name:   "dgp.filters.http.router",
+                               Config: nil,
+                       },
+                       {
+                               Name:   "dgp.filters.http_transfer_dubbo",

Review comment:
       看着早期 filter 的名称很多都是下划线开头的,可能是受到 envoy 中 filter 名称的影响 😂 
   
![image](https://user-images.githubusercontent.com/6263372/130968708-44b23793-18d9-48b0-8f1e-55e2a67d109d.png)
   




-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to