tests package
tests.analyze_results module
tests.ansible_playbooks_generated_for_all_rules module
- tests.ansible_playbooks_generated_for_all_rules.compare_ds_with_playbooks_dir(ds_path, playbooks_dir_path)[source]
tests.assert_ansible_schema module
tests.ensure_paths_are_short module
tests.install_vm module
tests.missing_cces module
tests.oval_tester module
- class tests.oval_tester.OVALTester(verbose)[source]
Bases:
object
- test(description, oval_content, config_file_content, expected_result)[source]
Execute a test. description: a very short description to be displayed in test output oval_content: content of the OVAL shorthand file written in a way you
write OVALs in SSG rules (not a valid OVAL)
- config_file_content: content of the text configuration file that the
OVAL will check
expected_result: expected result of evaluation of the OVAL definition
tests.run_scapval module
tests.stable_profile_ids module
tests.test_machine_only_rules module
- tests.test_machine_only_rules.get_only_elements_to_check_from_benchmark(benchmark, element_query, short_ids_to_check)[source]
- tests.test_machine_only_rules.machine_platform_missing_in_rules(ds_path, short_ids_to_check)[source]
tests.test_macros_oval module
tests.test_profile_stability module
- tests.test_profile_stability.get_matching_compiled_profile_filename(build_dir, reference_fname)[source]
- tests.test_profile_stability.get_reference_vs_built_difference(reference_fname, built_fname)[source]