Skip to content

Commit 1fa0972

Browse files
authored
Ensure we don't report output status in tests where it's irrelevant (#11257)
In some tests, we use a nonexistent ES host to avoid needing to use a remote. Output health reporting actually works for beats receivers, so this can lead to flakiness due to components reporting a degraded state. Disable the status reporting where it's irrelevant to the test.
1 parent 17cecc7 commit 1fa0972

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

testing/integration/ess/monitoring_probe_preserve_text_cfg_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ outputs:
3333
api_key: "example-key"
3434
preset: balanced
3535
allow_older_versions: true
36+
status_reporting:
37+
enabled: false
3638
3739
inputs:
3840
- type: system/metrics

testing/integration/ess/upgrade_rollback_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ outputs:
9797
default:
9898
type: elasticsearch
9999
hosts: [127.0.0.1:9200]
100+
status_reporting:
101+
enabled: false
100102
101103
inputs:
102104
- condition: '${agent.version.version} == "%s"'

0 commit comments

Comments
 (0)