openwisp-controller
openwisp-controller copied to clipboard
[change] Switched 'Background API Task' notification to 'Generic Mess…
…age' #1048
Changed the notification format to generic and adjusted tests to cooperate with the change too.
Fixes #1048
Checklist
- [x] I have read the OpenWISP Contributing Guidelines.
- [x] I have manually tested the changes proposed in this pull request.
- [ ] I have written new test cases for new code and/or updated existing tests for changes to existing code.
- [ ] I have updated the documentation.
Reference to Existing Issue
Closes #1048.
Description of Changes
replaced api_task_{type} for both error and recovery and modified tests to support the changes.
one thing more that is left and would be required is changes to test and fiile function names to follow the change structure. Few being :-
test_zerotier_api_tasks_notification and _send_api_task_notification
I'll make sure to do these after a review and further steps on the current changes.