nuget in /src/backend for OpenTelemetry.Exporter.Console, OpenTelemetry.Exporter.OpenTelemetryProtocol, OpenTelemetry.Exporter.Zipkin, OpenTelemetry.Extensions.Hosting - Update #916493387 #578
GitHub Actions / WebApi Tests
succeeded
Nov 13, 2024 in 0s
42 passed, 1 failed and 0 skipped
❌ tests/backend/WebApi.Tests/TestResults/test-results.trx
43 tests were completed in 35s with 42 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
WebApi.Tests.Attributes.DefineConstantsAttributeTests | 2✅ | 15ms | ||
WebApi.Tests.Controllers.BloggingControllerTests | 10✅ | 204ms | ||
WebApi.Tests.Controllers.SendMessageControllerTests | 1✅ | 5ms | ||
WebApi.Tests.Controllers.ServiceControllerTests | 3✅ | 15ms | ||
WebApi.Tests.Controllers.WeatherForecastControllerTests | 3✅ | 1❌ | 39ms | |
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✅ | 365ms |
✅ 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
Assert.That(weatherForecast.TemperatureC, Is.GreaterThan(-19))
Expected: greater than -19
But was: -20
✅ 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
Annotations
Check failure on line 69 in tests/backend/WebApi.Tests/Controllers/WeatherForecastControllerTests.cs
github-actions / WebApi Tests
WebApi.Tests.Controllers.WeatherForecastControllerTests ► Get_ReturnsWeatherForecastsWithCorrectProperties
Failed test found in:
tests/backend/WebApi.Tests/TestResults/test-results.trx
Error:
Assert.That(weatherForecast.TemperatureC, Is.GreaterThan(-19))
Expected: greater than -19
But was: -20
Raw output
Assert.That(weatherForecast.TemperatureC, Is.GreaterThan(-19))
Expected: greater than -19
But was: -20
at WebApi.Tests.Controllers.WeatherForecastControllerTests.Get_ReturnsWeatherForecastsWithCorrectProperties() in /home/runner/work/test/test/tests/backend/WebApi.Tests/Controllers/WeatherForecastControllerTests.cs:line 69
at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult()
at NUnit.Framework.Internal.AsyncToSyncAdapter.Await[TResult](Func`1 invoke)
at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.<>c__DisplayClass1_0.<Execute>b__0()
at NUnit.Framework.Internal.Commands.DelegatingTestCommand.RunTestMethodInThreadAbortSafeZone(TestExecutionContext context, Action action)
1) at WebApi.Tests.Controllers.WeatherForecastControllerTests.Get_ReturnsWeatherForecastsWithCorrectProperties() in /home/runner/work/test/test/tests/backend/WebApi.Tests/Controllers/WeatherForecastControllerTests.cs:line 69
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at WebApi.Tests.Controllers.WeatherForecastControllerTests.Get_ReturnsWeatherForecastsWithCorrectProperties()
Loading