Skip to content

Commit

Permalink
Fix property name in OnEnabledLoggingExportConditionTests
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye authored and mhalbritter committed Dec 2, 2024
1 parent 32b3995 commit 1f17e01
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void shouldMatchIfExporterPropertyIsTrue() {
void exporterPropertyShouldOverrideGlobalPropertyIfTrue() {
OnEnabledLoggingExportCondition condition = new OnEnabledLoggingExportCondition();
ConditionOutcome outcome = condition.getMatchOutcome(mockConditionContext(
Map.of("management.logging.enabled", "false", "management.otlp.logging.export.enabled", "true")),
Map.of("management.logging.export.enabled", "false", "management.otlp.logging.export.enabled", "true")),
mockMetadata("otlp"));
assertThat(outcome.isMatch()).isTrue();
assertThat(outcome.getMessage())
Expand All @@ -101,7 +101,7 @@ void exporterPropertyShouldOverrideGlobalPropertyIfTrue() {
void exporterPropertyShouldOverrideGlobalPropertyIfFalse() {
OnEnabledLoggingExportCondition condition = new OnEnabledLoggingExportCondition();
ConditionOutcome outcome = condition.getMatchOutcome(mockConditionContext(
Map.of("management.logging.enabled", "true", "management.otlp.logging.export.enabled", "false")),
Map.of("management.logging.export.enabled", "true", "management.otlp.logging.export.enabled", "false")),
mockMetadata("otlp"));
assertThat(outcome.isMatch()).isFalse();
assertThat(outcome.getMessage())
Expand Down

0 comments on commit 1f17e01

Please sign in to comment.