HAALCENTRAAL English translation
BRP API / Personen / Features / expressief

Step definitions for specifying authority relationships

# language: en
@integratie @stap-documentatie
Feature: Step definitions for specifying authority relationships

  Rule: We refer to a person functionally by a name and technically by a citizen service number
    By default a person was born in the Netherlands with a Dutch birth certificate.

    @integratie
    Scenario: the person '{naam}' with citizen service number '{bsn}'
      Given the person 'P1' has the following data
        | burgerservicenummer (01.20) | geslachtsnaam (02.40) |
        |                   000000012 | P1                    |
      When the SQL statements generated from the Given steps have been executed
      Then person 'P1' has the following row in table 'lo3_pl'
        | pl_id | geheim_ind |
        | P1    |          0 |
      And person 'P1' has the following rows in table 'lo3_pl_persoon'
        | pl_id | persoon_type | stapel_nr | volg_nr | burger_service_nr | geslachts_naam |
        | P1    | P            |         0 |       0 |         000000012 | P1             |

  Rule: We refer to a person functionally by a name and technically by a citizen service number
    By default a person was born in the Netherlands with a Dutch birth certificate.

    @integratie
    Scenario: the person '{naam}' with citizen service number '{bsn}'
      Given the person 'P1' with citizen service number '000000012'
      When the SQL statements generated from the Given steps have been executed
      Then person 'P1' has the following row in table 'lo3_pl'
        | pl_id | geheim_ind |
        | P1    |          0 |
      And person 'P1' has the following rows in table 'lo3_pl_persoon'
        | pl_id | persoon_type | stapel_nr | volg_nr | burger_service_nr | geslachts_naam | geboorte_land_code | akte_nr |
        | P1    | P            |         0 |       0 |         000000012 | P1             |               6030 | 1AA0100 |

  Rule: You can change the context to a person entered earlier

    @integratie
    Scenario: person '{naam}'
      Given the person 'P1' with citizen service number '000000012'
      And the person 'P2' with citizen service number '000000024'
      And person 'P1'
      * is of full age
      When the SQL statements generated from the Given steps have been executed
      Then person 'P2' has the following row in table 'lo3_pl'
        | pl_id | geheim_ind |
        | P2    |          0 |
      And person 'P2' has the following rows in table 'lo3_pl_persoon'
        | pl_id | persoon_type | stapel_nr | volg_nr | burger_service_nr | geslachts_naam | geboorte_land_code | akte_nr |
        | P2    | P            |         0 |       0 |         000000024 | P2             |               6030 | 1AA0100 |
      And person 'P1' has the following row in table 'lo3_pl'
        | pl_id | geheim_ind |
        | P1    |          0 |
      And person 'P1' has the following rows in table 'lo3_pl_persoon'
        | pl_id | persoon_type | stapel_nr | volg_nr | burger_service_nr | geslachts_naam | geboorte_datum     | geboorte_land_code | akte_nr |
        | P1    | P            |         0 |       0 |         000000012 | P1             | gisteren - 45 jaar |               6030 | 1AA0100 |