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

Generate test_client yaml from within the WBEMConnection operation methods #351

Closed
andy-maier opened this issue Jun 7, 2016 · 5 comments

Comments

@andy-maier
Copy link
Contributor

In order to produce more test_client yaml testcases, it would be beneficial to generate those, instead of making them up manually. This can be achieved by having code in the WBEMConnection class in imethodcall() and methodcall() at the end when the result is available, that emits the yaml testcase for this operation. At this point, everything is available: Python input and output, and CIM-XML request and response (via debug). This could be controlled by another WBEMConnection instance attribute.

@andy-maier
Copy link
Contributor Author

Would like to wait with this until PR #320 has been merged.

@andy-maier
Copy link
Contributor Author

PR #320 has been merged; started working on this one.

@andy-maier
Copy link
Contributor Author

PR #366 is an initial stab at an operation recorder, but its TestClientRecorder only displays the operation, and needs to be implemented for writing a test_client testcase.

andy-maier added a commit that referenced this issue Jun 13, 2016
Issue #351: Initial stab at operation recording support.
@andy-maier
Copy link
Contributor Author

PR #384 is the next step. Its TestClientRecorder supports operation args and results, but still has some limitations (see the PR for details).

@andy-maier
Copy link
Contributor Author

PR #384 has been updated and is now the complete implementation.

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