Orchestrata Ultimate › Tests › Reference › scripts › test_slot_lease
Tests reference — tests/scripts/test_slot_lease.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_slot_lease.py
source · 17 tests · 292 lines
Tests for scripts/slot_lease.py — worker-slot reservation
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_find_contiguous_range_picks_lowest_free_block |
44 | |
| function | test_find_contiguous_range_skips_gaps_too_small |
50 | |
| function | test_reap_expired_drops_past_and_keeps_future_and_none |
58 | |
| function | test_acquire_then_collide_then_release |
76 | |
| function | test_acquire_raises_when_no_contiguous_range_fits |
98 | |
| function | test_acquire_rejects_bad_count |
110 | |
| function | test_ttl_expiry_via_deterministic_clock_no_sleep |
117 | The now= seam drives TTL expiry deterministically -- no sleeping |
| function | test_ttl_none_never_expires |
130 | |
| function | test_release_of_unknown_owner_removes_nothing |
139 | |
| function | test_read_state_recovers_from_corrupt_json |
148 | |
| function | test_read_state_missing_file_returns_empty |
155 | |
| function | test_default_state_path_uses_env_override_in_subprocess |
160 | default_state_path() reads SLOT_LEASE_STATE from the process |
| function | test_cli_acquire_prints_shell_exports |
205 | |
| function | test_cli_list_and_release |
214 | |
| function | test_cli_check_exit_codes |
227 | |
| function | test_cli_acquire_error_when_exhausted |
239 | |
| function | test_concurrent_acquires_never_overlap |
253 |