Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Update to Serilog.Sinks.PeriodicBatching v4.0 and break dependency on… #399

Update to Serilog.Sinks.PeriodicBatching v4.0 and break dependency on…

Update to Serilog.Sinks.PeriodicBatching v4.0 and break dependency on… #399

GitHub Actions / Test Results (Linux) succeeded Mar 12, 2024 in 0s

81 passed, 0 failed and 5 skipped

Tests passed successfully

Report Passed Failed Skipped Time
test/Serilog.Sinks.Elasticsearch.IntegrationTests/TestResults/TestResults-Linux.trx 5s
test/Serilog.Sinks.Elasticsearch.Tests/TestResults/TestResults-Linux.trx 81✅ 5⚪ 5s

✅ test/Serilog.Sinks.Elasticsearch.IntegrationTests/TestResults/TestResults-Linux.trx

No tests found

✅ test/Serilog.Sinks.Elasticsearch.Tests/TestResults/TestResults-Linux.trx

86 tests were completed in 5s with 81 passed, 0 failed and 5 skipped.

Test suite Passed Failed Skipped Time
Serilog.Sinks.Elasticsearch.Tests.BulkActionTests 5⚪ 5ms
Serilog.Sinks.Elasticsearch.Tests.CustomIndexTypeNameTests 2✅ 22ms
Serilog.Sinks.Elasticsearch.Tests.Discrepancies.ElasticsearchDefaultSerializerTests 1✅ 17ms
Serilog.Sinks.Elasticsearch.Tests.Discrepancies.JsonNetSerializerTests 1✅ 18ms
Serilog.Sinks.Elasticsearch.Tests.Discrepancies.NoSerializerTests 1✅ 52ms
Serilog.Sinks.Elasticsearch.Tests.ElasticsearchJsonFormatterTests 13✅ 23ms
Serilog.Sinks.Elasticsearch.Tests.ElasticsearchPayloadReaderTests 6✅ 134ms
Serilog.Sinks.Elasticsearch.Tests.ElasticsearchSinkTests 18✅ 9ms
Serilog.Sinks.Elasticsearch.Tests.ExceptionAsJsonObjectFormatterTests 3✅ 40ms
Serilog.Sinks.Elasticsearch.Tests.FileSetTests 6✅ 88ms
Serilog.Sinks.Elasticsearch.Tests.IndexDeciderTests 1✅ 15ms
Serilog.Sinks.Elasticsearch.Tests.InlineFieldsTests 1✅ 54ms
Serilog.Sinks.Elasticsearch.Tests.PropertyNameTests 1✅ 156ms
Serilog.Sinks.Elasticsearch.Tests.RealExceptionNoSerializerTests 1✅ 255ms
Serilog.Sinks.Elasticsearch.Tests.RealExceptionTests 1✅ 558ms
Serilog.Sinks.Elasticsearch.Tests.Templating.DiscoverVersionHandlesUnavailableServerTests 2✅ 131ms
Serilog.Sinks.Elasticsearch.Tests.Templating.DiscoverVersionTests 1✅ 179ms
Serilog.Sinks.Elasticsearch.Tests.Templating.DoNotRegisterIfTemplateExistsTests 1✅ 330ms
Serilog.Sinks.Elasticsearch.Tests.Templating.OverwriteTemplateTests 1✅ 20ms
Serilog.Sinks.Elasticsearch.Tests.Templating.RegisterCustomTemplateTests 1✅ 12ms
Serilog.Sinks.Elasticsearch.Tests.Templating.SendsTemplateHandlesUnavailableServerTests 2✅ 18ms
Serilog.Sinks.Elasticsearch.Tests.Templating.SendsTemplateTests 2✅ 56ms
Serilog.Sinks.Elasticsearch.Tests.Templating.Sendsv6TemplateTests 2✅ 82ms
Serilog.Sinks.Elasticsearch.Tests.Templating.Sendsv7TemplateTests 2✅ 40ms
Serilog.Sinks.Elasticsearch.Tests.Templating.Sendsv8TemplateTests 2✅ 63ms
Serilog.Sinks.Elasticsearch.Tests.Templating.SetElasticsearchSinkOptions 1✅ 140ms
Serilog.Sinks.Elasticsearch.Tests.Templating.SetFiveReplicasInTemplateTests 2✅ 440ms
Serilog.Sinks.Elasticsearch.Tests.Templating.SetTwoShardsInTemplateTests 2✅ 45ms
Serilog.Sinks.Elasticsearch.Tests.Templating.SetZeroReplicasInTemplateTests 2✅ 55ms
Serilog.Sinks.Elasticsearch.Tests.Templating.TemplateMatchTests 2✅ 283ms

✅ Serilog.Sinks.Elasticsearch.Tests.BulkActionTests

⚪ BulkActionDataStreams
⚪ BulkActionV7OverrideTypeName
⚪ DefaultBulkActionV7
⚪ DefaultBulkActionV8
⚪ PipelineAction

✅ Serilog.Sinks.Elasticsearch.Tests.CustomIndexTypeNameTests

✅ CustomIndex_And_TypeName_EndsUpInTheOutput
✅ UpperCasedIndex_And_TypeName_EndsUpInTheOutput

✅ Serilog.Sinks.Elasticsearch.Tests.Discrepancies.ElasticsearchDefaultSerializerTests

✅ Should_SerializeToExpandedExceptionObjectWhenExceptionIsSet

✅ Serilog.Sinks.Elasticsearch.Tests.Discrepancies.JsonNetSerializerTests

✅ Should_SerializeToExpandedExceptionObjectWhenExceptionIsSet

✅ Serilog.Sinks.Elasticsearch.Tests.Discrepancies.NoSerializerTests

✅ Should_SerializeToExpandedExceptionObjectWhenExceptionIsSet

✅ Serilog.Sinks.Elasticsearch.Tests.ElasticsearchJsonFormatterTests

✅ DefaultJsonFormater_Should_enclose_object
✅ DefaultJsonFormater_Should_Render_default_properties(propertyToCheck: "@timestamp")
✅ DefaultJsonFormater_Should_Render_default_properties(propertyToCheck: "level")
✅ DefaultJsonFormater_Should_Render_default_properties(propertyToCheck: "message")
✅ DefaultJsonFormater_Should_Render_default_properties(propertyToCheck: "messageTemplate")
✅ DefaultJsonFormater_Should_Render_Exceptions
✅ DefaultJsonFormater_Should_Render_Exceptions_With_StackTrace_As_Array(exception: System.Exception: Not thrown exception message)
✅ DefaultJsonFormater_Should_Render_Exceptions_With_StackTrace_As_Array(exception: System.Exception: Test exception message
 ---> System.Exception: Test inner exception message
   --- End of inner exception stack trace ---
   at Serilog.Sinks.Elasticsearch.Tests.ElasticsearchJsonFormatterTests.CreateThrownExceptionWithNotThrownInner() in /_/test/Serilog.Sinks.Elasticsearch.Tests/ElasticsearchJsonFormatterTests.cs:line 62)
✅ DefaultJsonFormater_Should_Render_Exceptions_With_StackTrace_As_Array(exception: System.Exception: Test exception message
 ---> System.Exception: Test inner exception message
   at Serilog.Sinks.Elasticsearch.Tests.ElasticsearchJsonFormatterTests.ThrowInnerException() in /_/test/Serilog.Sinks.Elasticsearch.Tests/ElasticsearchJsonFormatterTests.cs:line 54
   at Serilog.Sinks.Elasticsearch.Tests.ElasticsearchJsonFormatterTests.ThrowException() in /_/test/Serilog.Sinks.Elasticsearch.Tests/ElasticsearchJsonFormatterTests.cs:line 44
   --- End of inner exception stack trace ---
   at Serilog.Sinks.Elasticsearch.Tests.ElasticsearchJsonFormatterTests.ThrowException() in /_/test/Serilog.Sinks.Elasticsearch.Tests/ElasticsearchJsonFormatterTests.cs:line 48
   at Serilog.Sinks.Elasticsearch.Tests.ElasticsearchJsonFormatterTests.CreateThrownException() in /_/test/Serilog.Sinks.Elasticsearch.Tests/ElasticsearchJsonFormatterTests.cs:line 31)
✅ When_disabling_renderMessage_Should_not_render_message_but_others
✅ When_disabling_renderMessageTemplate_Should_not_render_message_template_but_others
✅ When_omitEnclosingObject_should_not_enclose_object
✅ When_provide_closing_delimiter_should_use_it

✅ Serilog.Sinks.Elasticsearch.Tests.ElasticsearchPayloadReaderTests

✅ ElasticsearchPayloadReader_CannotUseRollingIntervalLessFrequentThanDay(rollingInterval: Infinite)
✅ ElasticsearchPayloadReader_CannotUseRollingIntervalLessFrequentThanDay(rollingInterval: Month)
✅ ElasticsearchPayloadReader_CannotUseRollingIntervalLessFrequentThanDay(rollingInterval: Year)
✅ ReadPayload_ShouldReadSpecifiedTypesOfRollingFile(rollingInterval: Day)
✅ ReadPayload_ShouldReadSpecifiedTypesOfRollingFile(rollingInterval: Hour)
✅ ReadPayload_ShouldReadSpecifiedTypesOfRollingFile(rollingInterval: Minute)

✅ Serilog.Sinks.Elasticsearch.Tests.ElasticsearchSinkTests

✅ CreateLogger_DetectElasticsearchVersionSetToTrue_SetsTypeName(elasticVersion: "6.8.1", configuredTypeName: "my-logevent", expectedTypeName: "my-logevent")
✅ CreateLogger_DetectElasticsearchVersionSetToTrue_SetsTypeName(elasticVersion: "6.8.1", configuredTypeName: null, expectedTypeName: "logevent")
✅ CreateLogger_DetectElasticsearchVersionSetToTrue_SetsTypeName(elasticVersion: "7.17.5", configuredTypeName: "my-logevent", expectedTypeName: null)
✅ CreateLogger_DetectElasticsearchVersionSetToTrue_SetsTypeName(elasticVersion: "7.17.5", configuredTypeName: null, expectedTypeName: null)
✅ CreateLogger_DetectElasticsearchVersionSetToTrue_SetsTypeName(elasticVersion: "8.0.0", configuredTypeName: "my-logevent", expectedTypeName: null)
✅ CreateLogger_DetectElasticsearchVersionSetToTrue_SetsTypeName(elasticVersion: "8.0.0", configuredTypeName: null, expectedTypeName: null)
✅ Ctor_DetectElasticsearchVersionSetToFalseAssumesVersion7_SetsTypeNameToNull(elasticVersion: "6.8.1", configuredTypeName: "my-logevent", expectedTypeName: null)
✅ Ctor_DetectElasticsearchVersionSetToFalseAssumesVersion7_SetsTypeNameToNull(elasticVersion: "6.8.1", configuredTypeName: null, expectedTypeName: null)
✅ Ctor_DetectElasticsearchVersionSetToFalseAssumesVersion7_SetsTypeNameToNull(elasticVersion: "7.17.5", configuredTypeName: "my-logevent", expectedTypeName: null)
✅ Ctor_DetectElasticsearchVersionSetToFalseAssumesVersion7_SetsTypeNameToNull(elasticVersion: "7.17.5", configuredTypeName: null, expectedTypeName: null)
✅ Ctor_DetectElasticsearchVersionSetToFalseAssumesVersion7_SetsTypeNameToNull(elasticVersion: "8.0.0", configuredTypeName: "my-logevent", expectedTypeName: null)
✅ Ctor_DetectElasticsearchVersionSetToFalseAssumesVersion7_SetsTypeNameToNull(elasticVersion: "8.0.0", configuredTypeName: null, expectedTypeName: null)
✅ Ctor_DetectElasticsearchVersionSetToTrue_SetsTypeName(elasticVersion: "6.8.1", configuredTypeName: "my-logevent", expectedTypeName: "my-logevent")
✅ Ctor_DetectElasticsearchVersionSetToTrue_SetsTypeName(elasticVersion: "6.8.1", configuredTypeName: null, expectedTypeName: "logevent")
✅ Ctor_DetectElasticsearchVersionSetToTrue_SetsTypeName(elasticVersion: "7.17.5", configuredTypeName: "my-logevent", expectedTypeName: null)
✅ Ctor_DetectElasticsearchVersionSetToTrue_SetsTypeName(elasticVersion: "7.17.5", configuredTypeName: null, expectedTypeName: null)
✅ Ctor_DetectElasticsearchVersionSetToTrue_SetsTypeName(elasticVersion: "8.0.0", configuredTypeName: "my-logevent", expectedTypeName: null)
✅ Ctor_DetectElasticsearchVersionSetToTrue_SetsTypeName(elasticVersion: "8.0.0", configuredTypeName: null, expectedTypeName: null)

✅ Serilog.Sinks.Elasticsearch.Tests.ExceptionAsJsonObjectFormatterTests

✅ WhenLogging_ExceptionWithInner_ExceptionShouldIncludeInnerExceptions
✅ WhenLogging_WithException_ExceptionShouldBeRenderedInExceptionField
✅ WhenLoggingAnEvent_OutputsValidJson

✅ Serilog.Sinks.Elasticsearch.Tests.FileSetTests

