-
Notifications
You must be signed in to change notification settings - Fork 183
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
Build out and test bidirectional XML and JSON conversion #343
Comments
I now have the scripts in place for testing that can round trip XML->JSON->XML. It can also do the inverse for JSON->XML->JSON. Testing for "loss" is more difficult than expected and some of the newer content is not coming over in the conversions. Still a lot of work to do to troubleshoot differences and make the process repeatable and reliable. |
5/2/2019@howieavp76 made good progress on thsi issue. @wendellpiez is looking at the lower level details. @howieavp76 finished the round-trip test script, but needs to work on a script to run the process to creat new artifacts for testing - this will be integrated with CircleCI. |
Next to do: build out examples and unit test for low-level conversions including prose. Since none of the deployed catalogs or profiles contain mixed content (face markup) in prose, this should not affect deployed conversions (but it will be needed as soon as we have any). |
5/16/19Most of this functionality is working now, except tables. The bi-directional testing that @howieavp76 is working (#355) on will be used to test the accuracy of these conversions. As follow-on work, we need mini-testing content to exercise the markdown <> html conversion to make sure it works and does not regress. |
This will be implemented in the CI/CD process in PR #358 using the existing converters. |
Code to convert OSCAL Markdown to XML via XSLT is now feature complete, including tables and images. It needs testing and integration into the current JSON-to-XML convertor generator pipeline. |
5/23/2019This issue depends on #283. Once #283 is done, this can move forward. @howieavp76 and @david-waltermire-nist will work on integrating it into CI/CD on Friday (tomorrow). |
We are going to hold this at "reviewer approved" until #283 is done and then close this issue. |
See PR #405 for test results. Some of the conversions have errors that we should address. |
This is now being worked in PR #410. Round-trip errors need to be addressed before that PR can be pulled. |
PR #410 is now merged. Closing this issue. |
User Story:
Goals:
Dependencies:
Current metaschema work should be stable and merged in (#339), with any downstream branches updated. We can start using the demo metaschema for testing including unit testing.
At some point we need to address whether JSON emitted from this pipeline is adequate (with respect to syntax conventions) or whether some post-processing might be called for. (Seek advice from stakeholders with JSON requirements.)
For examples of profile and catalog data we need a list of canonical files to be converted (for production of JSON variants from XML source) plus any test/mockup files for testing catalog and profile conversions specifically (inside or outside CI/CD).
Supporting bidirectional conversion outside the catalog and profile layers is not a goal, but it should be enabled implicitly by the metaschema work, and ready to test as soon as data is available for any given metaschema.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: