RagLeap
Tests

Tests: ragleap-security

Test files: 4. Test functions: 54. Described by their authors (docstring or @DisplayName): 0. Where there is no description, the line shows the test name in words and says so.

Latest result: ragleap-security-tests (3.10) passed 101 passed, 0 skipped, 0 failed CI job ragleap-security-tests (3.12) passed 101 passed, 0 skipped, 0 failed CI job ragleap-security-tests (3.11) passed 101 passed, 0 skipped, 0 failed CI job

test_audit.py — 19 tests 19 passed, 0 failed, 0 skipped

No file-level description in the source.

  • test_empty_and_missing_log_verify_ok passed
    Empty and missing log verify ok (no description in the source; shown from the name)
  • test_append_chain_and_verify passed
    Append chain and verify (no description in the source; shown from the name)
  • test_append_returns_the_written_record passed
    Append returns the written record (no description in the source; shown from the name)
  • test_file_mode_is_private passed
    File mode is private (no description in the source; shown from the name)
  • test_secretstr_is_redacted_in_the_log passed
    Secretstr is redacted in the log (no description in the source; shown from the name)
  • test_edited_record_is_detected passed
    Edited record is detected (no description in the source; shown from the name)
  • test_deleted_middle_record_is_detected passed
    Deleted middle record is detected (no description in the source; shown from the name)
  • test_reordered_and_inserted_records_are_detected passed
    Reordered and inserted records are detected (no description in the source; shown from the name)
  • test_wrong_fields_bad_json_and_incomplete_record_are_detected passed
    Wrong fields bad json and incomplete record are detected (no description in the source; shown from the name)
  • test_truncated_tail_is_NOT_detected_without_an_anchor passed
    Truncated tail is NOT detected without an anchor (no description in the source; shown from the name)
  • test_truncated_tail_is_detected_with_an_anchor passed
    Truncated tail is detected with an anchor (no description in the source; shown from the name)
  • test_full_rewrite_with_recomputed_hashes_is_NOT_detected passed
    Full rewrite with recomputed hashes is NOT detected (no description in the source; shown from the name)
  • test_append_refuses_to_extend_a_corrupt_log passed
    Append refuses to extend a corrupt log (no description in the source; shown from the name)
  • test_bad_event_names_refused passed
    Bad event names refused (no description in the source; shown from the name)
  • test_bad_data_and_scope_refused passed
    Bad data and scope refused (no description in the source; shown from the name)
  • test_oversized_record_refused_and_log_unchanged passed
    Oversized record refused and log unchanged (no description in the source; shown from the name)
  • test_threads_keep_the_chain_valid passed
    Threads keep the chain valid (no description in the source; shown from the name)
  • test_processes_keep_the_chain_valid passed
    Processes keep the chain valid (no description in the source; shown from the name)
  • test_module_level_verify_matches_method passed
    Module level verify matches method (no description in the source; shown from the name)
test_limits.py — 10 tests 10 passed, 0 failed, 0 skipped

No file-level description in the source.

  • test_check_size_str_bytes_and_boundary passed
    Check size str bytes and boundary (no description in the source; shown from the name)
  • test_check_size_counts_utf8_bytes_not_characters passed
    Check size counts utf8 bytes not characters (no description in the source; shown from the name)
  • test_check_size_message_has_no_input passed
    Check size message has no input (no description in the source; shown from the name)
  • test_check_size_rejects_bad_limits passed
    Check size rejects bad limits (no description in the source; shown from the name)
  • test_json_shape_depth_and_nodes passed
    Json shape depth and nodes (no description in the source; shown from the name)
  • test_json_shape_survives_hostile_nesting_without_recursion_error passed
    Json shape survives hostile nesting without recursion error (no description in the source; shown from the name)
  • test_json_shape_rejects_bad_settings passed
    Json shape rejects bad settings (no description in the source; shown from the name)
  • test_bounded_read passed
    Bounded read (no description in the source; shown from the name)
  • test_deadline_with_fake_clock passed
    Deadline with fake clock (no description in the source; shown from the name)
  • test_deadline_rejects_bad_seconds passed
    Deadline rejects bad seconds (no description in the source; shown from the name)
test_scope.py — 12 tests 12 passed, 0 failed, 0 skipped

No file-level description in the source.

  • test_valid_scope_and_key passed
    Valid scope and key (no description in the source; shown from the name)
  • test_invalid_tenant_refused passed
    Invalid tenant refused (no description in the source; shown from the name)
  • test_invalid_optional_parts_refused passed
    Invalid optional parts refused (no description in the source; shown from the name)
  • test_boundary_length_accepted passed
    Boundary length accepted (no description in the source; shown from the name)
  • test_key_is_injective_and_roundtrips passed
    Key is injective and roundtrips (no description in the source; shown from the name)
  • test_parse_rejects_malformed_keys passed
    Parse rejects malformed keys (no description in the source; shown from the name)
  • test_scope_is_immutable_and_hashable passed
    Scope is immutable and hashable (no description in the source; shown from the name)
  • test_covers_tenant_wide_covers_narrower_not_reverse passed
    Covers tenant wide covers narrower not reverse (no description in the source; shown from the name)
  • test_covers_refuses_other_tenant_and_other_subject passed
    Covers refuses other tenant and other subject (no description in the source; shown from the name)
  • test_covers_refuses_non_scope_and_subclass passed
    Covers refuses non scope and subclass (no description in the source; shown from the name)
  • test_narrow_adds_parts_and_cannot_change_set_parts passed
    Narrow adds parts and cannot change set parts (no description in the source; shown from the name)
  • test_require_scope_accepts_only_exact_scope passed
    Require scope accepts only exact scope (no description in the source; shown from the name)
test_secrets.py — 13 tests 14 passed, 0 failed, 0 skipped

No file-level description in the source.

  • test_secretstr_never_shows_value passed
    Secretstr never shows value (no description in the source; shown from the name)
  • test_secretstr_not_json_pickle_or_hashable passed
    Secretstr not json pickle or hashable (no description in the source; shown from the name)
  • test_secretstr_equality_and_bool passed
    Secretstr equality and bool (no description in the source; shown from the name)
  • test_secretstr_copy_keeps_masking passed
    Secretstr copy keeps masking (no description in the source; shown from the name)
  • test_from_env passed
    From env (no description in the source; shown from the name)
  • test_from_env_rejects_bad_names passed
    From env rejects bad names (no description in the source; shown from the name)
  • test_redact_known_formats passed
    Redact known formats (no description in the source; shown from the name)
  • test_redact_private_key_block passed
    Redact private key block (no description in the source; shown from the name)
  • test_redact_authorization_header_keeps_name passed
    Redact authorization header keeps name (no description in the source; shown from the name)
  • test_redact_exact_values_and_short_values passed
    Redact exact values and short values (no description in the source; shown from the name)
  • test_redact_leaves_ordinary_text passed
    Redact leaves ordinary text (no description in the source; shown from the name)
  • test_redact_limits_and_types passed
    Redact limits and types (no description in the source; shown from the name)
  • test_redact_is_linear_on_hostile_input passed
    Redact is linear on hostile input (no description in the source; shown from the name)

Compiled by script from the public repository, its CI logs and the GitHub API. To correct something, open an issue.

All tests