content icon indicating copy to clipboard operation
content copied to clipboard

Add option to SSGTS to skip templated test scenarios if custom tests are found

Open ggbecker opened this issue 4 years ago • 1 comments

Description of problem:

Sometimes templated test scenarios don't cover all possible cases a template can be used. As it's in the case of https://github.com/ComplianceAsCode/content/pull/7405/files#diff-66fb572257ded0d27ec50b0c7c6f8073df416494e02dcbc58a15a50ffefff704 where we can't easily implement generic tests for that. In this case we have custom test scenarios but current implementation of templated tests will evaluate generic tests anyway unless we override all the tests scenarios. Having an option/mechanism to skip templated test scenarios is desired in these situations.

ggbecker avatar Oct 18 '21 11:10 ggbecker

Does "test_config.yml" like in linux_os/guide/system/software/system-tools/package_openscap-scanner_installed/tests/test_config.yml help?

Mab879 avatar Jul 31 '24 17:07 Mab879

This is fixed now.

Mab879 avatar Nov 20 '24 14:11 Mab879

Fixed by #8052

ggbecker avatar Nov 20 '24 14:11 ggbecker

For reference: https://complianceascode.readthedocs.io/en/latest/tests/README.html#augmenting-using-shared-templates

marcusburghardt avatar Nov 20 '24 14:11 marcusburghardt