test plan:
- simulate bounced emails in the Rails console. do this for a handful
of users, putting different details in each:
cc = User.find(x).communication_channel
cc.bounce_count = 1
cc.last_bounce_at = 10.days.ago
cc.last_bounce_details = {'bouncedRecipients' => [{'diagnosticCode' => '550 some error'}]}
- ensure the "bounced emails" admin tool appears if the feature
("Bounced Emails Admin Tool") is enabled and the user has
the requisite permissions, which include both :read_roster
("Users - view list") and either :view_notifications on the
root account level ("Notifications - view"), which requires the
"Admins can view notifications" account setting to be enabled,
or :read_messages ("View notifications sent to users") on the
site admin level
- click the button without entering a search term and the most
recent addresses appear (let's be real: they all appear,
because you don't have 1000 of them)
- enter a search term and click the button, and matching
addresses appear
- the date filtering should work
flag = bounced_emails_admin_tool
closes LS-1587
Change-Id: I38174d5422f6c4417d7c5e6856256061a8bfc2be
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/251572
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Peyton Craighill <pcraighill@instructure.com>