NK-WP-0056-T04: reconcile tool names the failing phase (custody, cluster, live-pair)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: opus Assistant-Process: 673304@bnt-lap001 Assistant-Session: 959b12c7-cf2e-440b-a60d-91229cc9e96e
This commit is contained in:
parent
05d63e05bd
commit
a4b6a8f753
2 changed files with 13 additions and 2 deletions
|
|
@ -83,5 +83,13 @@ def test_refuses_when_live_pair_disagrees(case):
|
|||
before = env.read_bytes()
|
||||
result = run(case, '--apply')
|
||||
assert result.returncode == 1 and result.stdout == ''
|
||||
assert json.loads(result.stderr) == {'result': 'unverified', 'phase': 'read', 'partial_changes_possible': False}
|
||||
assert json.loads(result.stderr) == {'result': 'unverified', 'phase': 'live-pair', 'partial_changes_possible': False}
|
||||
assert env.read_bytes() == before
|
||||
|
||||
|
||||
def test_missing_custody_copy_is_reported_as_custody(case):
|
||||
private, *_ = case
|
||||
import shutil; shutil.rmtree(private)
|
||||
result = run(case)
|
||||
assert result.returncode == 1
|
||||
assert json.loads(result.stderr)['phase'] == 'custody'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue