-
Notifications
You must be signed in to change notification settings - Fork 98
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
Refactored inetnum status validation #1429
Conversation
maggarwal13
commented
Apr 9, 2024
•
edited by eshryane
Loading
edited by eshryane
- An ALLOCATED PA inetnum requires to be mnt-by an RS maintainer
- Removed unused code (an allocation mntner is only needed for inet6num, not inetnum)
In this PR we are doing more than just removing code, right? Do we need to update the tittle? |
I reviewed the changes with @maggarwal13, updated the title and description. |
Thanks, much clear now |
* remove_unused_code * fix_tests
* remove_unused_code * fix_tests
* feat: remove the email if bounce message failed * feat: refactor to just return and delete the message when it is multipart or textplain message and doesn't meet the requirements * Allow MimeMessageHelper as parameter in MailGatewaySmtp (#1420) * feat: little refactor in mailGatewaySmtp * feat: from can be different from whois-internal as well * feat: from should be always from mail.smtp * Roa Rpki Validator From Internal (#1419) * feat: move rao rpki validator common code from whois internal to whois * feat: move code into common module, add component and service and return an error if optional property is empty * feat: return null and add nullable annotation * feat: put less roas * Allow MimeMessageHelper as parameter in MailGatewaySmtp (#1420) * feat: little refactor in mailGatewaySmtp * feat: from can be different from whois-internal as well * feat: from should be always from mail.smtp * feat: fix a TODO typo and IT should work even if roas are not specified * Move RPKI Validator Dummifier to Correct Module (#1421) * feat: move dummifier class to correct module * feat: move roas.json to common * Final-Recipient: RFC822 is case insensitive (#1423) * Final-Recipient: RFC822 is case insensitive. * There may also be a space separator * feat: move all message logic from whois-internal to whois (#1424) * feat: runtime exception fix when using this module (#1425) * feat: do no return error if roas are not loaded (#1426) * Return 404 on invalid NRTMv4 notification file path (#1422) * _check_valid_notification_file * refactor --------- Co-authored-by: Ed Shryane <eshryane@ripe.net> * feat: fix logger issue (#1427) * remove_unused_code (#1429) * remove_unused_code * fix_tests * Revert changes to thread configuration in tests (#1415) * Handle Multiple Delivery Status Notification Failure Responses for the Same Email Address (#1417) * feat: remove message after error and catch DuplicateKeyException * feat: split the changes, just leave Catch in this PR * feat: catch the exception by email, no for all the emails. Turn the warn into debug * feat: put white space after try and before bracket * feat: just loop once * Added test to make sure the message doesn't get stuck * Fix test (rs.next() behaves the same if there is a result row or not) --------- Co-authored-by: Ed Shryane <eshryane@ripe.net> * feat: remove disabled and catch illegalStateException * feat: remove unused imports and add serialId to the exception * feat: return null in case unsubscription parsing do not succed * feat: fix tests * feat: log as info instead error when bouce detection or unsubscribing message fails, log as error when there is some unexpected error in the message --------- Co-authored-by: Ed Shryane <eshryane@ripe.net> Co-authored-by: maggarwal13 <50230916+maggarwal13@users.noreply.github.com>
* feat: create new warning for roas check and test for legacy * feat: add test for REST API calls and little refactor to specify rest messages * feat: fix ITs * feat: add more tests * feat: create the validator * feat: fix compile error due to previous code * feat: renaming and deleting white spaces * feat: fix tests according to last changes * feat: remove already migrated classes * feat: change generator by validator * feat: fix compilation errors * feat: increase testperformance to 3s * feat: put timeout back to 2s and fix compilation issue in whoisFixture * feat: fix compilation issues * feat: fix ITs * feat: refactor messages and PR comments * feat: fix ITs * feat: refactor * feat: rename * feat: rename * Return 404 on invalid NRTMv4 notification file path (#1422) * _check_valid_notification_file * refactor --------- Co-authored-by: Ed Shryane <eshryane@ripe.net> * feat: fix logger issue (#1427) * remove_unused_code (#1429) * remove_unused_code * fix_tests * Revert changes to thread configuration in tests (#1415) * Handle Multiple Delivery Status Notification Failure Responses for the Same Email Address (#1417) * feat: remove message after error and catch DuplicateKeyException * feat: split the changes, just leave Catch in this PR * feat: catch the exception by email, no for all the emails. Turn the warn into debug * feat: put white space after try and before bracket * feat: just loop once * Added test to make sure the message doesn't get stuck * Fix test (rs.next() behaves the same if there is a result row or not) --------- Co-authored-by: Ed Shryane <eshryane@ripe.net> * Fix tests (#1433) * fix tests * fix tests * reduce mariadb innodb memory usage to 1GB (#1439) * Set memory limit for test elasticsearch instance (#1436) * Set memory limit for test elasticsearch instance * Move ES memlimit to ENV variable * Reduce elasticsearch memory limit --------- Co-authored-by: Ed Shryane <eshryane@ripe.net> * feat: renaming, revert ErrorMessages changes, change the query flag, remove @service * feat: use a queryParameter instead of queryFlag * feat: add stopwatch to monitor the performance of RPKI service * feat: add missing return * feat: rpki service should be a @service and RpkiRoaChecker a component because performance issues, pulling all roas each call * feat: remove unused imports * feat: ignore roa update if there is an error with the call * feat: align errormessages name with objectmessages, same format * feat: fix lookup case, when roa-checker is not a parameter * feat: pass the type as parameter for the message and create two test for route6 * feat: return different messages per use case; origin fail, prefix length or both * feat: change warning message --------- Co-authored-by: maggarwal13 <50230916+maggarwal13@users.noreply.github.com> Co-authored-by: Ed Shryane <eshryane@ripe.net> Co-authored-by: Firdavs Murodov <fmurodov@ripe.net>
* feat: create new warning for roas check and test for legacy * feat: add test for REST API calls and little refactor to specify rest messages * feat: fix ITs * feat: add more tests * feat: create the validator * feat: fix compile error due to previous code * feat: renaming and deleting white spaces * feat: fix tests according to last changes * feat: remove already migrated classes * feat: change generator by validator * feat: fix compilation errors * feat: increase testperformance to 3s * feat: put timeout back to 2s and fix compilation issue in whoisFixture * feat: fix compilation issues * feat: fix ITs * feat: refactor messages and PR comments * feat: fix ITs * feat: refactor * feat: rename * feat: rename * Return 404 on invalid NRTMv4 notification file path (#1422) * _check_valid_notification_file * refactor --------- Co-authored-by: Ed Shryane <eshryane@ripe.net> * feat: fix logger issue (#1427) * remove_unused_code (#1429) * remove_unused_code * fix_tests * Revert changes to thread configuration in tests (#1415) * Handle Multiple Delivery Status Notification Failure Responses for the Same Email Address (#1417) * feat: remove message after error and catch DuplicateKeyException * feat: split the changes, just leave Catch in this PR * feat: catch the exception by email, no for all the emails. Turn the warn into debug * feat: put white space after try and before bracket * feat: just loop once * Added test to make sure the message doesn't get stuck * Fix test (rs.next() behaves the same if there is a result row or not) --------- Co-authored-by: Ed Shryane <eshryane@ripe.net> * Fix tests (#1433) * fix tests * fix tests * reduce mariadb innodb memory usage to 1GB (#1439) * Set memory limit for test elasticsearch instance (#1436) * Set memory limit for test elasticsearch instance * Move ES memlimit to ENV variable * Reduce elasticsearch memory limit --------- Co-authored-by: Ed Shryane <eshryane@ripe.net> * feat: renaming, revert ErrorMessages changes, change the query flag, remove @service * feat: use a queryParameter instead of queryFlag * feat: add stopwatch to monitor the performance of RPKI service * feat: add missing return * feat: rpki service should be a @service and RpkiRoaChecker a component because performance issues, pulling all roas each call * feat: schedule roas * feat: remove blank lines * use SynchonizedIntervalMap to avoid concurrent problems * feat: remove unused import * feat: fix cron expresion * feat: intantiate new interval instead using clean * feat: fix each seconds issue * feat: use nestedIntervalMap instead async map * feat: remove initial inizialisation * feat: change message error and refactor * feat: rename * feat: avoid returning a pair --------- Co-authored-by: maggarwal13 <50230916+maggarwal13@users.noreply.github.com> Co-authored-by: Ed Shryane <eshryane@ripe.net> Co-authored-by: Firdavs Murodov <fmurodov@ripe.net>