canvas-lms/spec/lib/services
Jason Gillett d757e17d91 Stop duplicate push notifications
fixes VICE-4274
flag=none

To Reproduce
1. Login with mobile device to create token
2. Enable psuh notifications to create
notification_endpoint
3. copy and pase the notification_endpoint token
4. Create a new access token
4a  AccessToken.create!(user: user,developer_key: DeveloperKey.find(170000000000004))
4b. use the same DeveloperKey
5. Create new Notification Endpoint with same token
6. access_token.notification_endpoints.create!(token: “duplicate_token)
7. Create a push notification
8. duplicate notifications created

Test Plan
1. Have a device setup with push notifications
2. Have 2 access tokens and 2 notificationEndpoints with
the same ARN setup
3. Create a message
4. Verify that only one notification is received by phone

Change-Id: I466b8d663604df6d2a67f65242e59b9e975caaa5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/347465
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Jason Gillett <jason.gillett@instructure.com>
2024-05-20 16:30:45 +00:00
..
feature_analytics_service_spec.rb bump rubocop gems and apply changes 2023-08-07 20:13:35 +00:00
live_events_subscription_service_spec.rb remove Setting.skip_cache 2023-09-27 17:08:20 +00:00
notification_service_spec.rb Stop duplicate push notifications 2024-05-20 16:30:45 +00:00
rich_content_spec.rb make dynamic settings writable in dev/oss 2024-01-23 15:20:56 +00:00
screencap_service_spec.rb Kill require_dependency 2023-01-09 19:51:01 +00:00
submit_homework_service_spec.rb bump rubocop gems and apply changes 2023-08-07 20:13:35 +00:00