feat(bff): owner-scoped self-service withdraw endpoint (S-11c-1, refs #12) #90
@@ -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; }
|
[ -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"
|
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 \
|
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)"
|
echo ">> asserting the process was cancelled (no Beoordelen task remains for the registration)"
|
||||||
gone=""
|
gone=""
|
||||||
|
|||||||
Reference in New Issue
Block a user