Command "test output" for "deal up" step with error returns 0
- Dominant language
- Go
- Stars
- 12.7k
- Forks
- 5k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 364
Description
The command _test output_ returns 0 for _dial up_ step of testing even the output contains an error.
For another steps: _parse host_, _dns lookup_ the error output leads to non-zero return code.
Sample:
```
root@/usr/share/filebeat# filebeat test output
TLS... WARN Kafka output doesn't support TLS testing
Kafka: kafka-bootstrap-service:8888...
parse host... OK
dns lookup... OK
addresses: 10.47.000.99
dial up... ERROR dial tcp 10.47.000.99:8888: connect: connection refused
root@/usr/share/filebeat# echo $?
0
```
Report:
- Version: 8.17.2
- Operating System: Linux families
- Steps to Reproduce: Run command _*beat test output_ for any inaccessible or refused connection Url.
The "echo $1" returns 0.
Contributor guide
Assessment
This issue has not been assessed yet.