-
Notifications
You must be signed in to change notification settings - Fork 704
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 back whitelisting and unit tests for it #2545
Conversation
@@ -327,27 +330,17 @@ const std::vector<std::pair<uint16_t, std::string>> osrm_responses{ | |||
{400, | |||
R"({"code":"InvalidValue","message":"The successfully parsed query parameters are invalid."})"}}; | |||
|
|||
zmq::context_t context; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the diff looks odd here because i pulled the configuration making out into its own function. this part of the test and the tests that rely on it didnt change
@@ -428,7 +440,37 @@ TEST(LokiService, test_osrm_failure_requests) { | |||
run_requests(osrm_requests, osrm_responses); | |||
} | |||
|
|||
// todo: test_success_requests?? | |||
TEST(LokiService, test_actions_whitelist) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the only real change to the test, a new test that checks getting rejected and checks getting accepted for all actions
long ago we accidentally removed the action whitelisting functionality from the code. this puts it back and adds unit tests for it.
reference: 1175a5a#diff-571fae4697ac934f38db80af7b71d54dL69