Skip to content

Refactored tests

Refactored tests #189

GitHub Actions / All Tests succeeded Apr 18, 2024 in 1s

All Tests ✅

Tests failed

Report Passed Failed Skipped Time
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_03.trx 3s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_03[1].trx 302✅ 4s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_04.trx 233✅ 7s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_05.trx 4s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_07.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_07[1].trx 35✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_09.trx 22✅ 3s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_09[1].trx 87✅ 3s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_11.trx 227✅ 3s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_12.trx 17✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_13.trx 36✅ 3s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_15.trx 127✅ 5s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_16.trx 17✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_16[1].trx 80✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_18.trx 22✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_19.trx 8✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_19[1].trx 10✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_21.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_22.trx 44✅ 3s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_22[1].trx 135✅ 3s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_22[2].trx 48✅ 13s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_24.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_25.trx 8✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_25[1].trx 11✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_26.trx 21✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_28.trx 22✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_28[1].trx 27✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_28[2].trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_30.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_30[1].trx 25✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_32.trx 331✅ 2⚪ 10s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_33.trx 34✅ 5s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_35.trx 59✅ 5s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_35[1].trx 77✅ 9s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_39.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_40.trx 57✅ 4s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_42.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_42[1].trx 38✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_43.trx 40✅ 5s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_44.trx 98✅ 16s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_45.trx 12✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_45[1].trx 84✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_47.trx 16✅ 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_47[1].trx 31✅ 3s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_47[2].trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_49.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_49[1].trx 1✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_50.trx 1✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_51.trx 31✅ 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_51[1].trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_52.trx 21✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_53.trx 7✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_53[1].trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_54.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_55.trx 22✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_56.trx 32✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_58.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_59.trx 14✅ 3s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_00.trx 9✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_00[1].trx 10✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_02.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_02[1].trx 9✅ 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_07.trx 6✅ 13s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_12.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_12[1].trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_13.trx 3s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_15.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_16.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_17.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_19.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_19[1].trx 56✅ 49s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_20.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_21.trx 7✅ 17s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_22.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_22[1].trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_25.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_25[1].trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_27.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_28.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_30.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_30[1].trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_32.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_33.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_34.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_35.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_36.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_37.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_38.trx 3✅ 12s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_40.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_40[1].trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_42.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_44.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_46.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_47.trx 18✅ 19s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_49.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_49[1].trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_51.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_54.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_56.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx 1✅ 35❌ 149s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_01.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_01[1].trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_04.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_04[1].trx 16✅ 20s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_05.trx 3s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_06.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_07.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_09.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_12.trx 3s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_13.trx 14✅ 32s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_15.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_17.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_18.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_19.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_22.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_23.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_26.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_26[1].trx 7✅ 28s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_28.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_30.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_39.trx 9✅ 19s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_40.trx 2s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_42.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_44.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_45.trx 1s
src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_50_51.trx 5✅ 9s

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_03.trx

No tests found

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_03[1].trx

302 tests were completed in 4s with 302 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Common.UnitTests.CountryCodesSpec 12✅ 51ms
Common.UnitTests.ErrorSpec 10✅ 20ms
Common.UnitTests.Extensions.CollectionExtensionsSpec 3✅ 33ms
Common.UnitTests.Extensions.DateTimeExtensionsSpec 44✅ 25ms
Common.UnitTests.Extensions.DictionaryExtensionsSpec 12✅ 36ms
Common.UnitTests.Extensions.EnumExtensionsSpec 10✅ 35ms
Common.UnitTests.Extensions.ObjectExtensionsSpec 16✅ 431ms
Common.UnitTests.Extensions.StringExtensionsSpec 66✅ 91ms
Common.UnitTests.Extensions.TimeSpanExtensionsSpec 7✅ 37ms
Common.UnitTests.OptionalOfTSpec 50✅ 52ms
Common.UnitTests.OptionalSpec 16✅ 117ms
Common.UnitTests.Recording.RecordingExtensionsSpec 2✅ 461ms
Common.UnitTests.ReflectorSpec 3✅ 10ms
Common.UnitTests.ResultSpec+ResultWithoutValueSpec 14✅ 8ms
Common.UnitTests.ResultSpec+ResultWithValueSpec 31✅ 349ms
Common.UnitTests.TimezonesSpec 6✅ 334ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_04.trx

233 tests were completed in 7s with 233 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Infrastructure.Web.Api.Common.UnitTests.AuthorizeAttributeSpec+GivenAPolicy 5✅ 180ms
Infrastructure.Web.Api.Common.UnitTests.AuthorizeAttributeSpec+GivenPlatformAuthorization 9✅ 44ms
Infrastructure.Web.Api.Common.UnitTests.AuthorizeAttributeSpec+GivenRolesAndFeatures 8✅ 39ms
Infrastructure.Web.Api.Common.UnitTests.AuthorizeAttributeSpec+GivenTenantAuthorization 7✅ 533ms
Infrastructure.Web.Api.Common.UnitTests.Endpoints.ApiUsageFilterSpec 5✅ 651ms
Infrastructure.Web.Api.Common.UnitTests.Endpoints.ContentNegotiationFilterSpec 26✅ 543ms
Infrastructure.Web.Api.Common.UnitTests.Endpoints.MultiTenancyFilterSpec 7✅ 212ms
Infrastructure.Web.Api.Common.UnitTests.Endpoints.RequestCorrelationFilterSpec 3✅ 7ms
Infrastructure.Web.Api.Common.UnitTests.Extensions.HasGetOptionsExtensionsSpec 6✅ 9ms
Infrastructure.Web.Api.Common.UnitTests.Extensions.HasSearchOptionsExtensionsSpec 9✅ 9ms
Infrastructure.Web.Api.Common.UnitTests.Extensions.HttpRequestExtensionsSpec 41✅ 1s
Infrastructure.Web.Api.Common.UnitTests.Extensions.HttpResponseExtensionsSpec 3✅ 528ms
Infrastructure.Web.Api.Common.UnitTests.Extensions.RequestExtensionsSpec 15✅ 289ms
Infrastructure.Web.Api.Common.UnitTests.Extensions.ServiceCollectionExtensionsSpec 5✅ 11ms
Infrastructure.Web.Api.Common.UnitTests.FileUploadServiceSpec+GivenAnyUpload 4✅ 1s
Infrastructure.Web.Api.Common.UnitTests.FileUploadServiceSpec+GivenKnownFile 6✅ 4ms
Infrastructure.Web.Api.Common.UnitTests.FileUploadServiceSpec+GivenUnknownFile 3✅ 46ms
Infrastructure.Web.Api.Common.UnitTests.HasGetOptionsSpec 4✅ 12ms
Infrastructure.Web.Api.Common.UnitTests.HMACSignerSpec+GivenARequest 5✅ 35ms
Infrastructure.Web.Api.Common.UnitTests.HMACSignerSpec+GivenASigner 3✅ 28ms
Infrastructure.Web.Api.Common.UnitTests.JsonDateTimeConverterSpec 6✅ 877ms
Infrastructure.Web.Api.Common.UnitTests.Pipeline.ValidationBehaviorSpec 2✅ 2s
Infrastructure.Web.Api.Common.UnitTests.RequestTenantDetectiveSpec+GivenAnUntenantedRequestDto 8✅ 10ms
Infrastructure.Web.Api.Common.UnitTests.RequestTenantDetectiveSpec+GivenAnyRequestDto 3✅ 1s
Infrastructure.Web.Api.Common.UnitTests.RequestTenantDetectiveSpec+GivenATenantedOrganizationRequestDto 5✅ 9ms
Infrastructure.Web.Api.Common.UnitTests.RequestTenantDetectiveSpec+GivenATenantedRequestDto 5✅ 668ms
Infrastructure.Web.Api.Common.UnitTests.Validation.AdditionalValidatorSpec 5✅ 36ms
Infrastructure.Web.Api.Common.UnitTests.Validation.HasGetOptionsValidatorSpec 10✅ 497ms
Infrastructure.Web.Api.Common.UnitTests.Validation.HasSearchOptionsValidatorSpec 15✅ 584ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_05.trx

