mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-02 12:07:35 +08:00
ci(traffic-split): improve ci stability (#7055)
Co-authored-by: soulbird <zhaothree@gmail.com>
This commit is contained in:
parent
748e8fe5a2
commit
0c73489e7a
12
t/plugin/traffic-split.t
vendored
12
t/plugin/traffic-split.t
vendored
@ -696,7 +696,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 = { {
|
||||
@ -704,8 +704,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
|
||||
@ -743,10 +745,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+/
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user