Bind node API recipe controls to the add-node specimen

The first exact documentation run found two fixture-selection failures: the Nodes and Config section also contains export/import JSON. Read only the existing Add Node subsection for its single configuration specimen; retain all transport, trust and original-document controls.

Contract-Neutral: Documentation recipe test extraction only; no product runtime, subsystem contract or guide content change.
Change-source: pulse-maintainer
This commit is contained in:
pulse-triage[bot]
2026-10-10 05:04:55 +01:00
parent 299bddee3b
commit b65ff95fe2
+2 -1
View File
@@ -33,7 +33,8 @@ def preparation() -> str:
def sample() -> dict:
blocks = re.findall(r"```json\n(.*?)```", section(), re.DOTALL)
add_node = section().split("### Add Node\n", 1)[1].split("\n### ", 1)[0]
blocks = re.findall(r"```json\n(.*?)```", add_node, re.DOTALL)
if len(blocks) != 1:
raise AssertionError("expected one node configuration specimen")
return json.loads(blocks[0])