From e0719ff6630a7e3863df688304b8518c33883942 Mon Sep 17 00:00:00 2001 From: tegwick Date: Fri, 30 Oct 2026 23:00:31 +0100 Subject: [PATCH] NK-WP-0056-T04: bind-lane test reads the CCR as YAML Co-Authored-By: Claude Opus 5.5 Assistant: claude-code Assistant-Model: opus Assistant-Process: 673304@bnt-lap001 Assistant-Session: 959b12c7-cf2e-440b-a60d-91229cc9e96e --- tests/test_service_bind_lane.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_service_bind_lane.py b/tests/test_service_bind_lane.py index 013cb3b..ff406e2 100644 --- a/tests/test_service_bind_lane.py +++ b/tests/test_service_bind_lane.py @@ -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'}