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 - v0.46.0-pre.f524445 #299

Merged
merged 12 commits into from
Oct 10, 2024

Merge dev changes to test (#290)

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

Merge test changes to main - v0.46.0-pre.f524445 #299

Merge dev changes to test (#290)
58658cb
Select commit
Loading
Failed to load commit list.
GitHub Actions / WebApi Tests succeeded Oct 10, 2024 in 1s

43 passed, 0 failed and 0 skipped

Tests passed successfully

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

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

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

✅ 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