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=""