No tests found

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_07.trx

No tests found

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_07[1].trx

35 tests were completed in 2s with 35 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
CarsInfrastructure.UnitTests.Api.Cars.DeleteCarRequestValidatorSpec 1✅ 4ms
CarsInfrastructure.UnitTests.Api.Cars.GetCarRequestValidatorSpec 1✅ 2ms
CarsInfrastructure.UnitTests.Api.Cars.RegisterCarRequestValidatorSpec 9✅ 176ms
CarsInfrastructure.UnitTests.Api.Cars.ReleaseCarAvailabilityRequestValidatorSpec 4✅ 14ms
CarsInfrastructure.UnitTests.Api.Cars.ReserveCarIfAvailableRequestValidatorSpec 6✅ 22ms
CarsInfrastructure.UnitTests.Api.Cars.ScheduleMaintenanceCarRequestValidatorSpec 4✅ 177ms
CarsInfrastructure.UnitTests.Api.Cars.SearchAllAvailableCarsRequestValidatorSpec 4✅ 172ms
CarsInfrastructure.UnitTests.Api.Cars.SearchAllCarsRequestValidatorSpec 1✅ 2ms
CarsInfrastructure.UnitTests.Api.Cars.SearchAllUnavailabilitiesRequestValidatorSpec 1✅ 158ms
CarsInfrastructure.UnitTests.Api.Cars.TakeOfflineCarRequestValidatorSpec 4✅ 7ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_09.trx

22 tests were completed in 3s with 22 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Application.Interfaces.UnitTests.GetOptionsExtensionsSpec 6✅ 36ms
Application.Interfaces.UnitTests.SearchOptionsExtensionsSpec 5✅ 35ms
Application.Interfaces.UnitTests.SearchOptionsSpec 11✅ 815ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_09[1].trx

87 tests were completed in 3s with 87 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Domain.Interfaces.UnitTests.Authorization.FeatureLevelSpec 14✅ 25ms
Domain.Interfaces.UnitTests.Authorization.PlatformFeaturesSpec 1✅ 3ms
Domain.Interfaces.UnitTests.Authorization.PlatformRolesSpec 2✅ 23ms
Domain.Interfaces.UnitTests.Authorization.RoleLevelSpec 14✅ 28ms
Domain.Interfaces.UnitTests.Authorization.TenantFeaturesSpec 1✅ 0ms
Domain.Interfaces.UnitTests.Authorization.TenantRolesSpec 2✅ 25ms
Domain.Interfaces.UnitTests.HydrationPropertiesSpec 13✅ 122ms
Domain.Interfaces.UnitTests.Validations.ValidationsSpec 40✅ 6ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_11.trx

227 tests were completed in 3s with 227 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Domain.Common.UnitTests.ChangeEventTypeMigratorSpec 4✅ 108ms
Domain.Common.UnitTests.Entities.AggregateRootBaseSpec 17✅ 158ms
Domain.Common.UnitTests.Entities.DomainEventExtensionsSpec 4✅ 8ms
Domain.Common.UnitTests.Entities.EntityBaseSpec 4✅ 171ms
Domain.Common.UnitTests.Entities.EventSourcedChangeEventExtensionsSpec 1✅ 88ms
Domain.Common.UnitTests.Extensions.HydrationPropertiesExtensionsSpec 6✅ 9ms
Domain.Common.UnitTests.Identity.NamePrefixedIdentifierFactorySpec 11✅ 9ms
Domain.Common.UnitTests.MessageQueueIdFactorySpec 8✅ 39ms
Domain.Common.UnitTests.ValueObjects.EventStreamSpec 12✅ 30ms
Domain.Common.UnitTests.ValueObjects.IdentifierExtensionsSpec 4✅ 1ms
Domain.Common.UnitTests.ValueObjects.IdentifierSpec 1✅ 148ms
Domain.Common.UnitTests.ValueObjects.SingleValueObjectComparableSpec 40✅ 36ms
Domain.Common.UnitTests.ValueObjects.SingleValueObjectEqualitySpec 22✅ 2ms
Domain.Common.UnitTests.ValueObjects.SingleValueObjectSpec 2✅ 3ms
Domain.Common.UnitTests.ValueObjects.ValueObjectComparableSpec 23✅ 69ms
Domain.Common.UnitTests.ValueObjects.ValueObjectEqualitySpec 44✅ 34ms
Domain.Common.UnitTests.ValueObjects.ValueObjectExtensionsSpec 2✅ 0ms
Domain.Common.UnitTests.ValueObjects.ValueObjectSpec 22✅ 27ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_12.trx

17 tests were completed in 2s with 17 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Application.Common.UnitTests.CallerSpec 8✅ 215ms
Application.Common.UnitTests.Extensions.CallerContextExtensionsSpec 3✅ 192ms
Application.Common.UnitTests.Extensions.FeatureFlagExtensionsSpec 6✅ 217ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_13.trx

36 tests were completed in 3s with 36 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Tools.Generators.Web.Api.UnitTests.MinimalApiMediatRGeneratorSpec+GivenAServiceClass 14✅ 1s
Tools.Generators.Web.Api.UnitTests.WebApiAssemblyVisitorSpec+GivenAnyClass 10✅ 741ms
Tools.Generators.Web.Api.UnitTests.WebApiAssemblyVisitorSpec+GivenAServiceClass 8✅ 821ms
Tools.Generators.Web.Api.UnitTests.WebApiAssemblyVisitorSpec+GivenAServiceClass+GivenAServiceOperation 4✅ 883ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_15.trx

127 tests were completed in 5s with 127 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Infrastructure.Web.Hosting.Common.UnitTests.AnonymousCallerContextSpec 2✅ 70ms
Infrastructure.Web.Hosting.Common.UnitTests.ApplicationServices.AspNetHostLocalFileTenantSettingsServiceSpec+GivenEncryptedSettings 1✅ 2ms
Infrastructure.Web.Hosting.Common.UnitTests.ApplicationServices.AspNetHostLocalFileTenantSettingsServiceSpec+GivenNoEncryptedSettings 1✅ 38ms
Infrastructure.Web.Hosting.Common.UnitTests.AspNetCallerContextSpec 23✅ 112ms
Infrastructure.Web.Hosting.Common.UnitTests.Auth.APIKeyAuthenticationHandlerSpec 5✅ 78ms
Infrastructure.Web.Hosting.Common.UnitTests.Auth.HMACAuthenticationHandlerSpec 5✅ 698ms
Infrastructure.Web.Hosting.Common.UnitTests.Auth.RolesAndFeaturesAuthorizationHandlerSpec 11✅ 16ms
Infrastructure.Web.Hosting.Common.UnitTests.Auth.RolesAndFeaturesAuthorizationPolicyProviderSpec 2✅ 520ms
Infrastructure.Web.Hosting.Common.UnitTests.Pipeline.CSRFMiddlewareSpec 15✅ 278ms
Infrastructure.Web.Hosting.Common.UnitTests.Pipeline.CSRFServiceSpec 10✅ 15ms
Infrastructure.Web.Hosting.Common.UnitTests.Pipeline.CSRFTokenPairSpec 22✅ 59ms
Infrastructure.Web.Hosting.Common.UnitTests.Pipeline.MultiTenancyMiddlewareSpec+GivenAnAnonymousUser 5✅ 676ms
Infrastructure.Web.Hosting.Common.UnitTests.Pipeline.MultiTenancyMiddlewareSpec+GivenAnAuthenticatedUser 7✅ 84ms
Infrastructure.Web.Hosting.Common.UnitTests.Pipeline.MultiTenancyMiddlewareSpec+GivenAnyCaller 5✅ 36ms
Infrastructure.Web.Hosting.Common.UnitTests.Pipeline.ReverseProxyMiddlewareSpec 3✅ 664ms
Infrastructure.Web.Hosting.Common.UnitTests.SubdomainModulesSpec 10✅ 2s

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_16.trx

17 tests were completed in 2s with 17 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
CarsApplication.UnitTests.CarsApplicationSpec 17✅ 392ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_16[1].trx

80 tests were completed in 2s with 80 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
CarsDomain.UnitTests.CarRootSpec 35✅ 176ms
CarsDomain.UnitTests.CausedBySpec 4✅ 115ms
CarsDomain.UnitTests.JurisdictionSpec 3✅ 2ms
CarsDomain.UnitTests.LicensePlateSpec 3✅ 116ms
CarsDomain.UnitTests.ManufacturerSpec 3✅ 115ms
CarsDomain.UnitTests.NumberPlateSpec 3✅ 1ms
CarsDomain.UnitTests.TimeSlotSpec 4✅ 3ms
CarsDomain.UnitTests.UnavailabilitySpec 13✅ 148ms
CarsDomain.UnitTests.VehicleManagersSpec 6✅ 9ms
CarsDomain.UnitTests.VehicleOwnerSpec 2✅ 114ms
CarsDomain.UnitTests.YearSpec 4✅ 1ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_18.trx

22 tests were completed in 2s with 22 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
BookingsDomain.UnitTests.BookingRootSpec 9✅ 176ms
BookingsDomain.UnitTests.LocationSpec 2✅ 113ms
BookingsDomain.UnitTests.TripSpec 8✅ 159ms
BookingsDomain.UnitTests.TripsSpec 3✅ 148ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_19.trx

8 tests were completed in 2s with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
BookingsApplication.UnitTests.BookingsApplicationSpec 8✅ 464ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_19[1].trx

10 tests were completed in 2s with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
BookingsInfrastructure.UnitTests.Api.Bookings.CancelBookingRequestValidatorSpec 1✅ 173ms
BookingsInfrastructure.UnitTests.Api.Bookings.MakeBookingRequestValidatorSpec 5✅ 227ms
BookingsInfrastructure.UnitTests.Api.Bookings.SearchAllBookingsRequestValidatorSpec 4✅ 215ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_21.trx

No tests found

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_22.trx

44 tests were completed in 3s with 44 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Infrastructure.Persistence.Interfaces.UnitTests.CommandEntitySpec 22✅ 267ms
Infrastructure.Persistence.Interfaces.UnitTests.PersistedEntityMetadataSpec 12✅ 116ms
Infrastructure.Persistence.Interfaces.UnitTests.QueryEntitySpec 10✅ 207ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_22[1].trx

135 tests were completed in 3s with 135 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Infrastructure.Persistence.Common.UnitTests.BlobStoreSpec 9✅ 321ms
Infrastructure.Persistence.Common.UnitTests.EventSourcingDddCommandStoreSpec 7✅ 126ms
Infrastructure.Persistence.Common.UnitTests.Extensions.DynamicLinqWhereExtensionsSpec 3✅ 3ms
Infrastructure.Persistence.Common.UnitTests.Extensions.EventNotifyingStoreExtensionsSpec 4✅ 330ms
Infrastructure.Persistence.Common.UnitTests.Extensions.EventStoreExtensionsSpec 6✅ 4ms
Infrastructure.Persistence.Common.UnitTests.Extensions.StoreExtensionsSpec 21✅ 719ms
Infrastructure.Persistence.Common.UnitTests.Extensions.TypeExtensionsSpec 15✅ 24ms
Infrastructure.Persistence.Common.UnitTests.MessageQueueStoreSpec 5✅ 282ms
Infrastructure.Persistence.Common.UnitTests.ReadModelProjectionStoreSpec 9✅ 48ms
Infrastructure.Persistence.Common.UnitTests.SnapshottingDddCommandStoreSpec 20✅ 482ms
Infrastructure.Persistence.Common.UnitTests.SnapshottingQueryStoreSpec 12✅ 46ms
Infrastructure.Persistence.Common.UnitTests.SnapshottingStoreSpec 24✅ 532ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_22[2].trx

48 tests were completed in 13s with 48 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Tools.Analyzers.Platform.UnitTests.MissingDocsAnalyzerSpec+GivenRule001 34✅ 9s
Tools.Analyzers.Platform.UnitTests.MissingDocsAnalyzerSpec+GivenRule002 14✅ 8s

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_24.trx

No tests found

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_25.trx

8 tests were completed in 2s with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Application.Persistence.Common.UnitTests.QueryAnyExtensionsSpec 8✅ 72ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_25[1].trx

11 tests were completed in 2s with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Infrastructure.Common.UnitTests.DomainFactorySpec 9✅ 229ms
Infrastructure.Common.UnitTests.DomainServices.AesEncryptionServiceSpec 2✅ 115ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_26.trx

21 tests were completed in 2s with 21 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Infrastructure.Eventing.Common.UnitTests.Notifications.EventNotificationNotifierSpec 9✅ 261ms
Infrastructure.Eventing.Common.UnitTests.Projections.ProjectionCheckpointRepositorySpec 4✅ 256ms
Infrastructure.Eventing.Common.UnitTests.Projections.ReadModelProjectorSpec 8✅ 241ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_28.trx

22 tests were completed in 2s with 22 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
AncillaryInfrastructure.UnitTests.Api.Audits.DeliverAuditRequestValidatorSpec 2✅ 2ms
AncillaryInfrastructure.UnitTests.Api.Emails.DeliverEmailRequestValidatorSpec 2✅ 150ms
AncillaryInfrastructure.UnitTests.Api.FeatureFlags.GetFeatureFlagForCallerRequestValidatorSpec 2✅ 144ms
AncillaryInfrastructure.UnitTests.Api.FeatureFlags.GetFeatureFlagRequestValidatorSpec 6✅ 196ms
AncillaryInfrastructure.UnitTests.Api.Provisionings.NotifyProvisioningRequestValidatorSpec 2✅ 150ms
AncillaryInfrastructure.UnitTests.Api.Recording.RecordMeasureRequestValidatorSpec 3✅ 5ms
AncillaryInfrastructure.UnitTests.Api.Recording.RecordUsageRequestValidatorSpec 3✅ 153ms
AncillaryInfrastructure.UnitTests.Api.Usages.DeliverUsageRequestValidatorSpec 2✅ 4ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_28[1].trx

27 tests were completed in 2s with 27 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
AncillaryApplication.UnitTests.AncillaryApplicationSpec 24✅ 597ms
AncillaryApplication.UnitTests.FeatureFlagsApplicationSpec 3✅ 351ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_28[2].trx

No tests found

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_30.trx

No tests found

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_30[1].trx

25 tests were completed in 2s with 25 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
AncillaryDomain.UnitTests.AuditRootSpec 1✅ 155ms
AncillaryDomain.UnitTests.DeliveryAttemptsSpec 6✅ 98ms
AncillaryDomain.UnitTests.EmailDeliverRootSpec 12✅ 80ms
AncillaryDomain.UnitTests.EmailRecipientSpec 2✅ 81ms
AncillaryDomain.UnitTests.QueuedMessageIdSpec 3✅ 82ms
AncillaryDomain.UnitTests.TemplateArgumentsSpec 1✅ 7ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_32.trx

333 tests were completed in 10s with 331 passed, 0 failed and 2 skipped.

Test suite Passed Failed Skipped Time
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenARequest+GivenRule030 1✅ 5s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenARequest+GivenRule031 1✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenARequest+GivenRule032 1✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenARequest+GivenRule033 1✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenARequest+GivenRule034 3✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenARequest+GivenRule035 1✅ 8s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenARequest+GivenRule036 2✅ 2s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenAResponse+GivenRule040 1✅ 2s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenAResponse+GivenRule041 1✅ 2s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenAResponse+GivenRule042 1✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenAResponse+GivenRule043 3✅ 2s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenAResponse+GivenRule044 1✅ 8s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenAResponse+GivenRule045 2✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenAWebApiService+GivenAnyRule 5✅ 8s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenAWebApiService+GivenRule010 18✅ 3s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenAWebApiService+GivenRule011And012 6✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenAWebApiService+GivenRule013AndRule017 3✅ 3s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenAWebApiService+GivenRule014 4✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenAWebApiService+GivenRule015 2✅ 2s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenAWebApiService+GivenRule016 35✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenAWebApiService+GivenRule018AndRule019 4✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.ApiLayerAnalyzerSpec+GivenAWebApiService+GivenRule020 2✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAReadModel+GivenAnyReadModel 1✅ 2s
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAReadModel+GivenRule020 1✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAReadModel+GivenRule021 1✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAReadModel+GivenRule022 3✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAReadModel+GivenRule023 1✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAReadModel+GivenRule024 3✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAReadModel+GivenRule025 12✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAResource+GivenAnyResource 1✅ 5s
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAResource+GivenRule010 1✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAResource+GivenRule011 3✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAResource+GivenRule012 1✅ 7s
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAResource+GivenRule013 2✅ 3s
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAResource+GivenRule014 22✅ 3s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenAnyDomainEvent 1✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule040 1✅ 1s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule041 1✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule042 3✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule043 2✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule045 1✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule046 1✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule047 27✅ 7s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule048 2✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule049 10✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenAnEntity+GivenRule020 3✅ 8s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenAnEntity+GivenRule021 4✅ 5s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenAnEntity+GivenRule022 2✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenAnEntity+GivenRule023 2✅ 5s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenAnEntity+GivenRule024 2✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenAnEntity+GivenRule025 2✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenAnEntity+GivenRule026 4✅ 8s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenAnEntity+GivenRule027 2✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenAnyRule 4✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenARootAggregate+GivenRule010 3✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenARootAggregate+GivenRule011 4✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenARootAggregate+GivenRule012 2✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenARootAggregate+GivenRule013 2✅ 8s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenARootAggregate+GivenRule014 2✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenARootAggregate+GivenRule015 2✅ 3s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenARootAggregate+GivenRule016 2✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenARootAggregate+GivenRule017 4✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenARootAggregate+GivenRule018 2✅ 7s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenAValueObject+GivenRule030 3✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenAValueObject+GivenRule031 4✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenAValueObject+GivenRule032 2✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenAValueObject+GivenRule033 2✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenAValueObject+GivenRule034 4✅ 3s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenAValueObject+GivenRule035 6✅ 7s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenAValueObject+GivenRule036 2✅ 3s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignCodeFixSpec+GivenAnEntity+GivenRuleRule020 1✅ 5s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignCodeFixSpec+GivenAnEntity+GivenRuleRule023 1✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignCodeFixSpec+GivenAnEntity+GivenRuleRule025 1✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignCodeFixSpec+GivenAnEntity+GivenRuleRule027 1✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignCodeFixSpec+GivenARootAggregate+GivenRuleRule010 1✅ 7s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignCodeFixSpec+GivenARootAggregate+GivenRuleRule014 2✅ 5s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignCodeFixSpec+GivenARootAggregate+GivenRuleRule015 1✅ 3s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignCodeFixSpec+GivenARootAggregate+GivenRuleRule016 1✅ 2s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignCodeFixSpec+GivenARootAggregate+GivenRuleRule018 1✅ 3s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignCodeFixSpec+GivenAValueObject+GivenRuleRule030 2✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignCodeFixSpec+GivenAValueObject+GivenRuleRule033 2✅ 3s
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignCodeFixSpec+GivenAValueObject+GivenRuleRule035 2⚪ 2ms
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignCodeFixSpec+GivenAValueObject+GivenRuleRule036 1✅ 3s
Tools.Analyzers.NonPlatform.UnitTests.EventingAnalyzerSpec+GivenAnIntegrationEvent+GivenAnyIntegrationEvent 1✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.EventingAnalyzerSpec+GivenAnIntegrationEvent+GivenRule010 1✅ 3s
Tools.Analyzers.NonPlatform.UnitTests.EventingAnalyzerSpec+GivenAnIntegrationEvent+GivenRule011 1✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.EventingAnalyzerSpec+GivenAnIntegrationEvent+GivenRule012 3✅ 7s
Tools.Analyzers.NonPlatform.UnitTests.EventingAnalyzerSpec+GivenAnIntegrationEvent+GivenRule013 1✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.EventingAnalyzerSpec+GivenAnIntegrationEvent+GivenRule014 18✅ 5s
Tools.Analyzers.NonPlatform.UnitTests.EventingAnalyzerSpec+GivenAnIntegrationEvent+GivenRule015 2✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.EventingAnalyzerSpec+GivenAnIntegrationEvent+GivenRule016 10✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.EventingAnalyzerSpec+GivenAnyRule 1✅ 6s
Tools.Analyzers.NonPlatform.UnitTests.SubdomainModuleAnalyzerSpec+GivenAnySubdomainModule+GivenAnyRule 1✅ 4s
Tools.Analyzers.NonPlatform.UnitTests.SubdomainModuleAnalyzerSpec+GivenAnySubdomainModule+GivenRule010 7✅ 2s

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_33.trx

34 tests were completed in 5s with 34 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Infrastructure.Web.Common.UnitTests.Clients.JsonClientSpec+GivenAnUntypedResponse 10✅ 238ms
Infrastructure.Web.Common.UnitTests.Clients.JsonClientSpec+GivenATypedResponse 7✅ 209ms
Infrastructure.Web.Common.UnitTests.Extensions.ResponseProblemExtensionsSpec 17✅ 191ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_35.trx

59 tests were completed in 5s with 59 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Infrastructure.Hosting.Common.UnitTests.ApplicationServices.AspNetDynamicConfigurationSettingsSpec+GivenOnlyPlatformConfiguration 10✅ 181ms
Infrastructure.Hosting.Common.UnitTests.ApplicationServices.AspNetDynamicConfigurationSettingsSpec+GivenTenancyAndNoPlatformConfiguration 10✅ 12ms
Infrastructure.Hosting.Common.UnitTests.ApplicationServices.AspNetDynamicConfigurationSettingsSpec+GivenTenancyAndPlatformConfiguration 10✅ 254ms
Infrastructure.Hosting.Common.UnitTests.ApplicationServices.Eventing.EventHandlerBaseSpec 4✅ 75ms
Infrastructure.Hosting.Common.UnitTests.ApplicationServices.Eventing.Notifications.InProcessSynchronousNotificationRelaySpec 2✅ 560ms
Infrastructure.Hosting.Common.UnitTests.ApplicationServices.Eventing.Projections.InProcessSynchronousProjectionRelaySpec 2✅ 573ms
Infrastructure.Hosting.Common.UnitTests.ApplicationServices.HostSettingsSpec 7✅ 841ms
Infrastructure.Hosting.Common.UnitTests.Extensions.ServiceCollectionExtensionsSpec 7✅ 479ms
Infrastructure.Hosting.Common.UnitTests.Recording.HostRecorderSpec 7✅ 189ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_35[1].trx

77 tests were completed in 9s with 77 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Domain.Shared.UnitTests.AvatarSpec 2✅ 3ms
Domain.Shared.UnitTests.EmailAddressSpec 10✅ 10ms
Domain.Shared.UnitTests.FeatureSpec 4✅ 1ms
Domain.Shared.UnitTests.FeaturesSpec 23✅ 3s
Domain.Shared.UnitTests.NameSpec 2✅ 0ms
Domain.Shared.UnitTests.PersonDisplayNameSpec 2✅ 1ms
Domain.Shared.UnitTests.PersonNameSpec 4✅ 2s
Domain.Shared.UnitTests.PhoneNumberSpec 3✅ 4s
Domain.Shared.UnitTests.RoleSpec 4✅ 2s
Domain.Shared.UnitTests.RolesSpec 23✅ 28ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_39.trx

No tests found

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_40.trx

57 tests were completed in 4s with 57 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
IdentityInfrastructure.UnitTests.Api.AuthTokens.RefreshTokenRequestValidatorSpec 2✅ 2ms
IdentityInfrastructure.UnitTests.Api.AuthTokens.RevokeRefreshTokenRequestValidatorSpec 2✅ 138ms
IdentityInfrastructure.UnitTests.Api.MachineCredentials.RegisterMachineRequestValidatorSpec 9✅ 37ms
IdentityInfrastructure.UnitTests.Api.PasswordCredentials.AuthenticatePasswordRequestValidatorSpec 4✅ 5ms
IdentityInfrastructure.UnitTests.Api.PasswordCredentials.ConfirmPersonRegistrationRequestValidatorSpec 3✅ 141ms
IdentityInfrastructure.UnitTests.Api.PasswordCredentials.RegisterPersonPasswordRequestValidatorSpec 15✅ 227ms
IdentityInfrastructure.UnitTests.Api.SSO.AuthenticateSingleSignOnRequestValidatorSpec 8✅ 11ms
IdentityInfrastructure.UnitTests.ApplicationServices.FakeSSOAuthenticationProviderSpec 3✅ 70ms
IdentityInfrastructure.UnitTests.ApplicationServices.JWTTokensServiceSpec 1✅ 227ms
IdentityInfrastructure.UnitTests.DomainServices.EmailAddressServiceSpec 3✅ 198ms
IdentityInfrastructure.UnitTests.DomainServices.PasswordHasherServiceSpec 7✅ 3s

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_42.trx

No tests found

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_42[1].trx

38 tests were completed in 2s with 38 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
IdentityApplication.UnitTests.APIKeysApplicationSpec 6✅ 57ms
IdentityApplication.UnitTests.AuthTokensApplicationSpec 6✅ 55ms
IdentityApplication.UnitTests.MachineCredentialsApplicationSpec 1✅ 13ms
IdentityApplication.UnitTests.PasswordCredentialsApplicationSpec 13✅ 377ms
IdentityApplication.UnitTests.SingleSignOnApplicationSpec 6✅ 377ms
IdentityApplication.UnitTests.SSOProvidersServiceSpec+GivenAuthProviders 4✅ 445ms
IdentityApplication.UnitTests.SSOProvidersServiceSpec+GivenNoAuthProviders 2✅ 203ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_43.trx

40 tests were completed in 5s with 40 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Infrastructure.Web.Website.UnitTests.Api.AuthN.AuthenticateRequestValidatorSpec+GivenAnotherProvider 7✅ 4ms
Infrastructure.Web.Website.UnitTests.Api.AuthN.AuthenticateRequestValidatorSpec+GivenCredentialsProvider 6✅ 109ms
Infrastructure.Web.Website.UnitTests.Api.AuthN.AuthenticationApiSpec 4✅ 730ms
Infrastructure.Web.Website.UnitTests.Api.FeatureFlags.GetFeatureFlagForCallerRequestValidatorSpec 2✅ 3ms
Infrastructure.Web.Website.UnitTests.Api.Recording.RecordCrashRequestValidatorSpec 2✅ 3ms
Infrastructure.Web.Website.UnitTests.Api.Recording.RecordMeasureRequestValidatorSpec 3✅ 5ms
Infrastructure.Web.Website.UnitTests.Api.Recording.RecordPageViewRequestValidatorSpec 2✅ 342ms
Infrastructure.Web.Website.UnitTests.Api.Recording.RecordTraceRequestValidatorSpec 4✅ 48ms
Infrastructure.Web.Website.UnitTests.Api.Recording.RecordUsageRequestValidatorSpec 3✅ 423ms
Infrastructure.Web.Website.UnitTests.Application.AuthenticationApplicationSpec 5✅ 668ms
Infrastructure.Web.Website.UnitTests.Application.FeatureFlagsApplicationSpec 2✅ 271ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_44.trx

98 tests were completed in 16s with 98 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
IdentityDomain.UnitTests.APIKeyKeepSpec 11✅ 183ms
IdentityDomain.UnitTests.APIKeyRootSpec 9✅ 235ms
IdentityDomain.UnitTests.AuthTokensRootSpec 9✅ 34ms
IdentityDomain.UnitTests.LoginMonitorSpec 14✅ 14s
IdentityDomain.UnitTests.PasswordCredentialRootSpec 25✅ 281ms
IdentityDomain.UnitTests.PasswordKeepSpec 23✅ 33ms
IdentityDomain.UnitTests.SSOAuthTokenSpec 2✅ 2ms
IdentityDomain.UnitTests.SSOUserRootSpec 2✅ 117ms
IdentityDomain.UnitTests.VerificationSpec 3✅ 1ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_45.trx

12 tests were completed in 2s with 12 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Infrastructure.Shared.UnitTests.ApplicationServices.External.GravatarClientSpec 4✅ 417ms
Infrastructure.Shared.UnitTests.ApplicationServices.External.GravatarHttpServiceClientSpec 2✅ 382ms
Infrastructure.Shared.UnitTests.DomainServices.TokensServiceSpec 6✅ 287ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_45[1].trx

84 tests were completed in 2s with 84 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
EndUsersDomain.UnitTests.EndUserRootSpec+GivenAMachine 8✅ 226ms
EndUsersDomain.UnitTests.EndUserRootSpec+GivenAPerson 49✅ 273ms
EndUsersDomain.UnitTests.GuestInvitationSpec 10✅ 88ms
EndUsersDomain.UnitTests.MembershipSpec 6✅ 151ms
EndUsersDomain.UnitTests.MembershipsSpec 11✅ 57ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_47.trx

16 tests were completed in 1s with 16 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
EndUsersInfrastructure.UnitTests.Api.EndUsers.AssignPlatformRolesRequestValidatorSpec 4✅ 112ms
EndUsersInfrastructure.UnitTests.Api.EndUsers.UnassignPlatformRolesRequestValidatorSpec 4✅ 6ms
EndUsersInfrastructure.UnitTests.Api.Invitations.InviteGuestRequestValidatorSpec 2✅ 98ms
EndUsersInfrastructure.UnitTests.Api.Invitations.ResendGuestInvitationRequestValidatorSpec 3✅ 103ms
EndUsersInfrastructure.UnitTests.Api.Invitations.VerifyGuestInvitationRequestValidatorSpec 3✅ 106ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_47[1].trx

31 tests were completed in 3s with 31 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
EndUsersApplication.UnitTests.EndUsersApplicationDomainEventHandlersSpec 2✅ 395ms
EndUsersApplication.UnitTests.EndUsersApplicationSpec 17✅ 841ms
EndUsersApplication.UnitTests.InvitationsApplicationDomainEventHandlersSpec 4✅ 358ms
EndUsersApplication.UnitTests.InvitationsApplicationSpec 8✅ 472ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_47[2].trx

No tests found

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_49.trx

No tests found

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_49[1].trx

1 tests were completed in 2s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Tools.Generators.Common.UnitTests.FeatureFlagGeneratorSpec+GivenFeatureFlagsResources 1✅ 304ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_50.trx

1 tests were completed in 2s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Tools.Generators.Web.Api.Authorization.UnitTests.AuthorizationAttributeGeneratorSpec+GivenAuthorizationClasses 1✅ 554ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_51.trx

31 tests were completed in 1s with 31 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
OrganizationsDomain.UnitTests.DisplayNameSpec 2✅ 69ms
OrganizationsDomain.UnitTests.OrganizationRootSpec 15✅ 192ms
OrganizationsDomain.UnitTests.SettingSpec 10✅ 130ms
OrganizationsDomain.UnitTests.SettingsSpec 4✅ 57ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_51[1].trx

No tests found

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_52.trx

21 tests were completed in 2s with 21 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
OrganizationsApplication.UnitTests.OrganizationsApplicationDomainEventHandlersSpec 2✅ 261ms
OrganizationsApplication.UnitTests.OrganizationsApplicationSpec 19✅ 359ms

✅ src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_48_53.trx

7 tests were completed in 2s with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
OrganizationsInfrastructure.UnitTests.Api.Organizations.CreateOrganizationRequestValidatorSpec 2✅ 120ms
OrganizationsInfrastructure.UnitTests.Api.Organizations.InviteMemberToOrganizationRequestValidatorSpec 5✅ 127ms
Report exceeded GitHub limit of 65535 bytes and has been trimmed

Annotations

Check failure on line 110 in src/IntegrationTesting.WebApi.Common/TestingClient.cs

See this annotation in the file changed.

@github-actions github-actions / All Tests

Infrastructure.Web.Website.IntegrationTests.AuthNApiSpec ► WhenAccessSecureApiAndAuthenticated_ThenReturnsResponse

