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

add sample cors test #123

Merged
merged 2 commits into from
May 14, 2023
Merged

add sample cors test #123

merged 2 commits into from
May 14, 2023

Conversation

kevinkreiser
Copy link
Owner

this is an example that we can expand and duplicate to get the shirtcirtuiters cors functionality merged

@kevinkreiser
Copy link
Owner Author

@ldsmoreira i'll get this merged, then we can merge that into your branch and you can expand and duplicate it to test all the functionality that you've added over in #118

Comment on lines +277 to +279
// we dont have preflight support implemented yet so we expect nothing to happen here
if (server.last_responses.size() != 0)
throw std::logic_error("Cors preflight is not implemented but we got a response");
Copy link
Owner Author

Choose a reason for hiding this comment

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

@ldsmoreira once we get this merged to master and then merged into your branch, you can change this bit here to check that the shortcircuiter replied properly here

void test_cors_preflight() {
// a server who lets us snoop on what its doing
zmq::context_t context;
testable_http_server_t server(context, "ipc:///tmp/test_http_server",
Copy link
Owner Author

Choose a reason for hiding this comment

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

you'll probably also need to configuration your shortcircuiter here as well

@ldsmoreira
Copy link

Hello @kevinkreiser !! Nice!!
When you get it merged i will start making the tests as soon as possible!

@kevinkreiser
Copy link
Owner Author

@ldsmoreira it seems that the CI has been updated and it was causes any mac builds to fail. ive opened another pr and merged that, which fixes this (for the tiem being). i've merged it into this branch now and thsi shoudl finally pass CI and i can merge this and unblock you. apologies!

@kevinkreiser kevinkreiser merged commit 8aa206d into master May 14, 2023
@kevinkreiser kevinkreiser deleted the kk_shortcircuit_test_example branch May 14, 2023 04:14
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