NK-WP-0056-T04: bind-lane test reads the CCR as YAML

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:
tegwick 2026-10-30 23:00:31 +01:00
parent c6df34c4de
commit e0719ff663

View file

@ -75,7 +75,8 @@ def lane(tmp_path, monkeypatch):
(platform / 'scripts').mkdir()
shutil.copy(PLATFORM / 'scripts/credential-change.py', platform / 'scripts/credential-change.py')
shutil.copy(PLATFORM / 'openbao/policies/net-kingdom-svc-provisioner-bind-eso.hcl', platform / 'openbao/policies/')
ccr = json.loads((PLATFORM / 'credential-change-requests' / CCR).read_text())
import yaml
ccr = yaml.safe_load((PLATFORM / 'credential-change-requests' / CCR).read_text())
ccr['status'] = 'approved'
ccr['review']['comments'] = [{'reviewer': f'User ({r})', 'decision': 'approved', 'source_ref': 'statehub:decision:synthetic',
'comment': 'synthetic', 'reviewed_at': '2026-10-30T00:00:00+00:00'}