Skip to content

Commit

Permalink
revert a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
kingluo committed May 17, 2023
1 parent 7413606 commit ce4d835
Showing 1 changed file with 41 additions and 5 deletions.
46 changes: 41 additions & 5 deletions t/core/config_etcd.t
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,43 @@ passed



=== TEST 7: ensure add prefix automatically for _M.getkey
=== TEST 7: ensure only one auth request per subsystem for all the etcd sync
--- yaml_config
apisix:
node_listen: 1984
deployment:
role: traditional
role_traditional:
config_provider: etcd
etcd:
host:
- "http://127.0.0.1:1980" -- fake server port
timeout: 1
user: root # root username for etcd
password: 5tHkHhYkjr6cQY # root password for etcd
--- extra_init_by_lua
local health_check = require("resty.etcd.health_check")
health_check.get_target_status = function()
return true
end
--- config
location /t {
content_by_lua_block {
ngx.sleep(0.5)
}
}
--- request
GET /t
--- grep_error_log eval
qr/etcd auth failed/
--- grep_error_log_out
etcd auth failed
etcd auth failed
etcd auth failed



=== TEST 8: ensure add prefix automatically for _M.getkey
--- config
location /t {
content_by_lua_block {
Expand Down Expand Up @@ -264,7 +300,7 @@ passed



=== TEST 8: Test ETCD health check mode switch during APISIX startup
=== TEST 9: Test ETCD health check mode switch during APISIX startup
--- config
location /t {
content_by_lua_block {
Expand All @@ -283,7 +319,7 @@ qr/healthy check use round robin



=== TEST 9: last_err can be nil when the reconnection is successful
=== TEST 10: last_err can be nil when the reconnection is successful
--- config
location /t {
content_by_lua_block {
Expand Down Expand Up @@ -313,7 +349,7 @@ passed



=== TEST 10: reloaded data may be in res.body.node (special kvs structure)
=== TEST 11: reloaded data may be in res.body.node (special kvs structure)
--- yaml_config
deployment:
role: traditional
Expand Down Expand Up @@ -360,7 +396,7 @@ qr/readdir key: fake res: \{("value":"bar","key":"foo"|"key":"foo","value":"bar"



=== TEST 11: reloaded data may be in res.body.node (admin_api_version is v2)
=== TEST 12: reloaded data may be in res.body.node (admin_api_version is v2)
--- yaml_config
deployment:
role: traditional
Expand Down

0 comments on commit ce4d835

Please sign in to comment.