Commit Graph

41 Commits

Author SHA1 Message Date
Cody Robibero
27fae3dd04
Limit sessions per user (#11370) 2024-04-21 10:54:49 -06:00
Patrick Barron
0a03539dc4 Remove DLNA tests 2023-11-15 20:52:44 -05:00
Bond_009
d7748cfa04 Multiple Stream changes
* Remove useless MemoryStream in DlnaHttpClient
* Use HttpContent.ReadFromJsonAsync extension
* Call ConfigureAwait for IAsyncDisposable
* Use HttpContent.CopyToAsync where possible
2023-10-11 18:32:57 +02:00
Bond_009
852f1dc0c1 Don't create non existent persons in LibraryManager.GetPerson
return null instead.

GetStudio, GetGenre, GetMusicGenre, GetYear, GetArtist still create a new one
when the requested one doesn't exist

Fixes #3901
2023-10-05 23:16:17 +02:00
Bond_009
03b6adf068 Fix xUnit1030: Do not call ConfigureAwait in test method 2023-09-18 17:55:52 +02:00
Bond_009
8316bd590e Fix #7610 2023-03-27 15:22:21 +02:00
Cody Robibero
a527034ebe
Validate requested user id (#8812) 2023-02-17 23:16:08 +01:00
Bond_009
eb7fee9590 Add more tests 2023-02-04 21:08:30 +01:00
Bond_009
52230d1c30 Return NotFound when itemId isn't found 2023-02-04 20:11:08 +01:00
Chris Blake
ad5b83781a
Add 404 response to MarkPlayedItem/MarkUnplayedItem (#9211)
Fixes https://github.com/jellyfin/jellyfin/issues/9120
2023-02-01 11:17:18 -07:00
Bond_009
52194f56b5 Replace != null with is not null 2022-12-05 15:01:13 +01:00
Claus Vium
14027f962c
Merge pull request #6751 from Bond-009/tests12
Fix DLNA UpdateProfile test
2022-10-07 09:49:16 +02:00
Cody Robibero
6004060b4e Fix build errors from new warnings 2022-09-09 07:44:14 -06:00
Bond_009
09e897d372 Clean up DLNA profile code 2022-03-19 00:45:43 +01:00
Niels van Velzen
8a827ba995 Update tests 2022-03-18 22:21:08 +01:00
Bond_009
f50a250cd9 Optimize Guid comparisons
* Use Guid.Equals(Guid) instead of the == override
* Ban the usage of Guid.Equals(Object) to prevent accidental boxing
* Compare to default(Guid) instead of Guid.Empty
2022-02-21 14:15:09 +01:00
cvium
b880dc8a4a Use our own Contains extension 2021-12-20 13:31:07 +01:00
Bond_009
40be86eec0 Use PostAsJsonAsync where possible 2021-12-01 15:58:23 +01:00
Bond_009
beafd6eaab Use JsonContent where possible
Should reduce the # of allocated bytes
2021-12-01 15:40:06 +01:00
Bond_009
5726535a26 Fix some warnings
609 left
2021-11-09 13:14:31 +01:00
Bond_009
69cf8c1947 Add tests for DlnaController 2021-09-17 20:53:52 +02:00
Bond_009
07f64102dd Fix build 2021-09-01 14:06:09 +02:00
Bond_009
0f7c875076 Fix test 2021-08-28 20:53:34 +02:00
Bond_009
69ba539c70 Add more tests for LibraryStructureController 2021-08-28 20:12:25 +02:00
Bond_009
909573f2f1 Add tests for LibraryStructureController 2021-08-28 19:30:57 +02:00
Bond_009
8b1a211081 MediaInfoControllerTests: Check Content-Length 2021-07-11 22:06:01 +02:00
Bond_009
abbcf5e4f7 Add tests for Playback/BitrateTest endpoint 2021-07-10 15:09:56 +02:00
Bond_009
6f8ccab788 Move non-jellyfin extensions to separate project 2021-06-19 18:04:46 +02:00
crobibero
d32bbf181a Ignore all test controllers 2021-06-13 06:32:28 -06:00
Bond_009
06401ffa0d Fix duplicate keys causing an exception 2021-06-09 09:59:30 +02:00
BaronGreenback
133ce65e28
Update tests/Jellyfin.Server.Integration.Tests/Controllers/EncoderController.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-06-07 16:21:30 +01:00
BaronGreenback
e71c10df46
Update tests/Jellyfin.Server.Integration.Tests/Controllers/EncoderController.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-06-07 16:21:22 +01:00
BaronGreenback
53bfe0e77d Changes as requested 2021-05-15 20:24:41 +01:00
Bond_009
391554d391 Add tests for UserController 2021-04-09 01:04:49 +02:00
Bond_009
45a16c19a7 Add code to test authenticated endpoints 2021-04-07 21:35:54 +02:00
Bond_009
5253483ce4 Improve naming 2021-03-22 13:49:00 +01:00
Bond_009
c5079ebed5 Add tests for GetFirstUser, UpdateStartupUser and CompleteWizard 2021-03-21 03:59:31 +01:00
Bond_009
849ced470a Add StartupControllerTests 2021-03-21 03:26:51 +01:00
Bond_009
a8ed753f6c FxCop -> Net Analyzers (part 2) 2021-03-13 22:33:28 +01:00
Bond_009
b9577d0fd9 Check for specific status code instead of success 2021-03-09 14:24:19 +01:00
Bond_009
fa8bfece4e Split integration tests from unit tests 2021-03-09 14:17:59 +01:00