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

chore(tests) internalize a Go I/O test case #378

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
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
15 changes: 14 additions & 1 deletion t/03-proxy_wasm/sdks/002-go_sdk/006-http_auth_random.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ our $ExtTimeout = $t::TestWasm::exttimeout;
skip_valgrind();
skip_no_tinygo();

repeat_each(1);
repeat_each(3);

plan tests => repeat_each() * (blocks() * 6);

Expand All @@ -19,6 +19,7 @@ run_tests();
__DATA__

=== TEST 1: proxy_wasm Go SDK - http_auth_random example
NOTE: comment-out `resolver_add` below to run against httpbin.org
--- timeout eval: $::ExtTimeout
--- load_nginx_modules: ngx_http_echo_module
--- main_config eval
Expand All @@ -30,10 +31,22 @@ qq{
socket_read_timeout $::ExtTimeout;
}
}
--- http_config
server {
listen $TEST_NGINX_SERVER_PORT2;
server_name httpbin;

location /uuid {
# Generating a uuid seems excessive; $request_id has some
# randomness on a distribution of runs of this test.
echo $request_id;
}
}
--- config eval
qq{
resolver $::ExtResolver;
resolver_timeout $::ExtTimeout;
resolver_add 127.0.0.1 httpbin;

location /uuid {
proxy_wasm go_http_auth_random;
Expand Down
Loading