Commit Graph

615 Commits

Author SHA1 Message Date
420682dbb8 add arrange portion of first test 2025-02-12 19:32:46 -08:00
3ce72d79be add NotificationService method and test case stub 2025-02-12 19:30:11 -08:00
19b08d1c05 Merge pull request #20 from brendan-ch/hotfix/update-apns-key-for-deployment
hotfix/update-apns-key-for-deployment
2025-02-11 12:18:24 -08:00
2d4e206739 lower seconds threshold for notification to fire 2025-02-11 12:05:27 -08:00
a74a6c995a update implementation and test for getAPNsFullUrlToUse 2025-02-11 11:58:13 -08:00
bf1290bbc8 update environment with APNS_IS_PRODUCTION key 2025-02-11 11:56:53 -08:00
d80df1de23 add key to example env 2025-02-11 11:47:25 -08:00
ebcd35b85d use base64 encoded private key for apns 2025-02-11 11:46:46 -08:00
Brendan Chen
9af48be746 Merge pull request #19 from brendan-ch/hotfix/notification-fixes 2025-02-10 14:14:12 -08:00
6d1a85c2b4 use 403 status for non-successful mock 2025-02-10 14:02:49 -08:00
4fdf60f9bf update import for testing 2025-02-10 14:02:40 -08:00
764f6e35f0 add http2 mock and update tests 2025-02-10 13:56:42 -08:00
b5954e251d mock node:http2 module in test 2025-02-10 13:46:07 -08:00
a880d71c87 use updated getAPNs... method 2025-02-10 13:34:48 -08:00
5e186c643c propagate error message down to outer catch statement 2025-02-10 13:32:26 -08:00
baa94eeef5 update tests and implementation ofr getAPNsFullUrlToUse 2025-02-10 13:30:29 -08:00
da224c36ed use node.js http2 module instead of fetch 2025-02-10 13:21:48 -08:00
2d92370254 reload apns token on startup 2025-02-10 13:21:41 -08:00
6635a1a89b use api.development.push instead of api.sandbox.push 2025-02-10 10:36:49 -08:00
a6138b37cb use seconds instead of ms for claims payload 2025-02-10 10:32:46 -08:00
7e764502a0 add private folder to gitignore for p8 key 2025-02-10 10:32:30 -08:00
a3efae9f24 add dotenv support 2025-02-10 10:32:18 -08:00
4351c6d454 Merge pull request #18 from brendan-ch/feat/notification-service-integration
feat/notification-service-integration
2025-02-04 11:45:17 -08:00
d3c824be68 implement cancelNotification 2025-02-04 11:42:02 -08:00
4c4bd0fc4a swap toStrictEqual to toEqual for cancelNotification test 2025-02-04 11:41:57 -08:00
2b0bef876c implement scheduleNotification 2025-02-04 11:40:09 -08:00
fa40d15f5a change toStrictEqual to toEqual for notification assertion 2025-02-04 11:40:02 -08:00
e667e89556 add test for if notification doesn't exist on repository 2025-02-04 11:35:24 -08:00
71698da173 fix assertion for nested graphql response 2025-02-04 11:33:48 -08:00
acc4d08716 add a test for cancelling notification 2025-02-04 11:32:33 -08:00
d7b15812f3 make responses mandatory for mutations 2025-02-04 11:30:26 -08:00
1627bc39fe move duplicate code to method 2025-02-04 11:27:34 -08:00
69e2748eec add additional check for notification service scheduling 2025-02-04 11:25:31 -08:00
94c15f93dd add same test for stop resolvers + extract apollo request to function 2025-02-04 11:24:37 -08:00
cea7b48323 add mutation resolvers to merged resolvers 2025-02-04 11:22:17 -08:00
3a51d15e63 fix the resolver result 2025-02-04 11:21:54 -08:00
5687f7f600 add second test if shuttle ID doesn't exist in repository 2025-02-04 11:19:58 -08:00
0b9759aff1 update test cases and implement add notification test 2025-02-04 11:18:05 -08:00
8ac71090e4 make input mandatory 2025-02-04 11:01:27 -08:00
dccee459c3 add note on setupTestServerContext 2025-02-04 10:56:36 -08:00
b918bf7a67 update test helpers to consolidate ServerContext creation into one method 2025-02-04 10:56:00 -08:00
814f2c6584 change repository type to GetterSetterRepository to account for mutations 2025-02-04 10:52:07 -08:00
c79a3eac73 change method signatures for repository helpers to GetterSetterResponse interface 2025-02-04 10:51:41 -08:00
43f0ef27fc fix typo 2025-02-04 10:43:33 -08:00
f1f1d5c971 remove cancelAllNotifications resolver 2025-02-04 10:42:12 -08:00
d54539e65b add test cases 2025-02-04 10:41:35 -08:00
588d433fa3 add placeholder responses to get typescript to stop screaming 2025-02-04 10:36:46 -08:00
2116387203 add stubs for mutations 2025-02-04 10:35:50 -08:00
d730937b29 add notification support in schema 2025-02-04 10:27:06 -08:00
82a70ea04e add notification service to server context 2025-02-04 10:12:19 -08:00