✅ GetBufferFiles_ReturnsOnlySpecifiedTypeOfRollingFile(rollingInterval: Day)
✅ GetBufferFiles_ReturnsOnlySpecifiedTypeOfRollingFile(rollingInterval: Hour)
✅ GetBufferFiles_ReturnsOnlySpecifiedTypeOfRollingFile(rollingInterval: Infinite)
✅ GetBufferFiles_ReturnsOnlySpecifiedTypeOfRollingFile(rollingInterval: Minute)
✅ GetBufferFiles_ReturnsOnlySpecifiedTypeOfRollingFile(rollingInterval: Month)
✅ GetBufferFiles_ReturnsOnlySpecifiedTypeOfRollingFile(rollingInterval: Year)

✅ Serilog.Sinks.Elasticsearch.Tests.IndexDeciderTests

✅ IndexDecider_EndsUpInTheOutput

✅ Serilog.Sinks.Elasticsearch.Tests.InlineFieldsTests

✅ UsesCustomPropertyNames

✅ Serilog.Sinks.Elasticsearch.Tests.PropertyNameTests

✅ UsesCustomPropertyNames

✅ Serilog.Sinks.Elasticsearch.Tests.RealExceptionNoSerializerTests

✅ WhenPassingASerializer_ShouldExpandToJson

✅ Serilog.Sinks.Elasticsearch.Tests.RealExceptionTests

✅ WhenPassingASerializer_ShouldExpandToJson

✅ Serilog.Sinks.Elasticsearch.Tests.Templating.DiscoverVersionHandlesUnavailableServerTests

✅ Should_not_crash_when_server_is_unavaiable
✅ Should_write_error_to_self_log

✅ Serilog.Sinks.Elasticsearch.Tests.Templating.DiscoverVersionTests

✅ TemplatePutToCorrectUrl

✅ Serilog.Sinks.Elasticsearch.Tests.Templating.DoNotRegisterIfTemplateExistsTests

✅ WhenTemplateExists_ShouldNotSendAPutTemplate

✅ Serilog.Sinks.Elasticsearch.Tests.Templating.OverwriteTemplateTests

✅ ShouldOverwriteTemplate

✅ Serilog.Sinks.Elasticsearch.Tests.Templating.RegisterCustomTemplateTests

✅ ShouldRegisterCustomTemplate

✅ Serilog.Sinks.Elasticsearch.Tests.Templating.SendsTemplateHandlesUnavailableServerTests

✅ Should_not_crash_when_server_is_unavailable
✅ Should_write_error_to_self_log

✅ Serilog.Sinks.Elasticsearch.Tests.Templating.SendsTemplateTests

✅ ShouldRegisterTheVersion7TemplateOnRegistrationWhenDetectElasticsearchVersionFalse
✅ TemplatePutToCorrectUrl

✅ Serilog.Sinks.Elasticsearch.Tests.Templating.Sendsv6TemplateTests

✅ ShouldRegisterTheVersion6TemplateOnRegistrationWhenDetectedElasticsearchVersionIsV6
✅ TemplatePutToCorrectUrl

✅ Serilog.Sinks.Elasticsearch.Tests.Templating.Sendsv7TemplateTests

✅ ShouldRegisterTheVersion7TemplateOnRegistrationWhenDetectedElasticsearchVersionIsV7
✅ TemplatePutToCorrectUrl

✅ Serilog.Sinks.Elasticsearch.Tests.Templating.Sendsv8TemplateTests

✅ ShouldRegisterTheVersion6TemplateOnRegistrationWhenDetectedElasticsearchVersionIsV8
✅ TemplatePutToCorrectUrl

✅ Serilog.Sinks.Elasticsearch.Tests.Templating.SetElasticsearchSinkOptions

✅ WhenCreatingOptions_NumberOfShardsInjected_NumberOfShardsAreSet

✅ Serilog.Sinks.Elasticsearch.Tests.Templating.SetFiveReplicasInTemplateTests

✅ ShouldRegisterTheCorrectTemplateOnRegistration
✅ TemplatePutToCorrectUrl

✅ Serilog.Sinks.Elasticsearch.Tests.Templating.SetTwoShardsInTemplateTests

✅ ShouldRegisterTheCorrectTemplateOnRegistration
✅ TemplatePutToCorrectUrl

✅ Serilog.Sinks.Elasticsearch.Tests.Templating.SetZeroReplicasInTemplateTests

✅ ShouldRegisterTheCorrectTemplateOnRegistration
✅ TemplatePutToCorrectUrl

✅ Serilog.Sinks.Elasticsearch.Tests.Templating.TemplateMatchTests

✅ TemplateMatchShouldReflectConfiguredIndexFormat
✅ TemplatePutToCorrectUrl