compliance-trestle icon indicating copy to clipboard operation
compliance-trestle copied to clipboard

Existing task test cases should be OSCAL version agnostic

Open degenaro opened this issue 2 years ago • 3 comments

Describe the bug

Some task test cases do a file compare of generated OSCAL document with a pre-generated one, and will fail when OSCAL version changes since OSCAL version is embedded in the docs.

To Reproduce

Mock trestle code with a new version of OSCAL.

Expected behavior

The task test cases should not fail when OSCAL version changes.

Screenshots / Logs.

N/A

Environment

Nominal trestle install.

degenaro avatar Feb 02 '23 12:02 degenaro

Thanks @degenaro - yes ideally the tests would be resilient to changes in the oscal version as specified in trestle/oscal/__init__.py

fsuits avatar Feb 02 '23 23:02 fsuits