Failed test found in:
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
Error:
  System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
   ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
     at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     --- End of inner exception stack trace ---
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
     at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
     at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
     at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
     at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
     at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
Raw output
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
 ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
   at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
   at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
   at IntegrationTesting.WebApi.Common.TestingClient.ToExceptionAsync(HttpResponseMessage response, JsonSerializerOptions jsonOptions) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 110
   at IntegrationTesting.WebApi.Common.TestingClient.SendAsync(HttpRequestMessage message, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 96
   at IntegrationTesting.WebApi.Common.TestingClient.PostEmptyJsonAsync(String route, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 82
   at Infrastructure.Web.Website.IntegrationTests.AuthNApiSpec..ctor(WebApiSetup`1 setup) in D:\a\saastack\saastack\src\Infrastructure.Web.Website.IntegrationTests\AuthNApiSpec.cs:line 28
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)

Check failure on line 110 in src/IntegrationTesting.WebApi.Common/TestingClient.cs

See this annotation in the file changed.

@github-actions github-actions / All Tests

Infrastructure.Web.Website.IntegrationTests.AuthNApiSpec ► WhenAccessSecureApiAndNotAuthenticated_ThenReturnsError

Failed test found in:
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
Error:
  System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
   ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
     at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     --- End of inner exception stack trace ---
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
     at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
     at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
     at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
     at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
     at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
Raw output
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
 ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
   at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
   at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
   at IntegrationTesting.WebApi.Common.TestingClient.ToExceptionAsync(HttpResponseMessage response, JsonSerializerOptions jsonOptions) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 110
   at IntegrationTesting.WebApi.Common.TestingClient.SendAsync(HttpRequestMessage message, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 96
   at IntegrationTesting.WebApi.Common.TestingClient.PostEmptyJsonAsync(String route, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 82
   at Infrastructure.Web.Website.IntegrationTests.AuthNApiSpec..ctor(WebApiSetup`1 setup) in D:\a\saastack\saastack\src\Infrastructure.Web.Website.IntegrationTests\AuthNApiSpec.cs:line 28
   at InvokeStub_AuthNApiSpec..ctor(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 110 in src/IntegrationTesting.WebApi.Common/TestingClient.cs

See this annotation in the file changed.

@github-actions github-actions / All Tests

Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec+GivenAnInsecureGetRequest ► WhenRequestedForAnonymousWithCSRFToken_ThenSucceeds

Failed test found in:
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
Error:
  System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
   ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
     at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     --- End of inner exception stack trace ---
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
     at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
     at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
     at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
     at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
     at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
Raw output
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
 ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
   at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
   at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
   at IntegrationTesting.WebApi.Common.TestingClient.ToExceptionAsync(HttpResponseMessage response, JsonSerializerOptions jsonOptions) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 110
   at IntegrationTesting.WebApi.Common.TestingClient.SendAsync(HttpRequestMessage message, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 96
   at IntegrationTesting.WebApi.Common.TestingClient.PostEmptyJsonAsync(String route, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 82
   at Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec.GivenAnInsecureGetRequest..ctor(WebApiSetup`1 setup) in D:\a\saastack\saastack\src\Infrastructure.Web.Website.IntegrationTests\CSRFApiSpec.cs:line 76
   at InvokeStub_GivenAnInsecureGetRequest..ctor(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 110 in src/IntegrationTesting.WebApi.Common/TestingClient.cs

See this annotation in the file changed.

@github-actions github-actions / All Tests

Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec+GivenAnInsecureGetRequest ► WhenRequestedWithNoCSRFToken_ThenSucceeds

Failed test found in:
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
Error:
  System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
   ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
     at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     --- End of inner exception stack trace ---
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
     at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
     at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
     at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
     at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
     at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
Raw output
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
 ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
   at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
   at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
   at IntegrationTesting.WebApi.Common.TestingClient.ToExceptionAsync(HttpResponseMessage response, JsonSerializerOptions jsonOptions) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 110
   at IntegrationTesting.WebApi.Common.TestingClient.SendAsync(HttpRequestMessage message, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 96
   at IntegrationTesting.WebApi.Common.TestingClient.PostEmptyJsonAsync(String route, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 82
   at Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec.GivenAnInsecureGetRequest..ctor(WebApiSetup`1 setup) in D:\a\saastack\saastack\src\Infrastructure.Web.Website.IntegrationTests\CSRFApiSpec.cs:line 76
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)

Check failure on line 110 in src/IntegrationTesting.WebApi.Common/TestingClient.cs

See this annotation in the file changed.

@github-actions github-actions / All Tests

Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec+GivenAnInsecurePostRequestByAnonymousUser ► WhenRequestedCSRFToken_ThenSucceeds

Failed test found in:
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
Error:
  System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
   ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
     at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     --- End of inner exception stack trace ---
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
     at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
     at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
     at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
     at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
     at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
Raw output
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
 ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
   at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
   at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
   at IntegrationTesting.WebApi.Common.TestingClient.ToExceptionAsync(HttpResponseMessage response, JsonSerializerOptions jsonOptions) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 110
   at IntegrationTesting.WebApi.Common.TestingClient.SendAsync(HttpRequestMessage message, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 96
   at IntegrationTesting.WebApi.Common.TestingClient.PostEmptyJsonAsync(String route, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 82
   at Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec.GivenAnInsecurePostRequestByAnonymousUser..ctor(WebApiSetup`1 setup) in D:\a\saastack\saastack\src\Infrastructure.Web.Website.IntegrationTests\CSRFApiSpec.cs:line 130
   at InvokeStub_GivenAnInsecurePostRequestByAnonymousUser..ctor(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 110 in src/IntegrationTesting.WebApi.Common/TestingClient.cs

See this annotation in the file changed.

@github-actions github-actions / All Tests

Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec+GivenAnInsecurePostRequestByAnonymousUser ► WhenRequestedWithMismatchedCookieAndHeaderForAnonymous_ThenSucceeds

Failed test found in:
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
Error:
  System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
   ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
     at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     --- End of inner exception stack trace ---
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
     at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
     at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
     at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
     at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
     at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
Raw output
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
 ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
   at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
   at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
   at IntegrationTesting.WebApi.Common.TestingClient.ToExceptionAsync(HttpResponseMessage response, JsonSerializerOptions jsonOptions) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 110
   at IntegrationTesting.WebApi.Common.TestingClient.SendAsync(HttpRequestMessage message, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 96
   at IntegrationTesting.WebApi.Common.TestingClient.PostEmptyJsonAsync(String route, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 82
   at Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec.GivenAnInsecurePostRequestByAnonymousUser..ctor(WebApiSetup`1 setup) in D:\a\saastack\saastack\src\Infrastructure.Web.Website.IntegrationTests\CSRFApiSpec.cs:line 130
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)

Check failure on line 110 in src/IntegrationTesting.WebApi.Common/TestingClient.cs

See this annotation in the file changed.

@github-actions github-actions / All Tests

Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec+GivenAnInsecurePostRequestByAuthenticatedUser ► WhenRequestedWithAnonymousCSRFToken_ThenForbidden

Failed test found in:
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
Error:
  System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
   ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
     at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     --- End of inner exception stack trace ---
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
     at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
     at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
     at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
     at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
     at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
Raw output
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
 ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
   at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
   at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
   at IntegrationTesting.WebApi.Common.TestingClient.ToExceptionAsync(HttpResponseMessage response, JsonSerializerOptions jsonOptions) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 110
   at IntegrationTesting.WebApi.Common.TestingClient.SendAsync(HttpRequestMessage message, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 96
   at IntegrationTesting.WebApi.Common.TestingClient.PostEmptyJsonAsync(String route, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 82
   at Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec.GivenAnInsecurePostRequestByAuthenticatedUser..ctor(WebApiSetup`1 setup) in D:\a\saastack\saastack\src\Infrastructure.Web.Website.IntegrationTests\CSRFApiSpec.cs:line 242
   at InvokeStub_GivenAnInsecurePostRequestByAuthenticatedUser..ctor(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 110 in src/IntegrationTesting.WebApi.Common/TestingClient.cs

See this annotation in the file changed.

@github-actions github-actions / All Tests

Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec+GivenAnInsecurePostRequestByAuthenticatedUser ► WhenRequestedWithUsersCSRFToken_ThenSucceeds

Failed test found in:
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
Error:
  System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
   ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
     at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     --- End of inner exception stack trace ---
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
     at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
     at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
     at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
     at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
     at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
Raw output
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
 ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
   at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
   at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
   at IntegrationTesting.WebApi.Common.TestingClient.ToExceptionAsync(HttpResponseMessage response, JsonSerializerOptions jsonOptions) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 110
   at IntegrationTesting.WebApi.Common.TestingClient.SendAsync(HttpRequestMessage message, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 96
   at IntegrationTesting.WebApi.Common.TestingClient.PostEmptyJsonAsync(String route, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 82
   at Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec.GivenAnInsecurePostRequestByAuthenticatedUser..ctor(WebApiSetup`1 setup) in D:\a\saastack\saastack\src\Infrastructure.Web.Website.IntegrationTests\CSRFApiSpec.cs:line 242
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)

Check failure on line 110 in src/IntegrationTesting.WebApi.Common/TestingClient.cs

See this annotation in the file changed.

@github-actions github-actions / All Tests

Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec+GivenNoContext ► WhenRequestWebRoot_ThenReturnsIndexHtml

Failed test found in:
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
Error:
  System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
   ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
     at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     --- End of inner exception stack trace ---
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
     at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
     at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
     at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
     at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
     at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
Raw output
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
 ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
   at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
   at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
   at IntegrationTesting.WebApi.Common.TestingClient.ToExceptionAsync(HttpResponseMessage response, JsonSerializerOptions jsonOptions) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 110
   at IntegrationTesting.WebApi.Common.TestingClient.SendAsync(HttpRequestMessage message, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 96
   at IntegrationTesting.WebApi.Common.TestingClient.PostEmptyJsonAsync(String route, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 82
   at Infrastructure.Web.Website.IntegrationTests.CSRFApiSpec.GivenNoContext..ctor(WebApiSetup`1 setup) in D:\a\saastack\saastack\src\Infrastructure.Web.Website.IntegrationTests\CSRFApiSpec.cs:line 29
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)

Check failure on line 110 in src/IntegrationTesting.WebApi.Common/TestingClient.cs

See this annotation in the file changed.

@github-actions github-actions / All Tests

Infrastructure.Web.Website.IntegrationTests.FeatureFlagsApiSpec ► WhenGetAllFeatureFlags_ThenReturnsFlags

Failed test found in:
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
Error:
  System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
   ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
     at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     --- End of inner exception stack trace ---
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
     at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
     at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
     at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
     at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
     at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
Raw output
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
 ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
   at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
   at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
   at IntegrationTesting.WebApi.Common.TestingClient.ToExceptionAsync(HttpResponseMessage response, JsonSerializerOptions jsonOptions) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 110
   at IntegrationTesting.WebApi.Common.TestingClient.SendAsync(HttpRequestMessage message, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 96
   at IntegrationTesting.WebApi.Common.TestingClient.PostEmptyJsonAsync(String route, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 82
   at Infrastructure.Web.Website.IntegrationTests.FeatureFlagsApiSpec..ctor(WebApiSetup`1 setup) in D:\a\saastack\saastack\src\Infrastructure.Web.Website.IntegrationTests\FeatureFlagsApiSpec.cs:line 31
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)

Check failure on line 110 in src/IntegrationTesting.WebApi.Common/TestingClient.cs

See this annotation in the file changed.

@github-actions github-actions / All Tests

Infrastructure.Web.Website.IntegrationTests.FeatureFlagsApiSpec ► WhenGetFeatureFlag_ThenReturnsFlag

Failed test found in:
  src/TestResults/csharp/runneradmin_fv-az731-743_2024-04-18_11_49_59.trx
Error:
  System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
   ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
     at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     --- End of inner exception stack trace ---
     at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
     at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
     at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
     at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
     at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
     at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
     at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
     at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
Raw output
System.InvalidOperationException : 500: An unexpected error occurred, No connection could be made because the target machine actively refused it. (localhost:5001), System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5001)
 ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.ForwardMessageToBackendAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 56
   at Infrastructure.Web.Hosting.Common.Pipeline.ReverseProxyMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\ReverseProxyMiddleware.cs:line 46
   at Infrastructure.Web.Hosting.Common.Pipeline.CSRFMiddleware.InvokeAsync(HttpContext context) in D:\a\saastack\saastack\src\Infrastructure.Web.Hosting.Common\Pipeline\CSRFMiddleware.cs:line 59
   at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
   at IntegrationTesting.WebApi.Common.TestingClient.ToExceptionAsync(HttpResponseMessage response, JsonSerializerOptions jsonOptions) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 110
   at IntegrationTesting.WebApi.Common.TestingClient.SendAsync(HttpRequestMessage message, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 96
   at IntegrationTesting.WebApi.Common.TestingClient.PostEmptyJsonAsync(String route, Action`2 requestFilter) in D:\a\saastack\saastack\src\IntegrationTesting.WebApi.Common\TestingClient.cs:line 82
   at Infrastructure.Web.Website.IntegrationTests.FeatureFlagsApiSpec..ctor(WebApiSetup`1 setup) in D:\a\saastack\saastack\src\Infrastructure.Web.Website.IntegrationTests\FeatureFlagsApiSpec.cs:line 31
   at InvokeStub_FeatureFlagsApiSpec..ctor(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)