HAAL✻CENTRAAL English translation
BRP API / Personen / Features / gegevens-bij-bevragen-meerjarige-in-onderzoek

where data is under investigation, an authority ruling is supplied with an explanation of which data is under investigation

#language: en

Feature: where data is under investigation, an authority ruling is supplied with an explanation of which data is under investigation

  Background:
    Given the person 'Rianne' with citizen service number '000000012'
    * is of full age
    And the person 'Roel' with citizen service number '000000024'
    * is of full age
    And 'Rianne' and 'Roel' are married to each other
    And the person 'Richard' with citizen service number '000000036'
    * is a minor
    * was born in the Netherlands
    * is registered in the BRP
    * has 'Rianne' as parent 1
    * has 'Roel' as parent 2
    And the person 'Randy' with citizen service number '000000048'
    * is a minor
    * was born in the Netherlands
    * is registered in the BRP
    * has 'Rianne' as parent 1
    * has 'Roel' as parent 2
    And the person 'Rijk' with citizen service number '000000061'
    * is a minor
    * was born in the Netherlands
    * is registered in the BRP
    * has 'Rianne' as parent 1
    * has 'Roel' as parent 2

  Scenario Outline: the authority is determined using data of 1 of the children: <omschrijving> under investigation, there is GezamenlijkOuderlijkGezag
    Given person 'Richard'
    * the following data has been changed
      | aanduiding in onderzoek (83.10) |
      | <aanduiding onderzoek>          |
    When 'gezag' is requested for 'Roel'
    Then 'Roel' has the following authority relationships
    * the authority over 'Richard' is joint parental authority with parent 'Rianne' and parent 'Roel'
    * the authority is under investigation
    * the authority over 'Randy' is joint parental authority with parent 'Rianne' and parent 'Roel'
    * the authority over 'Rijk' is joint parental authority with parent 'Rianne' and parent 'Roel'

    Examples:
      | aanduiding onderzoek | omschrijving   |
      | 010310               | geboortedatum  |
      | 010330               | geboorteland   |
      | 010000               | hele categorie |

  Scenario Outline: the authority is determined using data of parent 2: <omschrijving> under investigation, there is GezamenlijkOuderlijkGezag
    Given person '<persoon>'
    * the following data has been changed
      | aanduiding in onderzoek (83.10) |
      | <aanduiding onderzoek>          |
    When 'gezag' is requested for 'Roel'
    Then 'Roel' has the following authority relationships
    * the authority over 'Richard' is joint parental authority with parent 'Rianne' and parent 'Roel'
    * the authority is under investigation
    * the authority over 'Randy' is joint parental authority with parent 'Rianne' and parent 'Roel'
    * the authority is under investigation
    * the authority over 'Rijk' is joint parental authority with parent 'Rianne' and parent 'Roel'
    * the authority is under investigation

    Examples:
      | aanduiding onderzoek | omschrijving                       | persoon |
      | 010000               | hele categorie van deze ouder      | Roel    |
      | 010000               | hele categorie van de andere ouder | Rianne  |