test authority relationships of a person of full age
#language: en @gba Feature: test authority relationships of a person of full age Rule: a person of full age who holds authority by operation of law over a minor who is not a child of that person is supplied the authority relationship to themselves # when the non-parent is queried, the authority module supplies no gezag # the authority can be established by requesting the authority over the children of the (former) partner or partners # for every authority relationship of the minor children it is determined whether the non-parent is the guardian of this child Scenario: the (former) partner of a deceased parent holds authority over the minor children and by now has another partner with whom the relationship has also ended Given the person with citizen service number '000000012' has a parent '1' with the following data | burgerservicenummer (01.20) | | 000000036 | And the following authority relationships apply to the person with citizen service number '000000012' | bsnMinderjarige | soortGezag | bsnMeerderjarige | | 000000012 | V | 000000048 | And the person with citizen service number '000000036' has a 'partner' with the following data | burgerservicenummer (01.20) | | 000000048 | And the person has a 'kind' with the following data | burgerservicenummer (01.20) | | 000000012 | And the person has the following 'overlijden' data | naam | waarde | | datum overlijden (08.10) | 20231001 | And the person with citizen service number '000000036' has no authority relationships And the person with citizen service number '000000048' has a 'partner' with the following data | burgerservicenummer (01.20) | datum huwelijkssluiting/aangaan geregistreerd partnerschap (06.10) | | 000000036 | 20120428 | And the 'partner' has been changed to the following data | burgerservicenummer (01.20) | datum ontbinding huwelijk/geregistreerd partnerschap (07.10) | reden ontbinding huwelijk/geregistreerd partnerschap (07.40) | | 000000036 | 20191001 | O | And the person has a 'partner' with the following data | burgerservicenummer (01.20) | datum huwelijkssluiting/aangaan geregistreerd partnerschap (06.10) | | 000000061 | 20230614 | And the 'partner' has been changed to the following data | burgerservicenummer (01.20) | datum ontbinding huwelijk/geregistreerd partnerschap (07.10) | reden ontbinding huwelijk/geregistreerd partnerschap (07.40) | | 000000061 | 20240217 | S | And the person with citizen service number '000000048' has no authority relationships And the person with citizen service number '000000061' has a 'partner' with the following data | burgerservicenummer (01.20) | datum huwelijkssluiting/aangaan geregistreerd partnerschap (06.10) | | 000000048 | 20230614 | When gba persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000048 | | fields | gezag | Then the response has a person with a 'gezag' with the following data | naam | waarde | | type | Voogdij | | minderjarige.burgerservicenummer | 000000012 | And 'gezag' has a 'derde' with the following data | naam | waarde | | burgerservicenummer | 000000048 | Scenario: the (former) partner of a deceased parent holds authority over the minor children and has subsequently had two other partners Given the person with citizen service number '000000012' has a parent '1' with the following data | burgerservicenummer (01.20) | | 000000036 | And the following authority relationships apply to the person with citizen service number '000000012' | bsnMinderjarige | soortGezag | bsnMeerderjarige | | 000000012 | V | 000000048 | And the person with citizen service number '000000036' has a 'partner' with the following data | burgerservicenummer (01.20) | | 000000048 | And the person has a 'kind' with the following data | burgerservicenummer (01.20) | | 000000012 | And the person has the following 'overlijden' data | naam | waarde | | datum overlijden (08.10) | 20231001 | And the person with citizen service number '000000036' has no authority relationships And the person with citizen service number '000000048' has a 'partner' with the following data | burgerservicenummer (01.20) | datum huwelijkssluiting/aangaan geregistreerd partnerschap (06.10) | | 000000036 | 20120428 | And the 'partner' has been changed to the following data | burgerservicenummer (01.20) | datum ontbinding huwelijk/geregistreerd partnerschap (07.10) | reden ontbinding huwelijk/geregistreerd partnerschap (07.40) | | 000000036 | 20191001 | O | And the person has a 'partner' with the following data | burgerservicenummer (01.20) | datum huwelijkssluiting/aangaan geregistreerd partnerschap (06.10) | | 000000061 | 20230614 | And the 'partner' has been changed to the following data | burgerservicenummer (01.20) | datum ontbinding huwelijk/geregistreerd partnerschap (07.10) | reden ontbinding huwelijk/geregistreerd partnerschap (07.40) | | 000000061 | 20240217 | S | And the person has a 'partner' with the following data | burgerservicenummer (01.20) | datum huwelijkssluiting/aangaan geregistreerd partnerschap (06.10) | | 000000072 | 20230412 | And the person with citizen service number '000000048' has no authority relationships And the person with citizen service number '000000061' has a 'partner' with the following data | burgerservicenummer (01.20) | datum huwelijkssluiting/aangaan geregistreerd partnerschap (06.10) | | 000000048 | 20230614 | And the person with citizen service number '000000072' has a 'partner' with the following data | burgerservicenummer (01.20) | datum huwelijkssluiting/aangaan geregistreerd partnerschap (06.10) | | 000000048 | 20230412 | When gba persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000048 | | fields | gezag | Then the response has a person with a 'gezag' with the following data | naam | waarde | | type | Voogdij | | minderjarige.burgerservicenummer | 000000012 | And 'gezag' has a 'derde' with the following data | naam | waarde | | burgerservicenummer | 000000048 | Scenario: a (former) partner of a deceased parent holds authority over the minor children and the authority of another former partner is requested Given the person with citizen service number '000000012' has a parent '1' with the following data | burgerservicenummer (01.20) | | 000000036 | And the following authority relationships apply to the person with citizen service number '000000012' | bsnMinderjarige | soortGezag | bsnMeerderjarige | | 000000012 | V | 000000048 | And the person with citizen service number '000000036' has a 'partner' with the following data | burgerservicenummer (01.20) | | 000000048 | And the 'partner' has been changed to the following data | burgerservicenummer (01.20) | datum ontbinding huwelijk/geregistreerd partnerschap (07.10) | reden ontbinding huwelijk/geregistreerd partnerschap (07.40) | | 000000048 | 20191001 | S | And the person has a 'partner' with the following data | burgerservicenummer (01.20) | datum huwelijkssluiting/aangaan geregistreerd partnerschap (06.10) | | 000000061 | 20220614 | And the person has a 'kind' with the following data | burgerservicenummer (01.20) | | 000000012 | And the person has the following 'overlijden' data | naam | waarde | | datum overlijden (08.10) | 20231001 | And the person with citizen service number '000000036' has no authority relationships And the person with citizen service number '000000048' has a 'partner' with the following data | burgerservicenummer (01.20) | datum huwelijkssluiting/aangaan geregistreerd partnerschap (06.10) | | 000000036 | 20120428 | And the 'partner' has been changed to the following data | burgerservicenummer (01.20) | datum ontbinding huwelijk/geregistreerd partnerschap (07.10) | reden ontbinding huwelijk/geregistreerd partnerschap (07.40) | | 000000036 | 20191001 | S | And the person with citizen service number '000000061' has a 'partner' with the following data | burgerservicenummer (01.20) | datum huwelijkssluiting/aangaan geregistreerd partnerschap (06.10) | | 000000036 | 20220614 | And the 'partner' has been changed to the following data | burgerservicenummer (01.20) | datum ontbinding huwelijk/geregistreerd partnerschap (07.10) | reden ontbinding huwelijk/geregistreerd partnerschap (07.40) | | 000000036 | 20231001 | O | And the person with citizen service number '000000061' has no authority relationships When gba persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000061 | | fields | gezag | Then the response has a person without authority