jellyfin/Emby.Server.Implementations
Bond_009 a4ffc7a813 Fix random failing of tests
Fully initialize the configuration manager at the init stage

```
Failed Jellyfin.Server.Integration.Tests.Controllers.ActivityLogControllerTests.ActivityLog_GetEntries_Ok [2 s]
  Error Message:
   MediaBrowser.Common.Extensions.ResourceNotFoundException : Configuration with key metadata not found.
  Stack Trace:
     at Emby.Server.Implementations.AppBase.BaseConfigurationManager.<>c__DisplayClass43_0.<GetConfiguration>b__0(String k) in D:\a\1\s\Emby.Server.Implementations\AppBase\BaseConfigurationManager.cs:line 309
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Emby.Server.Implementations.AppBase.BaseConfigurationManager.GetConfiguration(String key) in D:\a\1\s\Emby.Server.Implementations\AppBase\BaseConfigurationManager.cs:line 300
   at MediaBrowser.Common.Configuration.ConfigurationManagerExtensions.GetConfiguration[T](IConfigurationManager manager, String key) in D:\a\1\s\MediaBrowser.Common\Configuration\IConfigurationManager.cs:line 88
   at MediaBrowser.Controller.Library.MetadataConfigurationExtensions.GetMetadataConfiguration(IConfigurationManager config) in D:\a\1\s\MediaBrowser.Controller\Library\MetadataConfigurationStore.cs:line 28
   at Emby.Server.Implementations.Library.ResolverHelper.SetDateCreated(BaseItem item, IFileSystem fileSystem, FileSystemMetadata info) in D:\a\1\s\Emby.Server.Implementations\Library\ResolverHelper.cs:line 159
   at Emby.Server.Implementations.Library.ResolverHelper.EnsureDates(IFileSystem fileSystem, BaseItem item, ItemResolveArgs args) in D:\a\1\s\Emby.Server.Implementations\Library\ResolverHelper.cs:line 153
   at Emby.Server.Implementations.Library.ResolverHelper.SetInitialItemValues(BaseItem item, ItemResolveArgs args, IFileSystem fileSystem, ILibraryManager libraryManager) in D:\a\1\s\Emby.Server.Implementations\Library\ResolverHelper.cs:line 81
   at Emby.Server.Implementations.Library.LibraryManager.ResolveItem(ItemResolveArgs args, IItemResolver[] resolvers) in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 480
   at Emby.Server.Implementations.Library.LibraryManager.ResolvePath(FileSystemMetadata fileInfo, IDirectoryService directoryService, IItemResolver[] resolvers, Folder parent, String collectionType, LibraryOptions libraryOptions) in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 618
   at Emby.Server.Implementations.Library.LibraryManager.ResolvePath(FileSystemMetadata fileInfo, Folder parent) in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 536
   at Emby.Server.Implementations.Library.LibraryManager.CreateRootFolder() in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 732
   at Emby.Server.Implementations.Library.LibraryManager.get_RootFolder() in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 180
   at Emby.Server.Implementations.IO.LibraryMonitor.Start() in D:\a\1\s\Emby.Server.Implementations\IO\LibraryMonitor.cs:line 135
   at Emby.Server.Implementations.IO.LibraryMonitorStartup.RunAsync() in D:\a\1\s\Emby.Server.Implementations\IO\LibraryMonitorStartup.cs:line 26
   at Emby.Server.Implementations.ApplicationHost.StartEntryPoints(IEnumerable`1 entryPoints, Boolean isBeforeStartup)+MoveNext() in D:\a\1\s\Emby.Server.Implementations\ApplicationHost.cs:line 541
   at System.Threading.Tasks.Task.WhenAll(IEnumerable`1 tasks)
   at Emby.Server.Implementations.ApplicationHost.RunStartupTasksAsync(CancellationToken cancellationToken) in D:\a\1\s\Emby.Server.Implementations\ApplicationHost.cs:line 525
   at Jellyfin.Server.Integration.Tests.JellyfinApplicationFactory.CreateServer(IWebHostBuilder builder) in D:\a\1\s\tests\Jellyfin.Server.Integration.Tests\JellyfinApplicationFactory.cs:line 101
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(Uri baseAddress, DelegatingHandler[] handlers)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient(WebApplicationFactoryClientOptions options)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient()
   at Jellyfin.Server.Integration.Tests.Controllers.ActivityLogControllerTests.ActivityLog_GetEntries_Ok() in D:\a\1\s\tests\Jellyfin.Server.Integration.Tests\Controllers\ActivityLogControllerTests.cs:line 21
--- End of stack trace from previous location ---

```
2021-04-12 00:28:17 +02:00
..
AppBase Use FileShare.None when creating files 2021-03-07 14:43:28 +01:00
Archiving
Branding
Channels FxCop -> Net Analyzers (part 2) 2021-03-13 22:33:28 +01:00
Collections Merge branch 'master' of https://github.com/danieladov/jellyfin 2021-03-13 20:35:52 +01:00
Configuration fix ssl certificate cannot be saved 2020-12-11 23:52:09 +08:00
Cryptography Updated based on review feedback 2020-11-13 18:04:06 -07:00
Data move IsPlayed to outerquery 2021-04-09 11:32:19 +02:00
Devices Clean up DeviceManager and don't store capabilities on disk 2020-11-19 09:38:54 -05:00
Dto Create BaseItemKind enum 2021-02-10 17:09:23 -07:00
EntryPoints Improve tests 2021-02-23 16:45:10 +01:00
HttpServer add simple auth handling to websocketmanager 2021-04-05 15:12:47 +02:00
Images Merge pull request #4341 from Bond-009/minor6 2020-11-02 11:10:39 -05:00
IO Update Emby.Server.Implementations/IO/ManagedFileSystem.cs 2021-04-10 00:16:37 +02:00
Library catch ioexception and include stack trace 2021-04-09 23:30:07 +02:00
LiveTv Merge pull request #5520 from Bond-009/hdhomerun2 2021-04-08 00:27:58 +02:00
Localization Translated using Weblate (Danish) 2021-03-22 13:34:36 -04:00
MediaEncoder Remove DVDs from files exempt from chapter image extraction 2021-03-25 13:16:09 +01:00
Net
Playlists Reduce RequestHelpers.Split usage and remove RequestHelpers.GetGuids usage. 2020-11-16 20:29:46 -07:00
Plugins Keep plugin status after update. 2021-04-06 20:59:47 +01:00
Properties Add tests for HdHomerunHost.GetModelInfo 2020-12-08 18:53:38 +01:00
QuickConnect Remove Hex class as the BCL has one now 2020-11-25 23:40:31 +01:00
ScheduledTasks Use sync Serialize when writing scheduled tasks to disk 2021-04-10 23:54:35 +02:00
Security Fix SA 1116 warnings 2020-10-12 20:05:11 +02:00
Serialization Remove custom Json serializer 2020-12-23 13:24:34 +01:00
Session Minor improvements 2021-02-21 02:49:52 +01:00
Sorting Include specials in the calculation for the "Next Up" episode. Fixes #1479 2021-02-28 21:21:26 +01:00
SyncPlay Merge pull request #4716 from OancaAndrei/syncplay-new-auth-policies 2020-12-13 16:58:28 -05:00
TV Apply suggested formatting changes 2021-03-05 22:51:08 +01:00
Udp Improve tests 2021-02-23 16:45:10 +01:00
Updates Update Emby.Server.Implementations/Updates/InstallationManager.cs 2021-04-08 14:38:25 +01:00
ApplicationHost.cs Fix random failing of tests 2021-04-12 00:28:17 +02:00
ConfigurationOptions.cs Change default value for allow duplicates in playlist option to False 2020-09-10 10:03:08 -07:00
Emby.Server.Implementations.csproj Enable NetAnalyzers for more projects 2021-04-06 20:02:06 +02:00
IStartupOptions.cs fix 2021-02-27 23:32:22 +00:00
ServerApplicationPaths.cs Minor improvements 2020-10-17 16:01:36 +02:00