You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…s + code cleanup
Summary:
Code cleanup in AlertController and AlertRoute (introducing AlertRouteService).
Test Plan:
No specific tests required for this commit. Only to verify the alerts API functionality.
Reviewers: amalyshev
Reviewed By: amalyshev
Subscribers: jenkins-bot, yugaware
Differential Revision: https://phabricator.dev.yugabyte.com/D12212
Summary:
- Implemented repeats of notifications sending in case the current attempt is failed;
Test Plan:
Test scenario:
- Remove all recipients from the customer's configuration;
- Raise any alert on a universe;
- Check that the alert appeared on the `Alerts` page in YW;
- Check that another alert appeared on the `Alerts` page (with the text like "Unable to notify
about alert(s) using default route, there are no recipients configured in the customer's
profile.");
- Setup recipients in the customer's configuration;
- Wait for ~3 minutes;
- Check that:
- Only one alert left on the `Alerts` page (not related to the problem with notifications);
- Another alert (related to the problem with recipients) disappeared;
- You have received an email with the alert firing message.
- Resolve the alert on the universe;
- Check that:
- The alert notification disappeared from the `Alerts` page;
- You have received an email with the alert resolved message.
Reviewers: amalyshev
Reviewed By: amalyshev
Subscribers: yugaware, jenkins-bot
Differential Revision: https://phabricator.dev.yugabyte.com/D12252
Summary:
- Sensitive data in SMTP settings of alert receivers (and other fields in the future) is masked using asterisks.
Test Plan:
1. Create alert receiver with type Email and SMTP settings;
2. Check that it works (SMTP settings are correctly used) - using alert emulation or checking data
directly in DB;
3. Get alert receivers using:
GET /customers/:cUUID/alert_receivers
and
GET /customers/:cUUID/alert_receivers/{your receiver UUID}
Check that answers don't have passwords as a plain text.
4. Update the alert receiver password using direct API request;
5. Check that the password has been updated.
Reviewers: amalyshev
Reviewed By: amalyshev
Subscribers: jenkins-bot, yugaware
Differential Revision: https://phabricator.dev.yugabyte.com/D12607
Code cleanup:
The text was updated successfully, but these errors were encountered: