Skip to content

[Dev Doc] Document how after test executes to read the output from standard and error log messages associated with a test case  #1644

@peternied

Description

@peternied

Issue

When running test cases logs are required to troubleshoot if the test cases ran as expected and what the source of a failure might have been.

Expectation

It should be clear how to get this information in DEVELOPER_GUIDE.md

Additional Context

With the recent changes to support java 17 new classes of errors started to appear during our test runs. These failures would be bubbled up into the SecurityFilter and then the output from the test would include a failure like Unexpected exception /_cat/health...{CALLSTACK}.

Unfortunately the exception cause was being sent to log.error on the OpenSearch cluster under test and would not be visible to the test output.

If we could make sure that log.error messages are included in the test output this would greatly increase debuggability. The test added in #1639 could be updated to capture this output and confirm the behavior is working as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedCommunity contributions are especially encouraged for these issues.triagedIssues labeled as 'Triaged' have been reviewed and are deemed actionable.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions