mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-03 12:37:36 +08:00
test: rewrite flaky consul_kv case (#3972)
This commit is contained in:
parent
f6d81cdc5c
commit
bb7d8a8f53
@ -315,16 +315,6 @@ location /sleep {
|
||||
--- timeout: 6
|
||||
--- request eval
|
||||
[
|
||||
"DELETE /v1/kv/upstreams/webpages/?recurse=true",
|
||||
"PUT /v1/kv/upstreams/webpages/127.0.0.1:30511\n" . "{\"weight\": 1, \"max_fails\": 2, \"fail_timeout\": 1}",
|
||||
"GET /sleep?sec=5",
|
||||
"GET /hello",
|
||||
|
||||
"PUT /v1/kv/upstreams/webpages/127.0.0.1:30512\n" . "{\"weight\": 1, \"max_fails\": 2, \"fail_timeout\": 1}",
|
||||
"GET /sleep",
|
||||
"GET /hello",
|
||||
"GET /hello",
|
||||
|
||||
"DELETE /v1/kv/upstreams/webpages/127.0.0.1:30511",
|
||||
"DELETE /v1/kv/upstreams/webpages/127.0.0.1:30512",
|
||||
"PUT /v1/kv/upstreams/webpages/127.0.0.1:30513\n" . "{\"weight\": 1, \"max_fails\": 2, \"fail_timeout\": 1}",
|
||||
@ -350,16 +340,6 @@ location /sleep {
|
||||
]
|
||||
--- response_body_like eval
|
||||
[
|
||||
qr/true/,
|
||||
qr/true/,
|
||||
qr/ok\n/,
|
||||
qr/server 1\n/,
|
||||
|
||||
qr/true/,
|
||||
qr/ok\n/,
|
||||
qr/server [1-2]\n/,
|
||||
qr/server [1-2]\n/,
|
||||
|
||||
qr/true/,
|
||||
qr/true/,
|
||||
qr/true/,
|
||||
|
Loading…
Reference in New Issue
Block a user