fix: fix ci failed for tests #372
Merged
Annotations
2 errors and 30 warnings
|
Build and Test Passenger Microservice
Failed tests were found and 'fail-on-error' option is set to true
|
|
Build and Test Passenger Microservice:
src/Services/Passenger/tests/IntegrationTest/Passenger/Features/CompleteRegisterPassengerTests.cs#L24
Failed test found in:
src/Services/Passenger/tests/IntegrationTest/TestResults/test-results.trx
Error:
Expected (WaitUntilPassengerCreatedAsync(userCreated.PassportNumber)) to be True, but found False.
|
|
Build and Test Passenger Microservice:
src/Services/Passenger/src/Passenger/Passengers/Models/Passenger.cs#L13
Property 'PassengerType' contains the name of its containing type 'Passenger' (https://github.com/dennisdoomen/CSharpGuidelines/blob/5.7.0/_rules/1710.md)
|
|
Build and Test Passenger Microservice:
src/Services/Passenger/src/Passenger/Data/Migrations/20230611213031_initial.cs#L9
Element 'initial' should begin with an uppercase letter (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1300.md)
|
|
Build and Test Passenger Microservice:
src/Services/Passenger/src/Passenger/Passengers/Features/CompletingRegisterPassenger/V1/CompleteRegisterPassenger.cs#L42
'OpenApiEndpointConventionBuilderExtensions.WithOpenApi<TBuilder>(TBuilder)' is obsolete: 'WithOpenApi is deprecated and will be removed in a future release. For more information, visit https://aka.ms/aspnet/deprecate/002.' (https://aka.ms/aspnet/deprecate/002)
|
|
Build and Test Passenger Microservice:
src/Services/Passenger/src/Passenger/GrpcServer/Services/PassengerGrpcServices.cs#L22
Possible null reference return.
|
|
Build and Test Passenger Microservice:
src/Services/Passenger/src/Passenger/Passengers/Features/GettingPassengerById/V1/GetPassengerById.cs#L30
'OpenApiEndpointConventionBuilderExtensions.WithOpenApi<TBuilder>(TBuilder)' is obsolete: 'WithOpenApi is deprecated and will be removed in a future release. For more information, visit https://aka.ms/aspnet/deprecate/002.' (https://aka.ms/aspnet/deprecate/002)
|
|
Build and Test Passenger Microservice:
src/Services/Passenger/src/Passenger/Passengers/Features/PassengerMappings.cs#L26
Dereference of a possibly null reference.
|
|
Build and Test Passenger Microservice:
src/Services/Passenger/src/Passenger/Passengers/Exceptions/PassengerNotFoundException.cs#L7
Cannot convert null literal to non-nullable reference type.
|
|
Build and Test Passenger Microservice:
src/Services/Passenger/src/Passenger/Passengers/Exceptions/PassengerAlreadyExist.cs#L7
Cannot convert null literal to non-nullable reference type.
|
|
Build and Test Passenger Microservice:
src/Services/Passenger/src/Passenger/Data/Migrations/20230611213031_initial.Designer.cs#L16
The type name 'initial' only contains lower-cased ascii characters. Such names may become reserved for the language.
|
|
Build and Test Passenger Microservice:
src/Services/Passenger/src/Passenger/Data/Migrations/20230611213031_initial.cs#L9
The type name 'initial' only contains lower-cased ascii characters. Such names may become reserved for the language.
|
|
Build and Test Identity Microservice:
src/Services/Identity/src/Identity/Data/IdentityContext.cs#L119
Possible null reference argument for parameter 'logger' in 'void LoggerExtensions.LogError(ILogger logger, string? message, params object?[] args)'.
|
|
Build and Test Identity Microservice:
src/Services/Identity/src/Identity/Data/IdentityContext.cs#L78
Cannot convert null literal to non-nullable reference type.
|
|
Build and Test Identity Microservice:
src/Services/Identity/src/Identity/Data/IdentityContext.cs#L65
Cannot convert null literal to non-nullable reference type.
|
|
Build and Test Identity Microservice:
src/Services/Identity/src/Identity/Data/IdentityContext.cs#L27
Non-nullable field '_currentTransaction' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
|
|
Build and Test Identity Microservice:
src/Services/Identity/src/Identity/Identity/Features/RegisteringNewUser/V1/RegisterNewUser.cs#L41
'OpenApiEndpointConventionBuilderExtensions.WithOpenApi<TBuilder>(TBuilder)' is obsolete: 'WithOpenApi is deprecated and will be removed in a future release. For more information, visit https://aka.ms/aspnet/deprecate/002.' (https://aka.ms/aspnet/deprecate/002)
|
|
Build and Test Identity Microservice:
src/Services/Identity/src/Identity/Configurations/UserValidator.cs#L43
Possible null reference argument for parameter 'value' in 'Claim.Claim(string type, string value)'.
|
|
Build and Test Identity Microservice:
src/Services/Identity/src/Identity/Configurations/UserValidator.cs#L27
Possible null reference argument for parameter 'user' in 'Task<SignInResult> SignInManager<User>.PasswordSignInAsync(User user, string password, bool isPersistent, bool lockoutOnFailure)'.
|
|
Build and Test Identity Microservice:
src/Services/Identity/src/Identity/Configurations/AuthOptions.cs#L5
Non-nullable property 'IssuerUri' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
|
|
Build and Test Identity Microservice:
src/Services/Identity/src/Identity/Data/Migrations/20230331193410_initial.Designer.cs#L16
The type name 'initial' only contains lower-cased ascii characters. Such names may become reserved for the language.
|
|
Build and Test Identity Microservice:
src/Services/Identity/src/Identity/Data/Migrations/20230331193410_initial.cs#L10
The type name 'initial' only contains lower-cased ascii characters. Such names may become reserved for the language.
|
|
Build and Test Flight Microservice:
src/BuildingBlocks/Core/EventDispatcher.cs#L70
Cannot convert null literal to non-nullable reference type.
|
|
Build and Test Flight Microservice:
src/BuildingBlocks/Core/EventDispatcher.cs#L21
Cannot convert null literal to non-nullable reference type.
|
|
Build and Test Flight Microservice:
src/BuildingBlocks/OpenTelemetryCollector/DiagnosticsProvider/CustomeDiagnosticsProvider.cs#L89
Nullability of reference types in return type of 'Task<TResult?> CustomeDiagnosticsProvider.ExecuteActivityAsync<TResult>(CreateActivityInfo createActivityInfo, Func<Activity?, CancellationToken, Task<TResult>> action, CancellationToken cancellationToken = default(CancellationToken))' doesn't match implicitly implemented member 'Task<TResult> IDiagnosticsProvider.ExecuteActivityAsync<TResult>(CreateActivityInfo createActivityInfo, Func<Activity?, CancellationToken, Task<TResult>> action, CancellationToken cancellationToken = default(CancellationToken))'.
|
|
Build and Test Flight Microservice:
src/BuildingBlocks/TestBase/TestBase.cs#L707
Cannot convert null literal to non-nullable reference type.
|
|
Build and Test Flight Microservice:
src/BuildingBlocks/TestBase/TestBase.cs#L714
'TestBase<TEntryPoint, TWContext, TRContext>.Fixture' hides inherited member 'TestFixtureCore<TEntryPoint>.Fixture'. Use the new keyword if hiding was intended.
|
|
Build and Test Flight Microservice:
src/BuildingBlocks/TestBase/TestBase.cs#L689
Cannot convert null literal to non-nullable reference type.
|
|
Build and Test Flight Microservice:
src/BuildingBlocks/TestBase/TestBase.cs#L696
'TestWriteBase<TEntryPoint, TWContext>.Fixture' hides inherited member 'TestFixtureCore<TEntryPoint>.Fixture'. Use the new keyword if hiding was intended.
|
|
Build and Test Flight Microservice:
src/BuildingBlocks/TestBase/TestBase.cs#L672
Cannot convert null literal to non-nullable reference type.
|
|
Build and Test Flight Microservice:
src/BuildingBlocks/TestBase/TestBase.cs#L679
'TestReadBase<TEntryPoint, TRContext>.Fixture' hides inherited member 'TestFixtureCore<TEntryPoint>.Fixture'. Use the new keyword if hiding was intended.
|
|
Build and Test Flight Microservice:
src/BuildingBlocks/TestBase/TestBase.cs#L526
Cannot convert null literal to non-nullable reference type.
|
Loading