You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/08/26 13:18:11 UTC

[GitHub] [dubbo-go-pixiu] ztelur commented on a change in pull request #242: Pixiu Config

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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org