Skip to content

fix unit test to inject JwtCreator #15

fix unit test to inject JwtCreator

fix unit test to inject JwtCreator #15

Triggered via push December 7, 2024 21:57
Status Failure
Total duration 51s
Artifacts

ci.yml

on: push
python-unit-tests
6s
python-unit-tests
changed-files
8s
changed-files
Matrix: run-service-unit-tests
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 17 warnings
run-service-unit-tests (UserService): UserService/UserService.UnitTests/UserServiceTests.cs#L21
There is no argument given that corresponds to the required parameter 'jwtSettings' of 'JwtCreator.JwtCreator(IOptions<JwtSettings>)'
run-service-unit-tests (UserService): UserService/UserService.UnitTests/UserServiceTests.cs#L21
There is no argument given that corresponds to the required parameter 'jwtSettings' of 'JwtCreator.JwtCreator(IOptions<JwtSettings>)'
run-service-unit-tests (UserService)
Process completed with exit code 1.
python-unit-tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
python-unit-tests
The `python-version` input is not set. The version of Python currently in `PATH` will be used.
python-unit-tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
changed-files
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
changed-files
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
changed-files
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
run-service-unit-tests (UserService)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
run-service-unit-tests (UserService): UserService/UserService.Domain/Entities/User.cs#L8
Non-nullable property 'Username' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
run-service-unit-tests (UserService): UserService/UserService.Domain/Entities/User.cs#L13
Non-nullable property 'Password' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
run-service-unit-tests (UserService): UserService/UserService.Application/Results/UserResult.cs#L16
Non-nullable property 'Username' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
run-service-unit-tests (UserService): UserService/UserService.Infrastructure/Authentication/JwtSettings.cs#L12
Non-nullable property 'Key' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
run-service-unit-tests (UserService): UserService/UserService.Infrastructure/Authentication/JwtSettings.cs#L14
Non-nullable property 'Issuer' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
run-service-unit-tests (UserService): UserService/UserService.Domain/Entities/User.cs#L8
Non-nullable property 'Username' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
run-service-unit-tests (UserService): UserService/UserService.Domain/Entities/User.cs#L13
Non-nullable property 'Password' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
run-service-unit-tests (UserService): UserService/UserService.Application/Results/UserResult.cs#L16
Non-nullable property 'Username' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
run-service-unit-tests (UserService): UserService/UserService.Infrastructure/Authentication/JwtSettings.cs#L12
Non-nullable property 'Key' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
run-service-unit-tests (UserService): UserService/UserService.Infrastructure/Authentication/JwtSettings.cs#L14
Non-nullable property 'Issuer' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.