aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorLines
2026-02-15add testsJP Dillingham-0/+292
2026-01-14Fix UrlEncodingModelBinder to account for PathBaseAndy Kelk-0/+173
When the application runs with a base path (e.g., /slskd via UsePathBase), the UrlEncodingModelBinder was incorrectly calculating the URL segment index. It was using the route template (which doesn't include the base path) to determine the index, but applying it to the raw URL (which does include the base path), causing it to extract the wrong segment. This fix strips the PathBase from the absolute path before splitting it into segments, ensuring the correct parameter value is extracted regardless of whether a base path is configured. Fixes regression introduced in PR #1596 (commits 8849d78c and e7e0cdaf) where [UrlEncoded] attribute was added to username parameters in v0.24.2. Also adds comprehensive unit tests to verify the fix works correctly with and without a base path, including edge cases like query strings and special characters in usernames.
2025-04-07leave some notesJP Dillingham-4/+0
2025-04-07simplify fetch of picture bytesJP Dillingham-55/+1
2025-04-06formatting/docsJP Dillingham-8/+8
2025-03-02test: add profile picture testTerry Wilson-1/+55
2025-03-02feat: add profile picture supportTerry Wilson-1/+4
2024-10-26lintingJP Dillingham-13/+13
2024-05-12fix FileServiceTestsJP Dillingham-7/+7
2024-05-12add ToUnixFileMode testsJP Dillingham-0/+71
2024-05-11simplify file serviceJP Dillingham-1/+1
2024-04-21add test for Clear()JP Dillingham-0/+17
2024-04-20add tests for Contains()JP Dillingham-0/+39
2024-04-20add blacklist testsJP Dillingham-0/+129
2024-01-20update dependenciesJP Dillingham-4/+4
2024-01-20bump everything to .net 8JP Dillingham-2/+2
2024-01-05finish refactor of UserServiceJP Dillingham-2/+0
2023-12-12update dependenciesJP Dillingham-9/+9
2023-07-02add tests to ensure only desirable paths can be accessedJP Dillingham-0/+137
2023-01-07use discardJP Dillingham-1/+1
2022-12-03bump projects to .NET 7JP Dillingham-3/+3
2022-10-08fix bugs in AES encJP Dillingham-0/+33
2022-08-31add test for clamped slotsJP Dillingham-0/+57
2022-08-31fix testsJP Dillingham-0/+28
2022-07-30fix testJP Dillingham-1/+1
2022-07-19fix Governor testsJP Dillingham-28/+14
2022-07-17simplify interface of UploadGovernor and UploadQueueJP Dillingham-58/+37
2022-06-28fix another testJP Dillingham-1/+1
2022-06-28fix testsJP Dillingham-24/+24
2022-06-08try an invalid linux character againJP Dillingham-1/+1
2022-06-08add tests for ToLocalRelativeFilenameJP Dillingham-0/+53
2022-03-25fix testsJP Dillingham-2/+0
2022-03-02fix testJP Dillingham-1/+2
2022-02-21fix testsJP Dillingham-0/+2
2022-02-19fix spellingJP Dillingham-10/+10
2022-02-14add remaining UploadQueue testsJP Dillingham-3/+188
2022-02-14oopsJP Dillingham-0/+3
2022-02-14Merge remote-tracking branch 'origin' into groupsJP Dillingham-8/+5
2022-02-14add coverlet.msbuildJP Dillingham-8/+8
2022-02-13add test for MaxSlots short circuitJP Dillingham-0/+17
2022-02-13more UploadQueue testsJP Dillingham-0/+47
2022-02-13more UploadQueue testsJP Dillingham-0/+105
2022-02-12more UploadQueue testsJP Dillingham-0/+191
2022-02-11initial tests for UploadQueueJP Dillingham-5/+153
2022-02-09add tests for TokenBucketJP Dillingham-1/+208
2022-02-08stub UploadQueue testsJP Dillingham-1/+31
2022-02-07finish Governor testsJP Dillingham-0/+160
2022-02-07add test to ensure no crash given null usernameJP Dillingham-1/+9
2022-02-07split uploads out into a serviceJP Dillingham-3/+3
2022-02-06initial tests for UserServiceJP Dillingham-31/+172