RagLeap
Tests

Tests: ragleap-flows

Test files: 4. Test functions: 64. 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-flows-tests (3.12) passed 160 passed, 0 skipped, 0 failed CI job ragleap-flows-tests (3.10) passed 160 passed, 0 skipped, 0 failed CI job ragleap-flows-tests (3.11) passed 160 passed, 0 skipped, 0 failed CI job

test_flow_validation.py — 12 tests 16 passed, 0 failed, 0 skipped

No file-level description in the source.

  • test_a_valid_flow_loads_and_has_a_stable_digest passed
    A valid flow loads and has a stable digest (no description in the source; shown from the name)
  • test_bad_top_level_is_refused passed
    Bad top level is refused (no description in the source; shown from the name)
  • test_bad_steps_are_refused passed
    Bad steps are refused (no description in the source; shown from the name)
  • test_duplicate_ids_cycles_and_unreachable_steps_are_refused passed
    Duplicate ids cycles and unreachable steps are refused (no description in the source; shown from the name)
  • test_a_path_may_only_read_a_step_that_always_runs_before_it passed
    A path may only read a step that always runs before it (no description in the source; shown from the name)
  • test_the_output_may_name_only_real_steps passed
    The output may name only real steps (no description in the source; shown from the name)
  • test_size_and_step_limits passed
    Size and step limits (no description in the source; shown from the name)
  • test_bad_json_text_is_refused passed
    Bad json text is refused (no description in the source; shown from the name)
  • test_non_text_and_bad_bytes_are_refused passed
    Non text and bad bytes are refused (no description in the source; shown from the name)
  • test_deeply_nested_json_does_not_crash passed
    Deeply nested json does not crash (no description in the source; shown from the name)
  • test_a_huge_text_with_a_small_flow_inside_is_refused_by_the_text_limit passed
    A huge text with a small flow inside is refused by the text limit (no description in the source; shown from the name)
  • test_a_double_dollar_is_a_literal_in_values_and_refused_as_a_path passed
    A double dollar is a literal in values and refused as a path (no description in the source; shown from the name)
test_governed_dispatch.py — 7 tests 7 passed, 0 failed, 0 skipped

Flows with a real GovernedToolkit (ragleap-tools 0.6.0 or newer) as the dispatcher.

  • test_dispatch_gets_the_exact_scope_of_the_run passed
    Dispatch gets the exact scope of the run (no description in the source; shown from the name)
  • test_a_tenants_allowlist_decides_which_flow_steps_can_run passed
    A tenants allowlist decides which flow steps can run (no description in the source; shown from the name)
  • test_an_allowlist_that_fails_denies_every_step passed
    An allowlist that fails denies every step (no description in the source; shown from the name)
  • test_the_owners_approval_hook_is_separate_from_the_flows_own_approval passed
    The owners approval hook is separate from the flows own approval (no description in the source; shown from the name)
  • test_a_flow_approval_does_not_replace_the_owners_approval passed
    A flow approval does not replace the owners approval (no description in the source; shown from the name)
  • test_the_rate_limit_is_per_tenant_across_runs passed
    The rate limit is per tenant across runs (no description in the source; shown from the name)
  • test_governed_events_carry_the_scope_and_no_flow_data passed
    Governed events carry the scope and no flow data (no description in the source; shown from the name)
test_runner.py — 27 tests 27 passed, 0 failed, 0 skipped

