← Về thư mục
tests/test_completion_delivery.py
- _ArtifactStore · class · L59-L70 — class _ArtifactStore
- init · method · L60-L62 — def init(self, *, version: dict, artifact: dict) -> None
- version_meta · method · L64-L65 — def version_meta(self, version_id: str) -> dict | None
- get_artifact · method · L67-L70 — def get_artifact(self, artifact_id: str) -> dict | None
- _service · function · L73-L101 — def _service(tmp_path, , content=b"measured-data", *version_overrides)
- _repository · function · L104-L128 — def _repository()
- _manifest · function · L131-L146 — def _manifest()
- _candidate_metadata · function · L149-L156 — def _candidate_metadata()
- _verified_metadata · function · L159-L165 — def _verified_metadata()
- test_url_helper_preserves_flag_off_and_encodes_one_exact_version_segment · function · L168-L193 — def test_url_helper_preserves_flag_off_and_encodes_one_exact_version_segment(): # Flag-off keeps its mutable-head (artifact id, else filename) semantics, # but under the versioned root the gateway actually serves. The old # un-versioned
/api/artifacts/... form was answered with a 404 by every # daemon since the HTTP surface moved to /api/v1.
- test_manifest_verifies_scope_snapshot_hash_size_and_omits_local_path · function · L196-L223 — def test_manifest_verifies_scope_snapshot_hash_size_and_omits_local_path(tmp_path)
- test_manifest_scope_and_metadata_fail_closed · function · L236-L252 — def test_manifest_scope_and_metadata_fail_closed(tmp_path, change, error)
- test_manifest_rejects_missing_tampered_and_untrusted_snapshot · function · L255-L291 — def test_manifest_rejects_missing_tampered_and_untrusted_snapshot(tmp_path)
- test_manifest_rejects_mid_read_rewrite_with_restored_mtime · function · L294-L335 — def test_manifest_rejects_mid_read_rewrite_with_restored_mtime(tmp_path, monkeypatch)
- rewrite_after_first_snapshot_read · function · L303-L320 — def rewrite_after_first_snapshot_read(descriptor, size)
- test_final_message_and_delivery_commit_are_atomic_and_idempotent · function · L338-L382 — def test_final_message_and_delivery_commit_are_atomic_and_idempotent()
- test_candidate_metadata_is_in_the_atomic_commit_and_idempotency_identity · function · L385-L439 — def test_candidate_metadata_is_in_the_atomic_commit_and_idempotency_identity()
- test_candidate_delivery_promotion_is_exact_atomic_and_idempotent · function · L442-L521 — def test_candidate_delivery_promotion_is_exact_atomic_and_idempotent()
- test_candidate_delivery_promotion_fault_rolls_back_message_and_digest · function · L524-L562 — def test_candidate_delivery_promotion_fault_rolls_back_message_and_digest()
- test_unchanged_candidate_can_promote_its_verdict_and_replay · function · L565-L596 — def test_unchanged_candidate_can_promote_its_verdict_and_replay()
- test_published_candidate_delivery_can_never_be_promoted · function · L599-L624 — def test_published_candidate_delivery_can_never_be_promoted()
- test_delivery_promotion_refuses_a_committed_non_candidate_message · function · L627-L648 — def test_delivery_promotion_refuses_a_committed_non_candidate_message()
- test_non_stage1_candidate_message_cas_is_exact_and_replay_safe · function · L651-L694 — def test_non_stage1_candidate_message_cas_is_exact_and_replay_safe()
- test_delivery_binds_exact_version_until_owning_message_is_deleted · function · L697-L719 — def test_delivery_binds_exact_version_until_owning_message_is_deleted()
- test_delivery_rejects_a_manifest_changed_after_service_verification · function · L722-L734 — def test_delivery_rejects_a_manifest_changed_after_service_verification()
- test_delivery_insert_fault_rolls_back_the_final_message · function · L737-L759 — def test_delivery_insert_fault_rolls_back_the_final_message()
- test_import_binding_atomically_replaces_source_message_relation_and_urls · function · L762-L809 — def test_import_binding_atomically_replaces_source_message_relation_and_urls()
- test_import_binding_fault_rolls_back_message_update_and_ledger · function · L812-L859 — def test_import_binding_fault_rolls_back_message_update_and_ledger()
- test_delivery_commit_rechecks_exact_version_visibility_inside_transaction · function · L870-L890 — def test_delivery_commit_rechecks_exact_version_visibility_inside_transaction(mutation)
- test_publication_is_write_once_and_committed_rows_are_recoverable · function · L893-L919 — def test_publication_is_write_once_and_committed_rows_are_recoverable()
- test_recovery_fails_closed_if_durable_manifest_hash_no_longer_matches · function · L922-L939 — def test_recovery_fails_closed_if_durable_manifest_hash_no_longer_matches()
- test_idempotent_retry_fails_closed_if_version_relation_was_lost · function · L942-L968 — def test_idempotent_retry_fails_closed_if_version_relation_was_lost()
- test_store_delivery_facade_commits_recovers_and_marks_published · function · L971-L1029 — def test_store_delivery_facade_commits_recovers_and_marks_published(tmp_path)
- test_service_and_store_facades_commit_and_promote_one_candidate · function · L1032-L1093 — def test_service_and_store_facades_commit_and_promote_one_candidate(tmp_path)
- test_store_reopen_refuses_a_corrupt_completion_delivery · function · L1106-L1176 — def test_store_reopen_refuses_a_corrupt_completion_delivery(tmp_path, corrupt)
- test_store_reopen_validates_delivery_projection_with_bounded_queries · function · L1179-L1245 — def test_store_reopen_validates_delivery_projection_with_bounded_queries(tmp_path)
- test_delivery_projection_batches_past_sql_parameter_boundary · function · L1248-L1288 — def test_delivery_projection_batches_past_sql_parameter_boundary()