refactor: replace lopg.ObserverLogs with logptest#45734
refactor: replace lopg.ObserverLogs with logptest#45734kruskall merged 14 commits intoelastic:mainfrom
Conversation
ObserverLogs is relying on a testing package in a non-test package move to logptest
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
Pinging @elastic/sec-linux-platform (Team:Security-Linux Platform) |
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
|
Pinging @elastic/obs-ds-hosted-services (Team:obs-ds-hosted-services) |
|
There are some places in beats codebase that use a very clumsy way of setting observer. Now that we have This is one such instance https://github.com/khushijain21/beats/blob/localLogger13/libbeat/autodiscover/autodiscover_test.go#L759-L761 Thanks for doing this! |
|
@elastic/sec-linux-platform friendly ping for review |
1 similar comment
|
@elastic/sec-linux-platform friendly ping for review |
|
@elastic/sec-linux-platform friendly ping for review |
|
@nfritts could you please take a look here? |
|
@Mergifyio backport 8.19 9.1 9.2 |
✅ Backports have been createdDetails
|
* refactor: replace lopg.ObserverLogs with logptest ObserverLogs is relying on a testing package in a non-test package move to logptest * lint: regenerate notice file * test: update to NewTestingLoggerWithObserver * lint: regenerate notice * lint: remove unused imports * lint: remove unused imports * Update console_test.go * lint: fix linter issues (cherry picked from commit b5789af) # Conflicts: # filebeat/input/journald/pkg/journalctl/reader_test.go
* refactor: replace lopg.ObserverLogs with logptest ObserverLogs is relying on a testing package in a non-test package move to logptest * lint: regenerate notice file * test: update to NewTestingLoggerWithObserver * lint: regenerate notice * lint: remove unused imports * lint: remove unused imports * Update console_test.go * lint: fix linter issues (cherry picked from commit b5789af) # Conflicts: # filebeat/input/filestream/config_test.go # filebeat/input/journald/pkg/journalctl/reader_test.go # libbeat/autodiscover/autodiscover_test.go
* refactor: replace lopg.ObserverLogs with logptest ObserverLogs is relying on a testing package in a non-test package move to logptest * lint: regenerate notice file * test: update to NewTestingLoggerWithObserver * lint: regenerate notice * lint: remove unused imports * lint: remove unused imports * Update console_test.go * lint: fix linter issues (cherry picked from commit b5789af)
* refactor: replace lopg.ObserverLogs with logptest ObserverLogs is relying on a testing package in a non-test package move to logptest * lint: regenerate notice file * test: update to NewTestingLoggerWithObserver * lint: regenerate notice * lint: remove unused imports * lint: remove unused imports * Update console_test.go * lint: fix linter issues (cherry picked from commit b5789af) Co-authored-by: kruskall <99559985+kruskall@users.noreply.github.com>
…test (#47463) * refactor: replace lopg.ObserverLogs with logptest (#45734) * refactor: replace lopg.ObserverLogs with logptest ObserverLogs is relying on a testing package in a non-test package move to logptest * lint: regenerate notice file * test: update to NewTestingLoggerWithObserver * lint: regenerate notice * lint: remove unused imports * lint: remove unused imports * Update console_test.go * lint: fix linter issues (cherry picked from commit b5789af) # Conflicts: # filebeat/input/filestream/config_test.go # filebeat/input/journald/pkg/journalctl/reader_test.go # libbeat/autodiscover/autodiscover_test.go * Update config_test.go * Update autodiscover_test.go * Update reader_test.go * Update autodiscover_test.go --------- Co-authored-by: kruskall <99559985+kruskall@users.noreply.github.com>
…est (#47462) * refactor: replace lopg.ObserverLogs with logptest (#45734) * refactor: replace lopg.ObserverLogs with logptest ObserverLogs is relying on a testing package in a non-test package move to logptest * lint: regenerate notice file * test: update to NewTestingLoggerWithObserver * lint: regenerate notice * lint: remove unused imports * lint: remove unused imports * Update console_test.go * lint: fix linter issues (cherry picked from commit b5789af) # Conflicts: # filebeat/input/journald/pkg/journalctl/reader_test.go * Update reader_test.go --------- Co-authored-by: kruskall <99559985+kruskall@users.noreply.github.com>
* refactor: replace lopg.ObserverLogs with logptest ObserverLogs is relying on a testing package in a non-test package move to logptest * lint: regenerate notice file * test: update to NewTestingLoggerWithObserver * lint: regenerate notice * lint: remove unused imports * lint: remove unused imports * Update console_test.go * lint: fix linter issues
Proposed commit message
ObserverLogs is relying on a testing package in a non-test package
move to logptest
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Disruptive User Impact
Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs