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



##########
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:
       你的很多配置中method或者class用了下划线,java和go都没有这种命名风格啊?




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