6444251649
Implement mocking of environment file
2025-07-21 19:42:28 -04:00
321e7a7fa9
Enable automatic reset of mock state
2025-07-21 19:41:45 -04:00
2f46a0b07c
Remove correctness test, to be reimplemented at a later time
2025-07-21 19:08:53 -04:00
e78982538e
Add implementation and tests for ParkingStructureResolvers.ts
2025-07-21 19:06:00 -04:00
ee7b5eefda
Rename query interface for historical data
2025-07-19 13:14:39 -04:00
09ee17874d
Update test case naming for ParkingRepositorySharedTests.test.ts to clarify scope of test
2025-07-19 12:50:39 -04:00
0a5a71d78f
Add basic test case for ParkingStructureResolvers
2025-07-19 12:50:27 -04:00
182587596c
Change properties to match GraphQL input and query result
2025-07-19 12:15:41 -04:00
8ee1f1522e
Change ParkingStructureCountOptions and HistoricalParkingAverageQueryResult to use Date objects
...
This matches the behavior of `updatedTime` on shuttle objects. When returning API data, dates are converted into milliseconds since Epoch by the DateTime scalar implementation.
2025-07-19 12:12:08 -04:00
ed037cf2d2
Move repositories into folders.
2025-07-19 11:58:45 -04:00
5db4a82535
Update historical average test to actually check the average value
2025-07-03 16:01:14 -04:00
7c359dd775
Move the 200ms delay to before the add call
...
This ensures that a new timestamp is created after the initial call to `addOrUpdateParkingStructure`
2025-07-03 15:40:14 -04:00
b9d5f7b3df
Refactor parking repositories to use dedicated Constants file and smaller functions
2025-07-03 15:19:57 -04:00
7f453157ee
Update timeout within test to avoid UPSERT error
2025-07-02 20:34:29 -04:00
19336ce6ec
Add setLoggingInterval method and implementation for tests and other purposes.
...
Let users control the logging interval of both parking repositories.
2025-07-02 19:48:16 -04:00
868a9f3b1d
Add RedisParkingRepository.ts and convert existing tests to shared tests for both classes
2025-07-02 19:40:45 -04:00
ca2a66509b
Implement getHistoricalAveragesOfParkingStructureCounts for InMemoryParkingRepository.ts, and add tests
2025-07-02 19:10:16 -04:00
2b04ca01a9
Update InMemoryParkingRepository.ts and tests to use the circular queue
2025-07-02 18:48:33 -04:00
220b402b3b
Optimize the append method to check if the data is already sorted
2025-07-02 18:43:41 -04:00
4fbc30a264
Add CircularQueue.ts and test file
2025-07-02 18:34:55 -04:00
8fb296027d
Fix remaining issues with tests, and add implementation within InMemoryParkingRepository.ts
2025-07-01 21:37:26 -04:00
95fa610d77
define behavior of historical data logging through tests
2025-07-01 21:32:26 -04:00
f74376c8ed
add test and code for client closure events
2025-04-30 18:17:55 -07:00
31e9c78ebd
add test for closing connection on emitting closure events
2025-04-30 18:09:29 -07:00
4b77a89ac2
Merge branch 'main' into chore/improve-apns-performance
2025-04-30 17:54:00 -07:00
9dcc17b687
add test to check that connection is reused
2025-04-30 17:33:54 -07:00
a7c33c9479
empty commit to fix actions?
2025-04-29 17:21:17 -07:00
1c7ee9fbc3
change all millisecond references into Dates
2025-04-29 17:05:23 -07:00
b58babc7ea
change updatedTime into a Date
2025-04-29 17:01:51 -07:00
f68dad0ca2
update parking system tests to use updatedTime parameter
2025-04-29 16:54:22 -07:00
bdb1da0bc4
fix test due to mismatched timestamps on parking repo loader
2025-04-29 16:30:45 -07:00
570ab8a178
update tests and mock data generators
2025-04-29 16:18:46 -07:00
95f2e6ec29
add system id to the notification payload for good measure
2025-04-22 11:15:35 -07:00
02e440773a
add functionality to normalize the spots available if over capacity
2025-04-16 17:18:48 -07:00
dd1a448160
display parking system in system resolver and remove unnecessary test
2025-04-16 17:06:09 -07:00
544cab5324
move parking structures to a sub-field of system
2025-04-16 17:01:41 -07:00
2092827d37
implement endpoints and update test
2025-04-16 16:52:45 -07:00
c9ecc18495
implement parkingStructure tests
2025-04-16 16:45:08 -07:00
a38ca3d3de
add rest of parkingStructures tests
2025-04-16 16:39:07 -07:00
ea1150a98d
add test for getting parking structures associated with id
2025-04-16 16:35:48 -07:00
37a67aace7
update system testing builder with parking system
2025-04-16 16:32:53 -07:00
1624d78cb5
add parking structures generator
2025-04-16 16:31:56 -07:00
a6d4b40fba
add test cases for endpoints
2025-04-16 16:28:09 -07:00
c9aa2c401f
restructure parking and shuttle repository loaders
2025-04-11 17:13:39 -07:00
0e3c12bebc
add test for ChapmanApiBasedParkingRepositoryLoader.fetchAndUpdateAll
2025-04-11 17:09:52 -07:00
50350d8c49
add test for ApiBasedShuttleRepositoryLoader.fetchAndUpdateAll
2025-04-11 17:08:20 -07:00
44095e711a
make timeoutMs a settable property
2025-04-11 16:57:47 -07:00
6cc20a4a6a
remove redundant TODO
2025-04-11 16:53:45 -07:00
a0e0c19ca3
update timed loader to use class composition
2025-04-11 16:52:27 -07:00
49b823890f
remove "Timed" from class name to prepare for subclassing
2025-04-11 16:13:36 -07:00