Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: control the proxy_upstream in lua side #98

Merged
merged 19 commits into from
Dec 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: fix test
oowl committed Dec 18, 2024
commit f4dfc9b272d41c392c37509228ffcc5546f11a96
10 changes: 5 additions & 5 deletions t/013-upstream.t
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ log_level('info');
repeat_each(2);
#repeat_each(1);

plan tests => repeat_each() * (blocks() * 2) + 8;
plan tests => repeat_each() * (blocks() * 2);

#no_diff();
#no_long_string();
@@ -159,8 +159,8 @@ __DATA__
}
--- pipelined_requests eval
["GET /balancer", "GET /balancer"]
--- response_body eval
["this is backend peer \$TEST_NGINX_RAND_PORT_4", "this is backend peer \$TEST_NGINX_RAND_PORT_4"]
--- error_code eval
[200, 200]

=== TEST 3: lua resty.kong.upstream.set_next_upstream()
--- http_config
@@ -239,8 +239,8 @@ __DATA__
}
--- pipelined_requests eval
["GET /balancer", "GET /balancer"]
--- response_body eval
["this is backend peer \$TEST_NGINX_RAND_PORT_4", "this is backend peer \$TEST_NGINX_RAND_PORT_4"]
--- error_code eval
[200, 200]

=== TEST 4: lua resty.kong.upstream.set_next_upstream() with error
--- http_config