feat: integrate native diagnostics and coordinated CBB transactions
This commit is contained in:
1 parent
9e230e1a46
commit
da67de026f
91 files changed
+14370
-435
No files matched your search
@@ -54,6 +54,15 @@ def test_missing_cert_cannot_block_saved_and_closed_worker(tmp_path, monkeypatch
|
||||
assert any(e['stage'] == 'cert_diagnostics' and e['non_blocking'] for e in events)
|
||||
|
||||
|
||||
def test_verify_does_not_create_automatic_project_backup(tmp_path, monkeypatch):
|
||||
job, events, execute = exercise_worker(tmp_path, monkeypatch)
|
||||
monkeypatch.setattr(adapter, 'best_effort_backup',
|
||||
lambda *a, **kw: pytest.fail('automatic project backup must not run'))
|
||||
assert execute()['status'] == 'PASS'
|
||||
assert not (Path(job['root'])/'backup').exists()
|
||||
assert any(e['stage'] == 'backup_skipped' and e['reason'] == 'manual_backup_policy' for e in events)
|
||||
|
||||
|
||||
def test_cert_diagnostic_io_failure_is_nonblocking(tmp_path, monkeypatch):
|
||||
from cbb_refresh_verify.mentor_adapter import collect_cert_evidence
|
||||
original = Path.stat
|
||||
|
||||
Reference in new issue
Block a user