Commit Graph

289 Commits

Author SHA1 Message Date
bb77aca4ed add second test (base case) 2025-02-12 19:34:19 -08:00
b4f1f1b87d add rest of first test 2025-02-12 19:33:55 -08:00
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
a74a6c995a update implementation and test for getAPNsFullUrlToUse 2025-02-11 11:58:13 -08:00
ebcd35b85d use base64 encoded private key for apns 2025-02-11 11:46:46 -08:00
6d1a85c2b4 use 403 status for non-successful mock 2025-02-10 14:02:49 -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
baa94eeef5 update tests and implementation ofr getAPNsFullUrlToUse 2025-02-10 13:30:29 -08:00
4c4bd0fc4a swap toStrictEqual to toEqual for cancelNotification test 2025-02-04 11:41:57 -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
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
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
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
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
d54539e65b add test cases 2025-02-04 10:41:35 -08:00
4a63929cc1 remove cancelAllNotifications method (one less method to test 2025-02-03 23:50:00 -08:00
403bec7c63 rename method to define what happens if notification doesn't exist 2025-02-03 23:45:55 -08:00
d1db9b3742 add test for cancelNotification 2025-02-03 23:45:30 -08:00
6473661607 add tests for getAPNsFullUrlToUse 2025-02-03 23:26:16 -08:00
602ccf8139 update tests to wait for the publisher event to be sent 2025-02-03 23:20:42 -08:00
11ea0518fe extract notification/eta data into function 2025-02-03 23:13:27 -08:00
179fa07d36 make polling function a global function 2025-02-03 23:07:55 -08:00
b252adb5d4 use waitForCondition function to poll for data update 2025-02-03 23:06:28 -08:00
d357af7509 add shuttle and stop to repository within test 2025-02-03 22:42:50 -08:00
339148c890 implement test which checks if notification stays scheduled 2025-02-03 21:55:26 -08:00
711caa1d15 add a second notification to schedule for the test 2025-02-03 21:52:01 -08:00
fba021d921 Merge branch 'main' into feat/notification-service 2025-02-03 21:31:46 -08:00
69525a643d add another test to see if the data actually gets scheduled 2025-02-03 21:26:59 -08:00
f8ff7f9cc9 add testing logic for scheduleNotification test 2025-02-02 15:13:13 -08:00
311906d88d update sample key 2025-02-02 14:55:59 -08:00
8605b2087a add sample key and mock fs return value 2025-02-02 14:52:07 -08:00
998dcaa9c7 add process.env variables 2025-02-02 14:48:03 -08:00
3ff041dd4e add tests for reloadAPNsTokenIfTimePassed 2025-02-02 14:46:21 -08:00
e0820cd17b add test setup 2025-02-02 14:42:32 -08:00
a69ab5853c update test cases for notification service 2025-02-02 14:28:10 -08:00
88ab399c11 rename methods for clarity 2025-02-02 13:49:59 -08:00
62b040fccd add test cases for class 2025-02-02 13:49:00 -08:00
fe16bc7124 add test case for nonexistent callback 2025-02-02 13:16:28 -08:00
b30e4be895 rename methods for clarity on method events 2025-02-02 13:14:45 -08:00