Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge test changes to main #386

Merged
merged 15 commits into from
Nov 21, 2024

TEST-0010 Update backend packages

7d52133
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Merge test changes to main #386

TEST-0010 Update backend packages
7d52133
Select commit
Loading
Failed to load commit list.
GitHub Actions / WebApi Tests succeeded Nov 21, 2024 in 0s

43 passed, 0 failed and 0 skipped

Tests passed successfully

✅ tests/backend/WebApi.Tests/TestResults/test-results.trx

43 tests were completed in 33s with 43 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
WebApi.Tests.Attributes.DefineConstantsAttributeTests 2✅ 13ms
WebApi.Tests.Controllers.BloggingControllerTests 10✅ 171ms
WebApi.Tests.Controllers.SendMessageControllerTests 1✅ 5ms
WebApi.Tests.Controllers.ServiceControllerTests 3✅ 14ms
WebApi.Tests.Controllers.WeatherForecastControllerTests 4✅ 13ms
WebApi.Tests.Database.BloggingContextTests 7✅ 1s
WebApi.Tests.Entities.BlogDtoTests 4✅ 2ms
WebApi.Tests.Entities.PostDtoTests 5✅ 1ms
WebApi.Tests.Entities.VersionInformationTests 4✅ 2ms
WebApi.Tests.Messaging.RabbitMqTests 2✅ 1s
WebApi.Tests.ProgramTests 1✅ 317ms

✅ WebApi.Tests.Attributes.DefineConstantsAttributeTests

✅ AttributeInstantiation_WithConstantsString_IsNotNull
✅ ConstantsProperty_WithValidConstantsString_ParsesCorrectly

✅ WebApi.Tests.Controllers.BloggingControllerTests

✅ GetBlog_InvalidId_ReturnsNotFound
✅ GetBlog_ValidId_ReturnsBlog
✅ GetBlogs_ReturnsListOfBlogs
✅ GetPost_InvalidId_ReturnsNotFound
✅ GetPost_ValidId_ReturnsPost
✅ GetPosts_ReturnsListOfPosts
✅ PostBlog_InvalidId_ReturnsNotFound
✅ PostBlog_NoId_StoresBlog
✅ PostPost_InvalidId_ReturnsNotFound
✅ PostPost_NoId_StoresPost

✅ WebApi.Tests.Controllers.SendMessageControllerTests

✅ Get_ReturnsOkResult

✅ WebApi.Tests.Controllers.ServiceControllerTests

✅ Ping_ReturnsOkResult
✅ Version_ReturnsOkResult
✅ Version_ReturnsVersionWithCorrectProperties

✅ WebApi.Tests.Controllers.WeatherForecastControllerTests

✅ Get_LogsInformationMessage
✅ Get_ReturnsFiveWeatherForecasts
✅ Get_ReturnsOkResult
✅ Get_ReturnsWeatherForecastsWithCorrectProperties

✅ WebApi.Tests.Database.BloggingContextTests

✅ BloggingContextMigrate_CreatesTablesAndCanStoreData
✅ BloggingRepository_CanAddBlog
✅ BloggingRepository_CanAddPost
✅ BloggingRepository_CanUpdateBlogs
✅ BloggingRepository_CanUpdatePosts
✅ BloggingRepository_ReturnsSeededBlogsAndPosts
✅ ConnectionState_ReturnsOpen

✅ WebApi.Tests.Entities.BlogDtoTests

✅ Validate_WhenTitleIsEmpty_ReturnsValidationError
✅ Validate_WhenTitleIsTooLong_ReturnsValidationError
✅ Validate_WhenUrlIsEmpty_ReturnsValidationError
✅ Validate_WhenUrlIsTooLong_ReturnsValidationError

✅ WebApi.Tests.Entities.PostDtoTests

✅ Validate_WhenBlogIdIsZero_ReturnsValidationError
✅ Validate_WhenContentIsEmpty_ReturnsValidationError
✅ Validate_WhenContentIsTooLong_ReturnsValidationError
✅ Validate_WhenTitleIsEmpty_ReturnsValidationError
✅ Validate_WhenTitleIsTooLong_ReturnsValidationError

✅ WebApi.Tests.Entities.VersionInformationTests

✅ ConstantsProperty_ExtractsConstantsCorrectly
✅ EnvironmentNameProperty_FallbacksToUnknownWhenNoEnvironmentVariablesSet
✅ InformationalVersionProperty_ExtractsInformationalVersionCorrectly
✅ VersionProperty_ExtractsVersionCorrectly

✅ WebApi.Tests.Messaging.RabbitMqTests

✅ IsOpen_ReturnsTrue
✅ MessageSender_SendsMessage

✅ WebApi.Tests.ProgramTests

✅ GetSwaggerIndex_ReturnsOkResult