From 3afa5a552ae27db4f910ec10d86a3e6228dd7561 Mon Sep 17 00:00:00 2001 From: Niek Otten Date: Thu, 16 Jul 2026 13:54:45 +0200 Subject: [PATCH] test(verify): the domain withdrawal check sends the owner bsn (refs #12) Co-Authored-By: Claude Opus 4.8 (1M context) --- infra/run-domain-check.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/infra/run-domain-check.sh b/infra/run-domain-check.sh index 74d6122..329209e 100755 --- a/infra/run-domain-check.sh +++ b/infra/run-domain-check.sh @@ -142,8 +142,10 @@ done [ -n "$task_id2" ] || { echo "FAIL — no Beoordelen task appeared for registration $reg_id2" >&2; docker logs "$dom" 2>&1 | tail -15 >&2; exit 1; } echo ">> Beoordelen task $task_id2 is waiting; withdrawing the registration via the domain" +# Owner-scoped: the withdraw carries the same bsn the registration was submitted with (S-11c). docker run --rm --network "$net" curlimages/curl:latest \ - -fsS -X POST "http://$dom_ip:8080/registrations/$reg_id2/withdraw" >/dev/null + -fsS -X POST "http://$dom_ip:8080/registrations/$reg_id2/withdraw" \ + -H 'Content-Type: application/json' -d '{"bsn":"123456782"}' >/dev/null echo ">> asserting the process was cancelled (no Beoordelen task remains for the registration)" gone=""