HAAL✻CENTRAAL English translation
BRP API / Personen / Features / maximaal-aantal-zoekresultaten-gba

maximum number of search results for ZoekMetNaamEnGemeenteVanInschrijving

#language: en

@gba
Feature: maximum number of search results for ZoekMetNaamEnGemeenteVanInschrijving

  Background:
      Given the person with citizen service number '000000001' has the following data
      | geslachtsnaam (02.40) | voornamen (02.10) | geslachtsaanduiding (04.10) |
      | Maassen               | Pieter            | M                           |
      And the person has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0014                              |
      And the person with citizen service number '000000002' has the following data
      | geslachtsnaam (02.40) | voornamen (02.10) | geslachtsaanduiding (04.10) |
      | Maassen               | Pieter            | M                           |
      And the person has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0014                              |
      And the person with citizen service number '000000003' has the following data
      | geslachtsnaam (02.40) | voornamen (02.10) | geslachtsaanduiding (04.10) |
      | Maassen               | Pieter            | M                           |
      And the person has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0014                              |
      And the person with citizen service number '000000004' has the following data
      | geslachtsnaam (02.40) | voornamen (02.10) | geslachtsaanduiding (04.10) |
      | Maassen               | Pieter            | M                           |
      And the person has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0014                              |
      And the person with citizen service number '000000005' has the following data
      | geslachtsnaam (02.40) | voornamen (02.10) | geslachtsaanduiding (04.10) |
      | Maassen               | Pieter            | M                           |
      And the person has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0014                              |
      And the person with citizen service number '000000006' has the following data
      | geslachtsnaam (02.40) | voornamen (02.10) | geslachtsaanduiding (04.10) |
      | Maassen               | Pieter            | M                           |
      And the person has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0014                              |
      And the person with citizen service number '000000007' has the following data
      | geslachtsnaam (02.40) | voornamen (02.10) | geslachtsaanduiding (04.10) |
      | Maassen               | Pieter            | M                           |
      And the person has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0014                              |
      And the person with citizen service number '000000008' has the following data
      | geslachtsnaam (02.40) | voornamen (02.10) | geslachtsaanduiding (04.10) |
      | Maassen               | Pieter            | M                           |
      And the person has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0014                              |
      And the person with citizen service number '000000009' has the following data
      | geslachtsnaam (02.40) | voornamen (02.10) | geslachtsaanduiding (04.10) |
      | Maassen               | Pieter            | M                           |
      And the person has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0014                              |
      And the person with citizen service number '000000010' has the following data
      | geslachtsnaam (02.40) | voornamen (02.10) | geslachtsaanduiding (04.10) |
      | Maassen               | Pieter            | M                           |
      And the person has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0014                              |
      And the person with citizen service number '000000011' has the following data
      | geslachtsnaam (02.40) | voornamen (02.10) | geslachtsaanduiding (04.10) |
      | Maassen               | Pieter            | M                           |
      And the person has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0014                              |
      And the person has the following 'inschrijving' data
      | naam                                 | waarde |
      | reden opschorting bijhouding (67.20) | O      |
      And the person with citizen service number '000000012' has the following data
      | geslachtsnaam (02.40) | voornamen (02.10) | geslachtsaanduiding (04.10) |
      | Maassen               | Pieter            | M                           |
      And the person has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0014                              |
      And the person has the following 'inschrijving' data
      | naam                                 | waarde |
      | reden opschorting bijhouding (67.20) | F      |
      And the person with citizen service number '000000013' has the following data
      | geslachtsnaam (02.40) | voornamen (02.10) | geslachtsaanduiding (04.10) |
      | Maassen               | Pieter            | V                           |
      And the person has the following 'verblijfplaats' data
      | gemeente van inschrijving (09.10) |
      | 0014                              |
    

  Rule: Where more than 10 persons are found when searching, an error message is given

    @fout-case
    Scenario: More than 10 persons found
      When gba persons are searched with the following parameters
      | naam                    | waarde                               |
      | type                    | ZoekMetNaamEnGemeenteVanInschrijving |
      | geslachtsnaam           | Maassen                              |
      | voornamen               | Pieter                               |
      | gemeenteVanInschrijving | 0014                                 |
      | fields                  | burgerservicenummer                  |
      Then the response has an object with the following data
      | naam     | waarde                                                                    |
      | type     | https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.1               |
      | title    | Teveel zoekresultaten.                                                    |
      | status   | 400                                                                       |
      | detail   | Meer dan maximum van 10 zoekresultaten gevonden. Verfijn de zoekopdracht. |
      | code     | tooManyResults                                                            |
      | instance | /haalcentraal/api/brp/personen                                            |

    Scenario: A narrowed search finds exactly 10 persons, because deceased persons and removed personal records are not supplied
      When gba persons are searched with the following parameters
      | naam                    | waarde                               |
      | type                    | ZoekMetNaamEnGemeenteVanInschrijving |
      | geslachtsnaam           | Maassen                              |
      | voornamen               | Pieter                               |
      | gemeenteVanInschrijving | 0014                                 |
      | geslacht                | M                                    |
      | fields                  | burgerservicenummer                  |
      Then the response has 10 persons

    @fout-case
    Scenario: More than 10 persons, because deceased persons were searched for as well
      When gba persons are searched with the following parameters
      | naam                       | waarde                               |
      | type                       | ZoekMetNaamEnGemeenteVanInschrijving |
      | geslachtsnaam              | Maassen                              |
      | voornamen                  | Pieter                               |
      | gemeenteVanInschrijving    | 0014                                 |
      | geslacht                   | M                                    |
      | inclusiefOverledenPersonen | true                                 |
      | fields                     | burgerservicenummer                  |
      Then the response has an object with the following data
      | naam     | waarde                                                                    |
      | type     | https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.1               |
      | title    | Teveel zoekresultaten.                                                    |
      | status   | 400                                                                       |
      | detail   | Meer dan maximum van 10 zoekresultaten gevonden. Verfijn de zoekopdracht. |
      | code     | tooManyResults                                                            |
      | instance | /haalcentraal/api/brp/personen                                            |