-
Notifications
You must be signed in to change notification settings - Fork 41
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
List and Search Blacklist IP Addresses #18
base: master
Are you sure you want to change the base?
Conversation
the return statement in the if clause already guards against executing the code outside the clause
The upstream test file has changed
this will avoid redundancy in code that need to redeclare the same variables
this allows the caller to add one or more ips to the blacklist
exist subcommand checks if the given ip exists in the blacklist returns true if it exists otherwise false
checks whether the cli params passed in are also equal to 2 to cater for the blacklist 'exists' subcommand whose cli params length is exactly 2
initially passed in the subcommand value instead of the ip value whose index is 1
Is it finished and tested? Please also make sure that all checks pass. |
removed unused column slice
Sure will do. |
Let me add tests for the new blacklist features.Had tested them manually. oops! |
This condition is a bit useless: Also keep in mind that you need to clear the log for assertions, if they could potentially be contained in previous responses. As this test does not require the login flow, can you put it in a different test case, so that it can potentially be run in parallel? Would be great if you could as well add a test case that checks if the blacklist actually blocks a user (eg blocking localhost, surfing and verifying that the connection fails, then unblocking and trying again). |
Looks like it should pass - maybe thats due to some local constraints? |
This PR adds three features to the blacklist command. One can now: