Introduce a Reqnroll.xUnit acceptance project under tests/acceptance/ and the first Gherkin scenario driving S-04: the ACL default-fills the ZGW-mandatory zaak fields (ADR-0003) from a domain registration payload. Red: the scenario is discovered but has no step bindings yet, so it fails with undefined steps. The green commit wires the bindings to AclService. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
28 lines
1.8 KiB
Gherkin
28 lines
1.8 KiB
Gherkin
# language: en
|
|
# Drives S-04 (#5). The ACL is the only code that talks to ZGW (ADR-0001); it
|
|
# default-fills the ZGW-mandatory zaak fields the domain never sees (ADR-0003).
|
|
# Real-OpenZaak verification is a separate slice — this scenario exercises the
|
|
# use case against an in-memory stand-in for the Zaken API.
|
|
Feature: Een zaak openen vanuit een registratie
|
|
Als domein wil ik de ACL vragen een zaak te openen
|
|
zodat de ZGW-verplichte velden worden ingevuld zonder dat het domein ze kent.
|
|
|
|
Scenario: De ACL vult de ZGW-verplichte velden default in
|
|
Given a domain registration for BSN "123456782"
|
|
And the ACL is configured with these defaults:
|
|
| field | value |
|
|
| bronorganisatie | 517439943 |
|
|
| verantwoordelijkeOrganisatie | 517439943 |
|
|
| vertrouwelijkheidaanduiding | openbaar |
|
|
| zaaktype | http://openzaak/catalogi/api/v1/zaaktypen/big |
|
|
And today is "2026-06-04"
|
|
When the domain asks the ACL to open a zaak
|
|
Then a zaak is created with these default-filled fields
|
|
| field | value |
|
|
| bronorganisatie | 517439943 |
|
|
| verantwoordelijkeOrganisatie | 517439943 |
|
|
| vertrouwelijkheidaanduiding | openbaar |
|
|
| zaaktype | http://openzaak/catalogi/api/v1/zaaktypen/big |
|
|
| startdatum | 2026-06-04 |
|
|
And the ACL returns the URL of the created zaak
|