Skip to content

Integration test config rework #2098

Integration test config rework

Integration test config rework #2098

Triggered via pull request January 16, 2025 13:37
Status Failure
Total duration 4m 21s
Artifacts 1

core_build_publish.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 24 warnings
Test
Process completed with exit code 1.
Failed Test: LeanCode.IntegrationTestHelpers.Tests.Tests.Test_services_order_is_correct
LeanCode.IntegrationTestHelpers.Tests.Tests.Test_services_order_is_correct: System.Collections.Generic.KeyNotFoundException : Cannot find base connection string under key SqlServer:ConnectionStringBase - at LeanCode.IntegrationTestHelpers.TestConnectionString.Provider.Load() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/TestConnectionString.cs:line 36 at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers) at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build() at Microsoft.Extensions.Hosting.HostBuilder.InitializeAppConfiguration() at Microsoft.Extensions.Hosting.HostBuilder.Build() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateHost(IHostBuilder builder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.get_Server() at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.<InitializeAsync>b__17_0() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at LeanCode.IntegrationTestHelpers.Tests.Tests.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/test/Testing/LeanCode.IntegrationTestHelpers.Tests/Tests.cs:line 79
Failed Test: LeanCode.IntegrationTestHelpers.Tests.Tests.Save_and_load
LeanCode.IntegrationTestHelpers.Tests.Tests.Save_and_load: System.Collections.Generic.KeyNotFoundException : Cannot find base connection string under key SqlServer:ConnectionStringBase - at LeanCode.IntegrationTestHelpers.TestConnectionString.Provider.Load() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/TestConnectionString.cs:line 36 at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers) at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build() at Microsoft.Extensions.Hosting.HostBuilder.InitializeAppConfiguration() at Microsoft.Extensions.Hosting.HostBuilder.Build() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateHost(IHostBuilder builder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.get_Server() at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.<InitializeAsync>b__17_0() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at LeanCode.IntegrationTestHelpers.Tests.Tests.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/test/Testing/LeanCode.IntegrationTestHelpers.Tests/Tests.cs:line 79
Failed Test: LeanCode.IntegrationTestHelpers.Tests.Tests.Test_authorization_scheme_works
LeanCode.IntegrationTestHelpers.Tests.Tests.Test_authorization_scheme_works: System.Collections.Generic.KeyNotFoundException : Cannot find base connection string under key SqlServer:ConnectionStringBase - at LeanCode.IntegrationTestHelpers.TestConnectionString.Provider.Load() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/TestConnectionString.cs:line 36 at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers) at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build() at Microsoft.Extensions.Hosting.HostBuilder.InitializeAppConfiguration() at Microsoft.Extensions.Hosting.HostBuilder.Build() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateHost(IHostBuilder builder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.get_Server() at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.<InitializeAsync>b__17_0() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at LeanCode.IntegrationTestHelpers.Tests.Tests.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/test/Testing/LeanCode.IntegrationTestHelpers.Tests/Tests.cs:line 79
Failed Test: LeanCode.IntegrationTestHelpers.Tests.Tests.Test_services_order_is_correct
LeanCode.IntegrationTestHelpers.Tests.Tests.Test_services_order_is_correct: System.Collections.Generic.KeyNotFoundException : Cannot find base connection string under key SqlServer:ConnectionStringBase - at LeanCode.IntegrationTestHelpers.TestConnectionString.Provider.Load() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/TestConnectionString.cs:line 36 at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers) at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build() at Microsoft.Extensions.Hosting.HostBuilder.InitializeAppConfiguration() at Microsoft.Extensions.Hosting.HostBuilder.Build() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateHost(IHostBuilder builder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.get_Server() at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.<InitializeAsync>b__17_0() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at LeanCode.IntegrationTestHelpers.Tests.Tests.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/test/Testing/LeanCode.IntegrationTestHelpers.Tests/Tests.cs:line 79
Failed Test: LeanCode.IntegrationTestHelpers.Tests.Tests.Save_and_load
LeanCode.IntegrationTestHelpers.Tests.Tests.Save_and_load: System.Collections.Generic.KeyNotFoundException : Cannot find base connection string under key SqlServer:ConnectionStringBase - at LeanCode.IntegrationTestHelpers.TestConnectionString.Provider.Load() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/TestConnectionString.cs:line 36 at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers) at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build() at Microsoft.Extensions.Hosting.HostBuilder.InitializeAppConfiguration() at Microsoft.Extensions.Hosting.HostBuilder.Build() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateHost(IHostBuilder builder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.get_Server() at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.<InitializeAsync>b__17_0() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at LeanCode.IntegrationTestHelpers.Tests.Tests.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/test/Testing/LeanCode.IntegrationTestHelpers.Tests/Tests.cs:line 79
Failed Test: LeanCode.IntegrationTestHelpers.Tests.Tests.Test_authorization_scheme_works
LeanCode.IntegrationTestHelpers.Tests.Tests.Test_authorization_scheme_works: System.Collections.Generic.KeyNotFoundException : Cannot find base connection string under key SqlServer:ConnectionStringBase - at LeanCode.IntegrationTestHelpers.TestConnectionString.Provider.Load() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/TestConnectionString.cs:line 36 at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers) at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build() at Microsoft.Extensions.Hosting.HostBuilder.InitializeAppConfiguration() at Microsoft.Extensions.Hosting.HostBuilder.Build() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateHost(IHostBuilder builder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.get_Server() at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.<InitializeAsync>b__17_0() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at LeanCode.IntegrationTestHelpers.Tests.Tests.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/test/Testing/LeanCode.IntegrationTestHelpers.Tests/Tests.cs:line 79
Failed Test: LeanCode.IntegrationTestHelpers.Tests.Tests.Test_services_order_is_correct
LeanCode.IntegrationTestHelpers.Tests.Tests.Test_services_order_is_correct: System.Collections.Generic.KeyNotFoundException : Cannot find base connection string under key SqlServer:ConnectionStringBase - at LeanCode.IntegrationTestHelpers.TestConnectionString.Provider.Load() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/TestConnectionString.cs:line 36 at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers) at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build() at Microsoft.Extensions.Hosting.HostBuilder.InitializeAppConfiguration() at Microsoft.Extensions.Hosting.HostBuilder.Build() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateHost(IHostBuilder builder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.get_Server() at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.<InitializeAsync>b__17_0() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at LeanCode.IntegrationTestHelpers.Tests.Tests.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/test/Testing/LeanCode.IntegrationTestHelpers.Tests/Tests.cs:line 79
Failed Test: LeanCode.IntegrationTestHelpers.Tests.Tests.Save_and_load
LeanCode.IntegrationTestHelpers.Tests.Tests.Save_and_load: System.Collections.Generic.KeyNotFoundException : Cannot find base connection string under key SqlServer:ConnectionStringBase - at LeanCode.IntegrationTestHelpers.TestConnectionString.Provider.Load() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/TestConnectionString.cs:line 36 at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers) at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build() at Microsoft.Extensions.Hosting.HostBuilder.InitializeAppConfiguration() at Microsoft.Extensions.Hosting.HostBuilder.Build() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateHost(IHostBuilder builder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.get_Server() at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.<InitializeAsync>b__17_0() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at LeanCode.IntegrationTestHelpers.Tests.Tests.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/test/Testing/LeanCode.IntegrationTestHelpers.Tests/Tests.cs:line 79
Failed Test: LeanCode.IntegrationTestHelpers.Tests.Tests.Test_authorization_scheme_works
LeanCode.IntegrationTestHelpers.Tests.Tests.Test_authorization_scheme_works: System.Collections.Generic.KeyNotFoundException : Cannot find base connection string under key SqlServer:ConnectionStringBase - at LeanCode.IntegrationTestHelpers.TestConnectionString.Provider.Load() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/TestConnectionString.cs:line 36 at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers) at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build() at Microsoft.Extensions.Hosting.HostBuilder.InitializeAppConfiguration() at Microsoft.Extensions.Hosting.HostBuilder.Build() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateHost(IHostBuilder builder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.get_Server() at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.<InitializeAsync>b__17_0() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at LeanCode.IntegrationTestHelpers.Tests.Tests.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/test/Testing/LeanCode.IntegrationTestHelpers.Tests/Tests.cs:line 79
Failed Test: LeanCode.IntegrationTestHelpers.Tests.Tests.Test_services_order_is_correct
LeanCode.IntegrationTestHelpers.Tests.Tests.Test_services_order_is_correct: System.Collections.Generic.KeyNotFoundException : Cannot find base connection string under key SqlServer:ConnectionStringBase - at LeanCode.IntegrationTestHelpers.TestConnectionString.Provider.Load() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/TestConnectionString.cs:line 36 at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers) at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build() at Microsoft.Extensions.Hosting.HostBuilder.InitializeAppConfiguration() at Microsoft.Extensions.Hosting.HostBuilder.Build() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateHost(IHostBuilder builder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.get_Server() at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.<InitializeAsync>b__17_0() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at LeanCode.IntegrationTestHelpers.LeanCodeTestFactory`1.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/src/Testing/LeanCode.IntegrationTestHelpers/LeanCodeTestFactory.cs:line 105 at LeanCode.IntegrationTestHelpers.Tests.Tests.InitializeAsync() in /home/runner/work/corelibrary/corelibrary/test/Testing/LeanCode.IntegrationTestHelpers.Tests/Tests.cs:line 79
Prepare & Version
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Event File
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build: src/Domain/LeanCode.DomainModels.Generators/IdSource.cs#L47
In method 'BuildPrefixedGuid', replace the call to 'ToLowerInvariant' with 'ToUpperInvariant' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1308)
Build: src/Domain/LeanCode.DomainModels.Generators/IdSource.cs#L176
In method 'BuildPrefixedUlid', replace the call to 'ToLowerInvariant' with 'ToUpperInvariant' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1308)
Build: src/Domain/LeanCode.DomainModels.Generators/IdSource.cs#L400
In method 'GetDefaultPrefix', replace the call to 'ToLowerInvariant' with 'ToUpperInvariant' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1308)
Build: test/LeanCode.Test.Helpers/IntegrationFactAttribute.cs#L7
Avoid unsealed attributes (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1813)
Build: test/LeanCode.Test.Helpers/ExternalServiceFactAttribute.cs#L8
Abstract type 'ExternalServiceFactAttribute' should not have public constructors (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1012)
Build: test/LeanCode.Test.Helpers/LongRunningFact.cs#L15
Remove the underscores from member name LeanCode.Test.Helpers.LongRunningFactTest.Long_running_test() (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1707)
Build: src/Tools/LeanCode.CodeAnalysis/CodeActions/Helpers.cs#L25
Dereference of a possibly null reference.
Build: src/Tools/LeanCode.CodeAnalysis/CodeActions/Helpers.cs#L35
Dereference of a possibly null reference.
Build: src/Tools/LeanCode.CodeAnalysis/Analyzers/SuggestCommandsHaveValidators.cs#L30
In externally visible method 'void SuggestCommandsHaveValidators.Initialize(AnalysisContext context)', validate parameter 'context' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
Build: src/Tools/LeanCode.CodeAnalysis/Analyzers/CancellationTokensShouldFollowNamingConvention.cs#L28
In externally visible method 'void CancellationTokensShouldFollowNamingConvention.Initialize(AnalysisContext context)', validate parameter 'context' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
Test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test: test/LeanCode.Test.Helpers/ExternalServiceFactAttribute.cs#L8
Abstract type 'ExternalServiceFactAttribute' should not have public constructors (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1012)
Test: test/LeanCode.Test.Helpers/IntegrationFactAttribute.cs#L7
Avoid unsealed attributes (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1813)
Test: test/LeanCode.Test.Helpers/LongRunningFact.cs#L15
Remove the underscores from member name LeanCode.Test.Helpers.LongRunningFactTest.Long_running_test() (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1707)
Test: src/Tools/LeanCode.CodeAnalysis/CodeActions/Helpers.cs#L25
Dereference of a possibly null reference.
Test: src/Tools/LeanCode.CodeAnalysis/CodeActions/Helpers.cs#L35
Dereference of a possibly null reference.
Test: src/Tools/LeanCode.CodeAnalysis/Analyzers/CancellationTokensShouldFollowNamingConvention.cs#L28
In externally visible method 'void CancellationTokensShouldFollowNamingConvention.Initialize(AnalysisContext context)', validate parameter 'context' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
Test: src/Tools/LeanCode.CodeAnalysis/Analyzers/SuggestCommandsHaveValidators.cs#L30
In externally visible method 'void SuggestCommandsHaveValidators.Initialize(AnalysisContext context)', validate parameter 'context' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
Test: src/Tools/LeanCode.CodeAnalysis/CodeActions/FixCQRSHandlerNamingCodeAction.cs#L28
Consider calling ConfigureAwait on the awaited task (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2007)
Test: src/Tools/LeanCode.CodeAnalysis/CodeActions/FixCQRSHandlerNamingCodeAction.cs#L29
Consider calling ConfigureAwait on the awaited task (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2007)
Test: src/Tools/LeanCode.CodeAnalysis/CodeActions/FixCQRSHandlerNamingCodeAction.cs#L43
Consider calling ConfigureAwait on the awaited task (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2007)

Artifacts

Produced during runtime
Name Size
Event File Expired
3.45 KB