Native AOT Support via Source Generator + UnsafeAccessor Architecture #49
20 passed, 18 failed and 0 skipped
βΒ tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
38 tests were completed in 17s with 20 passed, 18 failed and 0 skipped.
| Test suite | Passed | Failed | Skipped | Time |
|---|---|---|---|---|
| LocalStack.Client.Extensions.Tests.AwsClientFactoryWrapperTests | 3β | 1s | ||
| LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests | 17β | 18β | 1s |
β Β LocalStack.Client.Extensions.Tests.AwsClientFactoryWrapperTests
β
CreateServiceClient_Should_Create_Client_When_UseLocalStack_False
β
CreateServiceClient_Should_Throw_LocalStackClientConfigurationException_When_ClientFactory_Type_Not_Found
β
CreateServiceClient_Should_Throw_LocalStackClientConfigurationException_When_ClientFactoryType_Is_Null
βΒ LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests
β
AddLocalStack_Should_Configure_ConfigOptions_By_Session_Section
β
AddLocalStack_Should_Configure_ConfigOptions_If_There_Is_Not_Session_Section
β
AddLocalStack_Should_Configure_LocalStackOptions_By_LocalStack_Section
β
AddLocalStack_Should_Configure_LocalStackOptions_If_There_Is_Not_LocalStack_Section
β
AddLocalStack_Should_Configure_SessionOptions_By_Session_Section
β
AddLocalStack_Should_Configure_SessionOptions_If_There_Is_Not_Session_Section
β
AddLocalStackServices_Should_Add_IAwsClientFactoryWrapper_To_Container_As_AwsClientFactoryWrapper
β
AddLocalStackServices_Should_Add_IConfig_To_Container_As_Config
β
AddLocalStackServices_Should_Add_ISession_To_Container_As_Session
β GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(useAlternateNameAddServiceMethod: False, useServiceUrl: False)
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
β GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(useAlternateNameAddServiceMethod: False, useServiceUrl: True)
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
β GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(useAlternateNameAddServiceMethod: True, useServiceUrl: False)
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
β GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(useAlternateNameAddServiceMethod: True, useServiceUrl: True)
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
β GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "af-south-1")
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
β GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "ap-southeast-1")
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
β GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "ca-central-1")
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
β GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "eu-central-1")
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
β GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "eu-west-2")
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
β GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "sa-east-1")
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
β GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "us-west-1")
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
β GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "af-south-1")
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
β GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "ap-southeast-1")
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
β GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "ca-central-1")
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
β GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "eu-central-1")
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
β GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "eu-west-2")
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
β GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "sa-east-1")
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
β GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "us-west-1")
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
β
GetRequiredService_Should_Use_Suitable_ClientFactory_To_Create_AwsService_By_UseLocalStack_Value(useLocalStack: False, useAlternateNameAddServiceMethod: False, useServiceUrl: False)
β
GetRequiredService_Should_Use_Suitable_ClientFactory_To_Create_AwsService_By_UseLocalStack_Value(useLocalStack: False, useAlternateNameAddServiceMethod: False, useServiceUrl: True)
β
GetRequiredService_Should_Use_Suitable_ClientFactory_To_Create_AwsService_By_UseLocalStack_Value(useLocalStack: False, useAlternateNameAddServiceMethod: True, useServiceUrl: False)
β
GetRequiredService_Should_Use_Suitable_ClientFactory_To_Create_AwsService_By_UseLocalStack_Value(useLocalStack: False, useAlternateNameAddServiceMethod: True, useServiceUrl: True)
β
GetRequiredService_Should_Use_Suitable_ClientFactory_To_Create_AwsService_By_UseLocalStack_Value(useLocalStack: True, useAlternateNameAddServiceMethod: False, useServiceUrl: False)
β
GetRequiredService_Should_Use_Suitable_ClientFactory_To_Create_AwsService_By_UseLocalStack_Value(useLocalStack: True, useAlternateNameAddServiceMethod: False, useServiceUrl: True)
β
GetRequiredService_Should_Use_Suitable_ClientFactory_To_Create_AwsService_By_UseLocalStack_Value(useLocalStack: True, useAlternateNameAddServiceMethod: True, useServiceUrl: False)
β
GetRequiredService_Should_Use_Suitable_ClientFactory_To_Create_AwsService_By_UseLocalStack_Value(useLocalStack: True, useAlternateNameAddServiceMethod: True, useServiceUrl: True)
Annotations
github-actions / Test Results (Windows)
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests βΊ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parame...
Failed test found in:
tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(Boolean useAlternateNameAddServiceMethod, Boolean useServiceUrl) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 273
at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
github-actions / Test Results (Windows)
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests βΊ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parame...
Failed test found in:
tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(Boolean useAlternateNameAddServiceMethod, Boolean useServiceUrl) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 273
at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
github-actions / Test Results (Windows)
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests βΊ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parame...
Failed test found in:
tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(Boolean useAlternateNameAddServiceMethod, Boolean useServiceUrl) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 273
at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
github-actions / Test Results (Windows)
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests βΊ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parame...
Failed test found in:
tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True_And_Should_Configure_ServiceUrl_Or_RegionEndpoint_By_Given_UseServiceUrl_Parameter(Boolean useAlternateNameAddServiceMethod, Boolean useServiceUrl) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 273
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
github-actions / Test Results (Windows)
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests βΊ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "af-south-1")
Failed test found in:
tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
github-actions / Test Results (Windows)
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests βΊ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "ap-southeast-1")
Failed test found in:
tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
github-actions / Test Results (Windows)
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests βΊ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "ca-central-1")
Failed test found in:
tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
github-actions / Test Results (Windows)
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests βΊ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "eu-central-1")
Failed test found in:
tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
github-actions / Test Results (Windows)
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests βΊ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "eu-west-2")
Failed test found in:
tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
github-actions / Test Results (Windows)
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests βΊ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "sa-east-1")
Failed test found in:
tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
github-actions / Test Results (Windows)
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests βΊ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: False, systemName: "us-west-1")
Failed test found in:
tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
github-actions / Test Results (Windows)
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests βΊ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "af-south-1")
Failed test found in:
tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
github-actions / Test Results (Windows)
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests βΊ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "ap-southeast-1")
Failed test found in:
tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
github-actions / Test Results (Windows)
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests βΊ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "ca-central-1")
Failed test found in:
tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
github-actions / Test Results (Windows)
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests βΊ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "eu-central-1")
Failed test found in:
tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
github-actions / Test Results (Windows)
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests βΊ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "eu-west-2")
Failed test found in:
tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
github-actions / Test Results (Windows)
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests βΊ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "sa-east-1")
Failed test found in:
tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
github-actions / Test Results (Windows)
LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests βΊ GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(useAlternateNameAddServiceMethod: True, systemName: "us-west-1")
Failed test found in:
tests/LocalStack.Client.Extensions.Tests/TestResults/net8-0_results.trx
Error:
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
Raw output
System.NotSupportedException : No AWS client type registered for interface 'LocalStack.Tests.Common.Mocks.MockServiceClients.IMockAmazonServiceWithServiceMetadata'. Ensure the AWS SDK package is referenced and the project targets .NET 8 or later for AOT compatibility.
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface(Type interfaceType) in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 79
at LocalStack.Client.Utils.AwsAccessorRegistry.GetByInterface[TInterface]() in /_/src/LocalStack.Client/Utils/AwsAccessorRegistry.cs:line 62
at LocalStack.Client.Session.CreateClientByInterface[TClient](Boolean useServiceUrl) in /_/src/LocalStack.Client/SessionModern.cs:line 99
at LocalStack.Client.Extensions.ServiceCollectionExtensions.<>c__DisplayClass12_0`1.<GetServiceFactoryDescriptor>b__0(IServiceProvider provider) in /_/src/LocalStack.Client.Extensions/ServiceCollectionExtensions.cs:line 227
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at LocalStack.Client.Extensions.Tests.ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Boolean useAlternateNameAddServiceMethod, String systemName) in D:\a\localstack-dotnet-client\localstack-dotnet-client\tests\LocalStack.Client.Extensions.Tests\ServiceCollectionExtensionsTests.cs:line 231
at InvokeStub_ServiceCollectionExtensionsTests.GetRequiredService_Should_Return_AmazonService_That_Configured_For_LocalStack_If_UseLocalStack_Is_True(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)