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

test: httpbin.org -> localhost:8080 #102

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

steve-chavez
Copy link
Member

Move all the tests from httpbin.org to local openresty server

Following up from #99 (comment)

Move all the tests from httpbin.org to local openresty server
Comment on lines +14 to +39

location /anything {
echo $is_args$query_string;
}

location /headers {
echo_duplicate 1 $echo_client_request_headers;
}

location /post {
if ($request_method != 'POST'){
return 405;
}
if ($http_accept != "application/json") {
return 406;
}
echo_read_request_body;
echo $request_body;
}

location /delete {
if ($request_method != 'DELETE'){
return 405;
}
echo_duplicate 1 $echo_client_request_headers$is_args$query_string;
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This config is all there's to it. The tests are mostly kept as is.

Copy link
Member

@soedirgo soedirgo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌 Nice work!

@steve-chavez steve-chavez merged commit 18a3c82 into supabase:master Aug 17, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants