You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2022/05/20 07:22:21 UTC
[apisix] 04/07: ci(traffic-split): improve ci stability (#7055)
This is an automated email from the ASF dual-hosted git repository.
spacewander pushed a commit to branch release/2.10
in repository https://gitbox.apache.org/repos/asf/apisix.git
commit 2b7fe2313daadb0f5a0e2cbb2f556f1d16807fdd
Author: soulbird <zh...@outlook.com>
AuthorDate: Mon May 16 14:24:27 2022 +0800
ci(traffic-split): improve ci stability (#7055)
Co-authored-by: soulbird <zh...@gmail.com>
---
t/plugin/traffic-split.t | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/t/plugin/traffic-split.t b/t/plugin/traffic-split.t
index 423816f1f..d738edfe7 100644
--- a/t/plugin/traffic-split.t
+++ b/t/plugin/traffic-split.t
@@ -617,7 +617,7 @@ GET /t
local json = require("toolkit.json")
local t = require("lib.test_admin").test
local data = {
- uri = "/server_port",
+ uri = "/",
plugins = {
["traffic-split"] = {
rules = { {
@@ -625,8 +625,10 @@ GET /t
upstream = {
name = "upstream_A",
type = "roundrobin",
+ pass_host = "rewrite",
+ upstream_host = "www.apiseven.com",
nodes = {
- ["apiseven.com:80"] = 0
+ ["www.apiseven.com:80"] = 0
}
},
weight = 100000
@@ -664,10 +666,10 @@ passed
=== TEST 19: domain name resolved successfully
--- request
-GET /server_port
---- error_code: 502
+GET /
+--- error_code: 200
--- error_log eval
-qr/dns resolver domain: apiseven.com to \d+.\d+.\d+.\d+/
+qr/dns resolver domain: www.apiseven.com to \d+.\d+.\d+.\d+/