Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_subscriptions.py test file issue #1414

Open
KSchopmeyer opened this issue Sep 2, 2024 · 0 comments
Open

test_subscriptions.py test file issue #1414

KSchopmeyer opened this issue Sep 2, 2024 · 0 comments
Assignees
Milestone

Comments

@KSchopmeyer
Copy link
Contributor

KSchopmeyer commented Sep 2, 2024

The test_subscriptions test file uses stdin, stdout, and stderr to allow multiple commands to be executed in a single test. The inputs are placed in stdin so that the commands are executed through the pywbemcli repl as a single execution of pywbemcl and the results are saved in stderr, stdout. However, there is an issue with this because the tests hide the use of any existing default connections file by renaming it during the tests.

Since the subscription tests do not actually create a new default connections file, repl issues a warning message about the default repl file being missing which shows up in the stderr output. This causes one error in tests_subscriptions.py where the warnings show up in the stderr file but are not expected.

We need to clean up this process to make the use of this process as a test tool.

This only showed up in PR #1406 and that is not yet explained.

The failing test of stderr has been temporarily changed to not test the stderr result.

@KSchopmeyer KSchopmeyer added this to the 1.4.0 milestone Sep 2, 2024
@KSchopmeyer KSchopmeyer self-assigned this Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant