← Về thư mục
tests/test_orchestration_routes.py
- _body · function · L35-L36 — def _body(raw: bytes) -> dict
- _fast_reconciler · function · L40-L43 — def _fast_reconciler(monkeypatch)
- daemon · function · L47-L59 — def daemon(tmp_path: Path)
- _submit · function · L62-L68 — def _submit(daemon, cookie: str, command: list[str], **extra)
- _await_phase · function · L71-L114 — def _await_phase( daemon, job_id: str, cookie: str, *, timeout_s: float = 20.0, until=lambda phase: phase.is_terminal, )
- test_submit_runs_and_completes_through_the_routes · function · L120-L142 — def test_submit_runs_and_completes_through_the_routes(daemon)
- test_a_failing_job_ends_failed_not_completed · function · L145-L150 — def test_a_failing_job_ends_failed_not_completed(daemon)
- test_cancel_reaches_terminal · function · L153-L170 — def test_cancel_reaches_terminal(daemon)
- test_cancelling_a_finished_job_is_a_conflict · function · L173-L183 — def test_cancelling_a_finished_job_is_a_conflict(daemon)
- test_jobs_are_owned_and_invisible_to_others · function · L189-L218 — def test_jobs_are_owned_and_invisible_to_others(daemon): # Owned by
root because the local backend is admin-only; the claim # under test is the ownership rule, which is about the owner and not # about the role, so a member who is not the owner is the right probe.
- test_admin_cancellation_is_attributed_to_the_admin · function · L221-L237 — def test_admin_cancellation_is_attributed_to_the_admin(daemon)
- test_submission_is_audited · function · L240-L244 — def test_submission_is_audited(daemon)
- test_a_member_may_not_submit_to_the_local_backend · function · L250-L260 — def test_a_member_may_not_submit_to_the_local_backend(daemon)
- test_the_refusal_happens_before_anything_is_written · function · L263-L270 — def test_the_refusal_happens_before_anything_is_written(daemon)
- test_naming_the_local_backend_explicitly_is_refused_too · function · L273-L281 — def test_naming_the_local_backend_explicitly_is_refused_too(daemon)
- test_an_admin_may_submit_to_the_local_backend · function · L284-L287 — def test_an_admin_may_submit_to_the_local_backend(daemon)
- test_a_single_user_daemon_keeps_the_local_backend · function · L290-L304 — def test_a_single_user_daemon_keeps_the_local_backend(tmp_path: Path)
- test_a_command_string_is_refused · function · L310-L321 — def test_a_command_string_is_refused(daemon)
- test_an_empty_command_is_refused · function · L324-L329 — def test_an_empty_command_is_refused(daemon)
- test_an_unknown_backend_is_refused_with_the_available_ones · function · L332-L344 — def test_an_unknown_backend_is_refused_with_the_available_ones(daemon)
- test_profiles_route_reports_no_cluster_when_unconfigured · function · L347-L351 — def test_profiles_route_reports_no_cluster_when_unconfigured(daemon)
- test_an_unknown_job_is_404 · function · L354-L357 — def test_an_unknown_job_is_404(daemon)
- test_the_api_never_exposes_a_backend_job_id · function · L363-L373 — def test_the_api_never_exposes_a_backend_job_id(daemon)
- test_one_live_allocation_per_workload_is_enforced_by_the_database · function · L376-L397 — def test_one_live_allocation_per_workload_is_enforced_by_the_database(daemon)
- test_a_cluster_job_is_admin_only_and_uses_the_same_routes · function · L403-L534 — def test_a_cluster_job_is_admin_only_and_uses_the_same_routes(tmp_path, monkeypatch)