-
Notifications
You must be signed in to change notification settings - Fork 24k
xml module: Better change detection, improved tests #28460
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
Conversation
@richardcs I modified the integration tests to use an assert to compare content, rather than calling diff. This should be portable (but is slightly harder to troubleshoot as a diff is not shown). I also implemented a diff module that can compare files, however you would need an equivalent win_diff. for testing win_xml. |
14f16b4
to
6df1b48
Compare
2b3bd8e
to
7317dec
Compare
f4fd598
to
0bfd2e6
Compare
@richardcs This is the final set of integration tests. Now using only copy, xml and assert, but using diff output instead. This is much more convenient than before and since win_copy already has diff support, you only need to add diff-support to win_xml |
This PR includes: - Improvements to change-detection by comparing 2 objectified XML trees - Implement better integration tests by comparing 2 files using copy
This PR includes: - Improvements to change-detection by comparing 2 objectified XML trees - Implement better integration tests by comparing 2 files using copy
SUMMARY
This PR includes:
ISSUE TYPE
COMPONENT NAME
xml
ANSIBLE VERSION
v2.4