 Chris CoutinhoandClaude Opus 4.5
|
815a09be34
|
test(astrolabe): add unit tests for background token refresh
- Fix McpTokenStorageTest: add IDBConnection mock for new constructor parameter
- Add doctrine/dbal dev dependency for IQueryBuilder mock support
- Add tests for getAllUsersWithTokens() database query method
- Create RefreshUserTokensTest with comprehensive coverage:
- Job interval configuration (15 min)
- Token refresh threshold logic (50% lifetime)
- issued_at tracking for accurate lifetime calculation
- Fallback to default lifetime when issued_at missing
- Token rotation handling
- Error handling and logging
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-27 12:23:06 +01:00 |
|
 Chris CoutinhoandClaude Opus 4.5
|
c018268681
|
docs(astrolabe): add config docs and unit tests for internal URL
Address PR #487 reviewer feedback:
- Add documentation for `astrolabe_internal_url` config option
- Add unit tests for `IdpTokenRefresher::getNextcloudBaseUrl()`
- Fix CI workflow paths (astroglobe -> astrolabe)
- Add PHPUnit job to CI workflow for PHP 8.1, 8.2, 8.3
- Remove obsolete ApiTest that tested non-existent method
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-16 22:24:43 +01:00 |
|