Skip to content

Commit 2dcf039

Browse files
mergify[bot]github-actions[bot]Copilot
authored
Fix winlog missing-channel integration expectations (#49017) (#49048)
Align TestWinlogIgnoreMissingChannel with the channel-not-found retry log message and stop asserting channel names no longer emitted on that path. GenAI-Assisted: Yes Human-Reviewed: Yes Tool: GitHub Copilot CLI, Model: GPT-5.3 Codex (cherry picked from commit 35a560e) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 83a3c58 commit 2dcf039

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

x-pack/filebeat/tests/integration/windows/inputs_windows_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ output.console:
117117
logging.level: info
118118
`,
119119
expectedOutput: []string{
120-
"ignoring open error",
121-
"NonExistentChannel1",
120+
"encountered channel not found error when opening Windows Event Log, retrying",
122121
},
123122
},
124123
"explicit true ignores missing channels": {
@@ -133,7 +132,7 @@ output.console:
133132
enabled: true
134133
logging.level: info
135134
`,
136-
expectedOutput: []string{"ignoring open error", "NonExistentChannel2"},
135+
expectedOutput: []string{"encountered channel not found error when opening Windows Event Log, retrying"},
137136
},
138137
"explicit false fails on missing channels": {
139138
configTemplate: `
@@ -147,7 +146,7 @@ output.console:
147146
enabled: true
148147
logging.level: debug
149148
`,
150-
expectedOutput: []string{"NonExistentChannel3", "The specified channel could not be found", "encountered recoverable error"},
149+
expectedOutput: []string{"The specified channel could not be found", "encountered channel not found error when opening Windows Event Log, retrying"},
151150
},
152151
}
153152
for name, tc := range tcs {

0 commit comments

Comments
 (0)