Updated build script #104
Annotations
3 errors
Infrastructure.Web.Api.IntegrationTests.ApiRequestCorrelationSpec+GivenAJsonClient ► WhenGetWithNoRequestId_ThenReturnsGeneratedResponseHeader:
src/Infrastructure.Hosting.Common/Extensions/EventingExtensions.cs#L263
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1388-520_2023-12-26_06_43_35[2].trx
Error:
System.ArgumentException : An item with the same key has already been added. Key: CarsDomain.CarRoot
|
AncillaryInfrastructure.IntegrationTests.AuditsApiSpec ► WhenDeliverAudit_ThenDelivers:
src/Common/Result.cs#L171
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1388-520_2023-12-26_06_43_52[1].trx
Error:
System.InvalidOperationException : The result is in a faulted state, with error: `{
"Type": "https://tools.ietf.org/html/rfc7231#section-6.6.1",
"Title": "An unexpected error occurred",
"Status": 500,
"Detail": "Could not find a part of the path \u0027C:\\Users\\runneradmin\\AppData\\Local\\saastack\\testing\\ancillary\\Events\\Audit\\audit_q2v3xURp3kavoBiSTTsA\\event_lUaAgtFFW0amBN99BqsjZA.json\u0027.",
"Instance": "http://localhost/audits/deliver",
"Exception": "System.IO.DirectoryNotFoundException: Could not find a part of the path \u0027C:\\Users\\runneradmin\\AppData\\Local\\saastack\\testing\\ancillary\\Events\\Audit\\audit_q2v3xURp3kavoBiSTTsA\\event_lUaAgtFFW0amBN99BqsjZA.json\u0027.\r\n at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)\r\n at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable\u00601 unixCreateMode)\r\n at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable\u00601 unixCreateMode)\r\n at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable\u00601 unixCreateMode)\r\n at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize)\r\n at System.IO.File.CreateText(String path)\r\n at Infrastructure.Persistence.Common.ApplicationServices.LocalMachineJsonFileStore.FileContainer.\u003C\u003Ec__DisplayClass18_0.\u003CWrite\u003Eg__SaveFile|1() in D:\\a\\saastack\\saastack\\src\\Infrastructure.Persistence.Common\\ApplicationServices\\LocalMachineJsonFileStore.cs:line 266\r\n at Polly.Policy.\u003C\u003Ec__DisplayClass108_0.\u003CExecute\u003Eb__0(Context _, CancellationToken _)\r\n at Polly.Policy.\u003C\u003Ec__DisplayClass138_0.\u003CImplementation\u003Eb__0(Context ctx, CancellationToken token)\r\n at Polly.Retry.RetryEngine.Implementation[TResult](Func\u00603 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates\u00601 shouldRetryResultPredicates, Action\u00604 onRetry, Int32 permittedRetryCount, IEnumerable\u00601 sleepDurationsEnumerable, Func\u00604 sleepDurationProvider)\r\n at Polly.Retry.RetryPolicy.Implementation[TResult](Func\u00603 action, Context context, CancellationToken cancellationToken)\r\n at Polly.Policy.Implementation(Action\u00602 action, Context context, CancellationToken cancellationToken)\r\n at Polly.Policy.Execute(Action\u00602 action, Context context, CancellationToken cancellationToken)\r\n at Polly.Policy.Execute(Action action)\r\n at Infrastructure.Persistence.Common.ApplicationServices.LocalMachineJsonFileStore.FileContainer.Write(String entityId, IReadOnlyDictionary\u00602 properties) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Persistence.Common\\ApplicationServices\\LocalMachineJsonFileStore.cs:line 261\r\n at Infrastructure.Persistence.Common.ApplicationServices.LocalMachineJsonFileStore.\u003C\u003Ec__DisplayClass31_0.\u003CAddEventsAsync\u003Eb__0(EventSourcedChangeEvent event) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Persistence.Common\\ApplicationServices\\LocalMachineJsonFileStore.IEventStore.cs:line 44\r\n at System.Collections.Generic.List\u00601.ForEach(Action\u00601 action)\r\n at Infrastructure.Persistence.Common.ApplicationServices.LocalMachineJsonFileStore.AddEventsAsync(String entityName, String entityId, List\u00601 events, CancellationToken cancellationToken) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Persistence.Common\\ApplicationServices\\LocalMachineJsonFileStore.IEventStore.cs:line 40\r\n at Infrastructure.Persistence.Common.EventSourcingDddCommandStore\u00601.\u003CSaveAsync\u003Eb__8_0(TAggregateRoot root, List\u00601 changedEvents, CancellationToken token) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Persistence.Common\\EventSourcingDddCommandStore.cs:line 101\r\n at Infrastructure.Persistence.Common.Extensions.EventNotifyingStoreExtensions.SaveAndPublishEventsAsync[TAggregateRoot](IEventNotifyingStore store, TAggregateRoot aggregate, EventStreamChangedAsync\u00601 eventHandler, Func\u00604 onSave, CancellationToken cancellationToken) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Persistence.Common\\Extensions\\EventNotifyingStoreExtensions.cs:line 32\r\n at Infrastructure.Persistence.Common.EventSourcingDddCommandStore\u00601.SaveAsync(TAggregateRoot aggregate, CancellationToken cancellationToken) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Persistence.Common\\EventSourcingDddCommandStore.cs:line 99\r\n at AncillaryInfrastructure.Persistence.AuditRepository.SaveAsync(AuditRoot audit, Boolean reload, CancellationToken cancellationToken) in D:\\a\\saastack\\saastack\\src\\AncillaryInfrastructure\\Persistence\\AuditRepository.cs:line 39\r\n at AncillaryInfrastructure.Persistence.AuditRepository.SaveAsync(AuditRoot audit, CancellationToken cancellationToken) in D:\\a\\saastack\\saastack\\src\\AncillaryInfrastructure\\Persistence\\AuditRepository.cs:line 48\r\n at AncillaryApplication.AncillaryApplication.DeliverAuditAsync(ICallerContext context, AuditMessage message, CancellationToken cancellationToken) in D:\\a\\saastack\\saastack\\src\\AncillaryApplication\\AncillaryApplication.cs:line 163\r\n at AncillaryApplication.AncillaryApplication.DeliverAuditAsync(ICallerContext context, String messageAsJson, CancellationToken cancellationToken) in D:\\a\\saastack\\saastack\\src\\AncillaryApplication\\AncillaryApplication.cs:line 81\r\n at AncillaryInfrastructure.Api.Audits.AuditsApi.Deliver(DeliverAuditRequest request, CancellationToken cancellationToken) in D:\\a\\saastack\\saastack\\src\\AncillaryInfrastructure\\Api\\Audits\\AuditsApi.cs:line 25\r\n at AncillaryInfrastructure.Api.Audits.AuditsApiMediatRHandlers.Deliver_DeliverAuditRequest_Handler.Handle(DeliverAuditRequest request, CancellationToken cancellationToken) in D:\\a\\saastack\\saastack\\src\\AncillaryInfrastructure\\Tools.Generators.WebApi\\Tools.Generators.WebApi.MinimalApiMediatRGenerator\\MinimalApiMediatRGeneratedHandlers.g.cs:line 79\r\n at Infrastructure.Web.Api.Common.ValidationBehavior\u00602.Handle(TRequest request, RequestHandlerDelegate\u00601 next, CancellationToken cancellationToken) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Web.Api.Common\\ValidationBehavior.cs:line 38\r\n at AncillaryInfrastructure.MinimalApiRegistration.\u003C\u003Ec.\u003C\u003CRegisterRoutes\u003Eb__0_0\u003Ed.MoveNext() in D:\\a\\saastack\\saastack\\src\\AncillaryInfrastructure\\Tools.Generators.WebApi\\Tools.Generators.WebApi.MinimalApiMediatRGenerator\\MinimalApiMediatRGeneratedHandlers.g.cs:line 25\r\n--- End of stack trace from previous location ---\r\n at Microsoft.AspNetCore.Http.RequestDelegateFactory.\u003CTaskOfTToValueTaskOfObject\u003Eg__ExecuteAwaited|80_0[T](Task\u00601 task)\r\n at Infrastructure.Web.Api.Common.ContentNegotiationFilter.InvokeAsync(EndpointFilterInvocationContext context, EndpointFilterDelegate next) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Web.Api.Common\\ContentNegotiationFilter.cs:line 22\r\n at Infrastructure.Web.Api.Common.RequestCorrelationFilter.InvokeAsync(EndpointFilterInvocationContext context, EndpointFilterDelegate next) in D:\\a\\saastack\\saastack\\src\\Infrastructure.Web.Api.Common\\RequestCorrelationFilter.cs:line 32\r\n at Microsoft.AspNetCore.Http.RequestDelegateFactory.\u003CExecuteValueTaskOfObject\u003Eg__ExecuteAwaited|109_0(ValueTask\u00601 valueTask, HttpContext httpContext)\r\n at Microsoft.AspNetCore.Http.RequestDelegateFactory.\u003C\u003Ec__DisplayClass90_2.\u003C\u003CHandleRequestBodyAndCompileRequestDelegateForJson\u003Eb__2\u003Ed.MoveNext()\r\n--- End of stack trace from previous location ---\r\n at Microsoft.AspNetCore.Routing.EndpointMiddleware.\u003CInvoke\u003Eg__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)\r\n at Infrastructure.Web.Api.Common.Extensions.WebApplicationExtensions.\u003C\u003Ec.\u003C\u003CEnableApiUsageTracking\u003Eb__3_0\u003Ed.MoveNext() in D:\\a\\saastack\\saastack\\src\\Infrastructure.Web.Api.Common\\Extensions\\WebApplicationExtensions.cs:line 123\r\n--- End of stack trace from previous location ---\r\n at Infrastructure.Web.Api.Common.Extensions.WebApplicationExtensions.\u003C\u003Ec.\u003C\u003CAddEventingListeners\u003Eb__1_0\u003Ed.MoveNext() in D:\\a\\saastack\\saastack\\src\\Infrastructure.Web.Api.Common\\Extensions\\WebApplicationExtensions.cs:line 62\r\n--- End of stack trace from previous location ---\r\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.\u003CInvoke\u003Eg__Awaited|8_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)"
}`
|
test
Process completed with exit code 1.
|