This is an automated email from the ASF dual-hosted git repository. wenming pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git
The following commit(s) were added to refs/heads/master by this push: new 8958c6c test case: Adding unit test for key auth plugin with valid api key (#964) 8958c6c is described below commit 8958c6ce0d28ba72a05b86ff53f009aff389c122 Author: Nirojan Selvanathan <sshn...@gmail.com> AuthorDate: Fri Dec 13 06:16:47 2019 +0100 test case: Adding unit test for key auth plugin with valid api key (#964) --- t/plugin/key-auth.t | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/t/plugin/key-auth.t b/t/plugin/key-auth.t index 1608f96..a47292e 100644 --- a/t/plugin/key-auth.t +++ b/t/plugin/key-auth.t @@ -147,7 +147,19 @@ passed -=== TEST 5: invalid consumer +=== TEST 5: valid consumer +--- request +GET /hello +--- more_headers +apikey: auth-one +--- response_body +hello world +--- no_error_log +[error] + + + +=== TEST 6: invalid consumer --- request GET /hello --- more_headers @@ -160,7 +172,7 @@ apikey: 123 -=== TEST 6: not found apikey header +=== TEST 7: not found apikey header --- request GET /hello --- error_code: 401 @@ -171,7 +183,7 @@ GET /hello -=== TEST 7: valid consumer +=== TEST 8: valid consumer --- config location /add_more_consumer { content_by_lua_block {