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 back whitelisting and unit tests for it #2545

Merged
merged 2 commits into from
Aug 20, 2020
Merged

Conversation

kevinkreiser
Copy link
Member

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

@@ -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;
Copy link
Member Author

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) {
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 is the only real change to the test, a new test that checks getting rejected and checks getting accepted for all actions

@kevinkreiser kevinkreiser merged commit 0cedbb9 into master Aug 20, 2020
kdiluca added a commit that referenced this pull request Aug 28, 2020
@kevinkreiser kevinkreiser mentioned this pull request Aug 29, 2020
4 tasks
kdiluca added a commit that referenced this pull request Aug 30, 2020
kdiluca added a commit that referenced this pull request Aug 31, 2020
kdiluca added a commit that referenced this pull request Aug 31, 2020
kdiluca added a commit that referenced this pull request Sep 1, 2020
kdiluca added a commit that referenced this pull request Sep 1, 2020
kdiluca added a commit that referenced this pull request Sep 1, 2020
kdiluca added a commit that referenced this pull request Sep 1, 2020
kdiluca added a commit that referenced this pull request Sep 1, 2020
kdiluca added a commit that referenced this pull request Sep 1, 2020
kdiluca added a commit that referenced this pull request Sep 3, 2020
kdiluca added a commit that referenced this pull request Sep 4, 2020
kdiluca added a commit that referenced this pull request Sep 5, 2020
kdiluca added a commit that referenced this pull request Sep 5, 2020
kdiluca added a commit that referenced this pull request Sep 5, 2020
kdiluca added a commit that referenced this pull request Sep 5, 2020
kdiluca added a commit that referenced this pull request Sep 8, 2020
kdiluca added a commit that referenced this pull request Sep 8, 2020
kdiluca added a commit that referenced this pull request Sep 8, 2020
kdiluca added a commit that referenced this pull request Sep 8, 2020
kdiluca added a commit that referenced this pull request Sep 9, 2020
kdiluca added a commit that referenced this pull request Sep 11, 2020
kdiluca added a commit that referenced this pull request Sep 12, 2020
kdiluca added a commit that referenced this pull request Sep 12, 2020
kdiluca added a commit that referenced this pull request Sep 12, 2020
kdiluca added a commit that referenced this pull request Sep 12, 2020
kdiluca added a commit that referenced this pull request Sep 12, 2020
kdiluca added a commit that referenced this pull request Sep 12, 2020
kdiluca added a commit that referenced this pull request Sep 16, 2020
kdiluca added a commit that referenced this pull request Sep 17, 2020
kdiluca added a commit that referenced this pull request Sep 18, 2020
kdiluca added a commit that referenced this pull request Sep 18, 2020
kdiluca added a commit that referenced this pull request Sep 18, 2020
kdiluca added a commit that referenced this pull request Sep 18, 2020
kdiluca added a commit that referenced this pull request Sep 18, 2020
kdiluca added a commit that referenced this pull request Sep 18, 2020
kdiluca added a commit that referenced this pull request Sep 18, 2020
kdiluca added a commit that referenced this pull request Sep 18, 2020
kdiluca added a commit that referenced this pull request Sep 21, 2020
kdiluca added a commit that referenced this pull request Sep 21, 2020
kdiluca added a commit that referenced this pull request Sep 21, 2020
kdiluca added a commit that referenced this pull request Sep 21, 2020
kdiluca added a commit that referenced this pull request Sep 21, 2020
kdiluca added a commit that referenced this pull request Sep 21, 2020
kdiluca added a commit that referenced this pull request Sep 22, 2020
kdiluca added a commit that referenced this pull request Sep 22, 2020
kdiluca added a commit that referenced this pull request Sep 22, 2020
kdiluca added a commit that referenced this pull request Sep 22, 2020
kdiluca added a commit that referenced this pull request Sep 22, 2020
kdiluca added a commit that referenced this pull request Sep 22, 2020
@kevinkreiser kevinkreiser deleted the kk_whitelist branch January 5, 2022 03:42
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.

None yet

2 participants