From 21f144b2f631463fa2eb028a327ef8090bcaf5d3 Mon Sep 17 00:00:00 2001 From: Ashish Tiwari Date: Tue, 15 Oct 2024 20:57:40 +0530 Subject: [PATCH] reindex --- t/plugin/consumer-bug-fix.t | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/t/plugin/consumer-bug-fix.t b/t/plugin/consumer-bug-fix.t index 201a1a3c43b5..ec9ef481c63b 100644 --- a/t/plugin/consumer-bug-fix.t +++ b/t/plugin/consumer-bug-fix.t @@ -24,6 +24,7 @@ no_root_location(); run_tests; __DATA__ + === TEST 1: add consumer jack1 --- config location /t { @@ -51,6 +52,9 @@ __DATA__ GET /t --- response_body passed + + + === TEST 2: add route --- config location /t { @@ -81,6 +85,9 @@ passed GET /t --- response_body passed + + + === TEST 3: verify 20 times --- pipelined_requests eval ["GET /hello", "GET /hello", "GET /hello", "GET /hello","GET /hello", "GET /hello", "GET /hello", "GET /hello","GET /hello", "GET /hello", "GET /hello", "GET /hello","GET /hello", "GET /hello", "GET /hello", "GET /hello","GET /hello", "GET /hello", "GET /hello", "GET /hello"] @@ -88,6 +95,9 @@ passed apikey: auth-one --- response_body eval ["before change","before change","before change","before change","before change","before change","before change","before change","before change","before change","before change","before change","before change","before change","before change","before change","before change","before change","before change","before change"] + + + === TEST 4: modify consumer --- config location /t { @@ -115,6 +125,9 @@ apikey: auth-one GET /t --- response_body passed + + + === TEST 5: verify 20 times --- pipelined_requests eval ["GET /hello", "GET /hello", "GET /hello", "GET /hello","GET /hello", "GET /hello", "GET /hello", "GET /hello","GET /hello", "GET /hello", "GET /hello", "GET /hello","GET /hello", "GET /hello", "GET /hello", "GET /hello","GET /hello", "GET /hello", "GET /hello", "GET /hello"]