No file-level description in the source.

  • test_a_small_flow_runs_and_returns_its_output passed
    A small flow runs and returns its output (no description in the source; shown from the name)
  • test_an_approval_pauses_then_resumes_and_finishes passed
    An approval pauses then resumes and finishes (no description in the source; shown from the name)
  • test_a_rejection_ends_the_run_without_running_later_steps passed
    A rejection ends the run without running later steps (no description in the source; shown from the name)
  • test_bad_decisions_are_refused_and_the_run_stays_paused passed
    Bad decisions are refused and the run stays paused (no description in the source; shown from the name)
  • test_a_second_resume_is_refused passed
    A second resume is refused (no description in the source; shown from the name)
  • test_concurrent_resumes_run_the_tool_once passed
    Concurrent resumes run the tool once (no description in the source; shown from the name)
  • test_a_tool_failure_stops_the_run_and_later_steps_do_not_run passed
    A tool failure stops the run and later steps do not run (no description in the source; shown from the name)
  • test_a_tool_that_raises_gives_only_its_type passed
    A tool that raises gives only its type (no description in the source; shown from the name)
  • test_an_invalid_dispatch_result_fails_the_step passed
    An invalid dispatch result fails the step (no description in the source; shown from the name)
  • test_dispatch_gets_the_scope_the_tool_and_the_resolved_arguments passed
    Dispatch gets the scope the tool and the resolved arguments (no description in the source; shown from the name)
  • test_a_missing_value_fails_closed passed
    A missing value fails closed (no description in the source; shown from the name)
  • test_branch_comparisons_never_treat_other_types_as_numbers passed
    Branch comparisons never treat other types as numbers (no description in the source; shown from the name)
  • test_all_any_in_exists_and_truthy passed
    All any in exists and truthy (no description in the source; shown from the name)
  • test_a_missing_value_never_satisfies_ne passed
    A missing value never satisfies ne (no description in the source; shown from the name)
  • test_the_output_is_none_when_a_named_step_was_skipped passed
    The output is none when a named step was skipped (no description in the source; shown from the name)
  • test_runner_configuration_is_checked_up_front passed
    Runner configuration is checked up front (no description in the source; shown from the name)
  • test_input_must_be_small_plain_json passed
    Input must be small plain json (no description in the source; shown from the name)
  • test_the_deadline_stops_a_run_between_steps passed
    The deadline stops a run between steps (no description in the source; shown from the name)
  • test_big_tool_output_and_unserialisable_output_fail_the_step passed
    Big tool output and unserialisable output fail the step (no description in the source; shown from the name)
  • test_state_too_large_fails_and_drops_the_data passed
    State too large fails and drops the data (no description in the source; shown from the name)
  • test_rate_limiter_is_checked_before_anything_else passed
    Rate limiter is checked before anything else (no description in the source; shown from the name)
  • test_the_first_matching_case_wins passed
    The first matching case wins (no description in the source; shown from the name)
  • test_condition_operators_table passed
    Condition operators table (no description in the source; shown from the name)
  • test_list_paths_are_strict passed
    List paths are strict (no description in the source; shown from the name)
  • test_a_state_that_is_not_awaiting_is_refused_even_if_it_still_holds_a_pending_call passed
    A state that is not awaiting is refused even if it still holds a pending call (no description in the source; shown from the name)
  • test_two_resumers_that_both_loaded_the_paused_state_run_the_tool_once passed
    Two resumers that both loaded the paused state run the tool once (no description in the source; shown from the name)
  • test_a_store_without_an_atomic_claim_still_refuses_a_state_that_is_not_awaiting passed
    A store without an atomic claim still refuses a state that is not awaiting (no description in the source; shown from the name)
test_tenant.py — 18 tests 18 passed, 0 failed, 0 skipped

Tenant isolation, the way a hostile tenant would try to break it. Positive controls keep every test honest.

  • test_a_run_needs_exactly_a_scope passed
    A run needs exactly a scope (no description in the source; shown from the name)
  • test_another_tenant_cannot_resume_or_see_a_paused_run passed
    Another tenant cannot resume or see a paused run (no description in the source; shown from the name)
  • test_every_part_of_the_scope_must_match passed
    Every part of the scope must match (no description in the source; shown from the name)
  • test_the_ownership_check_comes_before_the_decision_is_read passed
    The ownership check comes before the decision is read (no description in the source; shown from the name)
  • test_a_damaged_stored_state_gives_the_same_error passed
    A damaged stored state gives the same error (no description in the source; shown from the name)
  • test_a_corrupt_sqlite_row_is_refused_not_run passed
    A corrupt sqlite row is refused not run (no description in the source; shown from the name)
  • test_a_run_of_another_flow_version_is_refused_for_its_owner_only passed
    A run of another flow version is refused for its owner only (no description in the source; shown from the name)
  • test_run_ids_are_128_bit_random_tokens passed
    Run ids are 128 bit random tokens (no description in the source; shown from the name)
  • test_saved_state_holds_the_scope_and_never_another_tenants_data passed
    Saved state holds the scope and never another tenants data (no description in the source; shown from the name)
  • test_one_store_per_tenant_keeps_runs_apart_even_with_a_wrong_scope passed
    One store per tenant keeps runs apart even with a wrong scope (no description in the source; shown from the name)
  • test_store_for_must_return_a_store passed
    Store for must return a store (no description in the source; shown from the name)
  • test_hostile_inputs_cannot_reach_attributes_or_other_tenants passed
    Hostile inputs cannot reach attributes or other tenants (no description in the source; shown from the name)
  • test_concurrent_runs_for_many_tenants_never_mix passed
    Concurrent runs for many tenants never mix (no description in the source; shown from the name)
  • test_a_tainted_run_forces_approval_before_every_outbound_step passed
    A tainted run forces approval before every outbound step (no description in the source; shown from the name)
  • test_an_external_step_taints_the_rest_of_the_run passed
    An external step taints the rest of the run (no description in the source; shown from the name)
  • test_a_forced_rejection_stops_before_the_outbound_tool passed
    A forced rejection stops before the outbound tool (no description in the source; shown from the name)
  • TestAudit::test_events_hold_ids_and_sizes_never_text passed
    Events hold ids and sizes never text (no description in the source; shown from the name)
  • TestAudit::test_if_the_record_cannot_be_written_nothing_continues passed
    If the record cannot be written nothing continues (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