Skip to content

test: Add test suite for Logging feature#361

Open
pbartiko wants to merge 3 commits intomainfrom
pbartiko/logging_tests
Open

test: Add test suite for Logging feature#361
pbartiko wants to merge 3 commits intomainfrom
pbartiko/logging_tests

Conversation

@pbartiko
Copy link
Contributor

Test coverage for the Logging Framework in RHC - CCT-1820

The test suite is designed for compatibility with Polarion entries. The test cases are mapped to the RHSS-291811 - RHC - Logging mechanism for the CLI requirement.

@jlocash
Copy link
Contributor

jlocash commented Feb 26, 2026

Should we test the case where the log file couldn't be opened? An error message will be printed with something like:

Unable to open log file: <error>

Detailed logs will not be available.

...

Copy link
Collaborator

@DuckBoss DuckBoss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, I have some suggestions after an initial review.

@pbartiko
Copy link
Contributor Author

pbartiko commented Mar 2, 2026

Should we test the case where the log file couldn't be opened? An error message will be printed with something like:

Unable to open log file: <error>

Detailed logs will not be available.

...

Test added: test_log_file_open_failure_message

jlocash
jlocash previously approved these changes Mar 5, 2026
Copy link
Contributor

@jlocash jlocash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes! LGTM

Copy link
Collaborator

@DuckBoss DuckBoss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes! It mostly LGTM, I have some small cleanup changes and one issue I ran into during testing that can be fixed here.

Copy link
Collaborator

@DuckBoss DuckBoss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants