fix: bind release receipts and external export ownership
This commit is contained in:
1 parent
b070837acb
commit
0440b2efbf
6 files changed
+262
-12
No files matched your search
@@ -162,15 +162,15 @@ def test_target_address_uses_native_inspection_and_keeps_recovery_separate(tmp_p
|
||||
cleanup(lease)
|
||||
|
||||
|
||||
def test_unknown_checkpoint_excludes_explicit_other_export_server(tmp_path, monkeypatch):
|
||||
def test_unknown_checkpoint_does_not_disown_export_server_from_path_alone(tmp_path, monkeypatch):
|
||||
library = library_file(tmp_path)
|
||||
locks.blocker_path(library).write_bytes(b'unknown')
|
||||
other = {'pid': 123456, 'name': 'icdbnetserver.exe',
|
||||
'command': f'icdbnetserver.exe -icdb "{tmp_path}/Other/database"'}
|
||||
monkeypatch.setattr('cbb_refresh_verify.owner_probe.query_owners', lambda *_: [other])
|
||||
monkeypatch.setattr('cbb_refresh_verify.native_engineering_identity._process_snapshot', lambda: [other])
|
||||
proof = locks.release_retained_library(library, tmp_path/'evidence')
|
||||
assert proof['status'] == 'RELEASE_CONFIRMED'
|
||||
with pytest.raises(locks.LibraryBusy):
|
||||
locks.release_retained_library(library, tmp_path/'evidence')
|
||||
|
||||
|
||||
def test_file_proof_holds_real_handle_until_context_exit(tmp_path):
|
||||
|
||||
Reference in new issue
Block a user