ssg.content_diff module

class ssg.content_diff.StandardContentDiffer(old_content, new_content, rule_id, show_diffs, rule_diffs, only_rules, output_dir)[source]

Bases: object

compare_check_file_names(system, identifier, old_check_file_name, new_check_file_name)[source]
compare_check_ids(system, identifier, old_check_id, new_check_id)[source]
compare_checks(old_rule, new_rule, system, identifier)[source]
compare_ocils(old_ocil_doc, old_ocil_id, new_ocil_doc, new_ocil_id, identifier)[source]
compare_ovals(old_oval_def_doc, old_oval_def_id, new_oval_def_doc, new_oval_def_id, identifier)[source]
compare_platforms(old_rule, new_rule, old_benchmark, new_benchmark, identifier)[source]
compare_remediations(old_rule, new_rule, remediation_type, identifier)[source]
compare_rule(old_rule, new_rule, identifier)[source]
compare_rule_texts(old_rule, new_rule, identifier)[source]
compare_rules(old_benchmark, new_benchmark)[source]
generate_diff_text(old_r, new_r, fromfile='old data stream', tofile='new data stream', n=3)[source]
get_check_docs(system, identifier, old_check_file_name, new_check_file_name)[source]
output_diff(identifier, diff, mode='a')[source]
serialize_elements(elements)[source]
class ssg.content_diff.StigContentDiffer(old_content, new_content, rule_id, show_diffs, rule_diffs, only_rules, output_dir)[source]

Bases: StandardContentDiffer

check_for_new_rules(rules_in_new_benchmark, old_rule_mapping)[source]
compare_existing_rules(new_benchmark, old_benchmark, rules_in_old_benchmark, new_rule_mapping)[source]
compare_rules(old_benchmark, new_benchmark)[source]
get_stig_rule_SV(sv_rule_id)[source]