Skip to content

Commit

Permalink
improve test case. add version of geo-ip plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ranxuxin001 committed Aug 27, 2024
1 parent 53cfca5 commit 2a0e5a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions plugins/wasm-go/extensions/geo-ip/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.0-alpha
8 changes: 4 additions & 4 deletions test/e2e/conformance/tests/go-wasm-geo-ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ var WasmPluginsGeoIPPlugin = suite.ConformanceTest{
Request: http.AssertionRequest{
ActualRequest: http.Request{
Host: "foo.com",
Path: "/info",
Path: "/get",
UnfollowRedirect: true,
Headers: map[string]string{
"X-Forwarded-For": "70.155.208.224,10.1.1.1",
},
},
ExpectedRequest: &http.ExpectedRequest{
Request: http.Request{
Path: "/info",
Path: "/get",
Host: "foo.com",
Headers: map[string]string{
"X-Higress-Geo-Isp": url.QueryEscape("美国电话电报"),
Expand All @@ -75,15 +75,15 @@ var WasmPluginsGeoIPPlugin = suite.ConformanceTest{
Request: http.AssertionRequest{
ActualRequest: http.Request{
Host: "foo.com",
Path: "/info",
Path: "/get",
UnfollowRedirect: true,
Headers: map[string]string{
"X-Forwarded-For": "2.2.128.100,10.1.1.2",
},
},
ExpectedRequest: &http.ExpectedRequest{
Request: http.Request{
Path: "/info",
Path: "/get",
Host: "foo.com",
Headers: map[string]string{
"X-Higress-Geo-Isp": url.QueryEscape("橘子电信"),
Expand Down

0 comments on commit 2a0e5a4

Please sign in to comment.