Search by surname and date of birth - error cases
#language: en Feature: Search by surname and date of birth - error cases Rule: Geslachtsnaam and geboortedatum are mandatory parameters @fout-case Scenario: The geslachtsnaam and geboortedatum parameters have not been supplied When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: geboortedatum, geslachtsnaam. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | required | geboortedatum | Parameter is verplicht. | | required | geslachtsnaam | Parameter is verplicht. | @fout-case Scenario: Only the geslachtsnaam parameter has not been supplied When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geboortedatum | 1983-05-26 | | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: geslachtsnaam. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | required | geslachtsnaam | Parameter is verplicht. | @fout-case Scenario: Only the geboortedatum parameter has not been supplied When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | maassen | | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: geboortedatum. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | required | geboortedatum | Parameter is verplicht. | @fout-case Scenario: An empty string has been supplied as the geslachtsnaam and geboortedatum value When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | | | geboortedatum | | | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: geboortedatum, geslachtsnaam. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | required | geboortedatum | Parameter is verplicht. | | required | geslachtsnaam | Parameter is verplicht. | @fout-case Scenario Outline: <titel> When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | <geslachtsnaam> | | geboortedatum | <geboortedatum> | | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: <foutieve parameter>. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | required | <foutieve parameter> | Parameter is verplicht. | Examples: | titel | geboortedatum | geslachtsnaam | foutieve parameter | | Een lege string is opgegeven als geboortedatum waarde | | maassen | geboortedatum | | Een lege string is opgegeven als geslachtsnaam waarde | 1983-05-26 | | geslachtsnaam | Rule: The date of birth is a date string formatted according to the [ISO 8601 date format](https://www.w3.org/QA/Tips/iso-date) @fout-case Scenario Outline: An invalid date has been supplied as the geboortedatum value When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Maassen | | geboortedatum | <geboortedatum> | | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: geboortedatum. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | date | geboortedatum | Waarde is geen geldige datum. | Examples: | geboortedatum | | 19830526 | | 26 mei 1983 | Rule: A geslachtsnaam is a string of at least 1 and at most 200 characters. These characters may be: - lower-case letters (a-z) - upper-case letters (A-Z) - diacritics (À-ž) - space ( ), period (.), minus (-) and the single quotation mark (') @fout-case Scenario Outline: <titel> When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | <geslachtsnaam> | | geboortedatum | 1983-05-26 | | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: geslachtsnaam. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | pattern | geslachtsnaam | Waarde voldoet niet aan patroon ^[a-zA-Z0-9À-ž \.\-\']{1,200}$\|^[a-zA-Z0-9À-ž \.\-\']{3,199}\*{1}$. | Examples: | titel | geslachtsnaam | | De opgegeven geslachtsnaam is meer dan 200 karakters lang | abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | | De opgegeven geslachtsnaam bevat ongeldige karakters | <script>alert('hello world');</script> | Rule: A geslachtsnaam with a wildcard is a string of at least 3 and at most 199 characters, ending with the "*" character. The remaining characters may be: - lower-case letters (a-z) - upper-case letters (A-Z) - diacritics (À-ž) - space ( ), period (.), minus (-) and the single quotation mark (') @fout-case Scenario Outline: The "*" wildcard has been supplied as the first character of the geslachtsnaam parameter When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | <geslachtsnaam filter> | | geboortedatum | 1983-05-26 | | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: geslachtsnaam. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | pattern | geslachtsnaam | Waarde voldoet niet aan patroon ^[a-zA-Z0-9À-ž \.\-\']{1,200}$\|^[a-zA-Z0-9À-ž \.\-\']{3,199}\*{1}$. | Examples: | geslachtsnaam filter | | *sen | | *SEN | @fout-case Scenario Outline: The "*" wildcard occurs several times in the geslachtsnaam parameter When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | <geslachtsnaam filter> | | geboortedatum | 1983-05-26 | | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: geslachtsnaam. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | pattern | geslachtsnaam | Waarde voldoet niet aan patroon ^[a-zA-Z0-9À-ž \.\-\']{1,200}$\|^[a-zA-Z0-9À-ž \.\-\']{3,199}\*{1}$. | Examples: | geslachtsnaam filter | | *oen* | | *OEN* | | gr** | | *r*ot | | gr*o* | @fout-case Scenario Outline: The "*" wildcard character is not at the end of the geslachtsnaam parameter When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | <geslachtsnaam filter> | | geboortedatum | 1983-05-26 | | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: geslachtsnaam. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | pattern | geslachtsnaam | Waarde voldoet niet aan patroon ^[a-zA-Z0-9À-ž \.\-\']{1,200}$\|^[a-zA-Z0-9À-ž \.\-\']{3,199}\*{1}$. | Examples: | geslachtsnaam filter | | gr*t | | g*oot | @fout-case Scenario Outline: The geslachtsnaam supplied, excluding the "*" wildcard character, is not at least 3 characters long When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | <geslachtsnaam filter> | | geboortedatum | 1983-05-26 | | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: geslachtsnaam. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | pattern | geslachtsnaam | Waarde voldoet niet aan patroon ^[a-zA-Z0-9À-ž \.\-\']{1,200}$\|^[a-zA-Z0-9À-ž \.\-\']{3,199}\*{1}$. | Examples: | geslachtsnaam filter | | * | | *n | | n* | | ab* | | *** | @fout-case Scenario: Several invalid parameters have been supplied When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | <script>alert('hello world');</script> | | geboortedatum | 19830526 | | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: geboortedatum, geslachtsnaam. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | pattern | geslachtsnaam | Waarde voldoet niet aan patroon ^[a-zA-Z0-9À-ž \.\-\']{1,200}$\|^[a-zA-Z0-9À-ž \.\-\']{3,199}\*{1}$. | | date | geboortedatum | Waarde is geen geldige datum. | Rule: A voornamen value is a string of at least 1 and at most 199 characters. These characters may be: - lower-case letters (a-z) - upper-case letters (A-Z) - diacritics (À-ž) - space ( ), period (.), minus (-) and the single quotation mark (') @fout-case Scenario Outline: <titel> When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Jansen | | geboortedatum | 1983-05-26 | | voornamen | <voornamen> | | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: voornamen. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | pattern | voornamen | Waarde voldoet niet aan patroon ^[a-zA-Z0-9À-ž \.\-\']{1,199}\*{0,1}$. | Examples: | titel | voornamen | | De opgegeven voornamen zijn meer dan 200 karakters lang | abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | | De opgegeven voornamen bevat ongeldige karakters | <script>alert('hello world');</script> | Rule: A voornamen value with a wildcard is a string of at least 1 and at most 199 characters, ending with the "*" character. The remaining characters may be: - lower-case letters (a-z) - upper-case letters (A-Z) - diacritics (À-ž) - space ( ), period (.), minus (-) and the single quotation mark (') @fout-case Scenario Outline: The "*" wildcard has been supplied as the first character of the voornamen parameter When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Jansen | | geboortedatum | 1983-05-26 | | voornamen | <voornamen met wildcard> | | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: voornamen. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | pattern | voornamen | Waarde voldoet niet aan patroon ^[a-zA-Z0-9À-ž \.\-\']{1,199}\*{0,1}$. | Examples: | voornamen met wildcard | | *iet | | *ETER | Rule: A voorvoegsel value is a string of at least 1 and at most 10 characters. These characters may be: - lower-case letters (a-z) - upper-case letters (A-Z) - space ( ) and the single quotation mark (') @fout-case Scenario: An invalid value has been supplied for the 'voorvoegsel' parameter When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | maassen | | geboortedatum | 1983-05-26 | | voorvoegsel | <script>alert('hello world');</script> | | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: voorvoegsel. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | pattern | voorvoegsel | Waarde voldoet niet aan patroon ^[a-zA-Z \']{1,10}$. | Rule: The geslacht value is one character long and may be one of the following characters: M, m, V, v, O, o @fout-case Scenario Outline: An invalid value has been supplied for the 'geslacht' parameter When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | maassen | | geboortedatum | 1983-05-26 | | geslacht | <geslacht> | | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: geslacht. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | pattern | geslacht | Waarde voldoet niet aan patroon ^([Mm]\|[Vv]\|[Oo])$. | Examples: | geslacht | | N | | <script>alert('hello world');</script> | Rule: inclusiefOverledenPersonen is a boolean (a true or false value) @fout-case Scenario Outline: An invalid value has been supplied for the 'inclusiefOverledenPersonen' parameter When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | maassen | | geboortedatum | 1983-05-26 | | fields | burgerservicenummer | | inclusiefOverledenPersonen | <inclusief overleden personen> | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: inclusiefOverledenPersonen. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | boolean | inclusiefOverledenPersonen | Waarde is geen boolean. | Examples: | inclusief overleden personen | | | | geen boolean | Rule: A gemeenteVanInschrijving value consists of 4 digits @fout-case Scenario Outline: <titel> When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | maassen | | geboortedatum | 1983-05-26 | | gemeenteVanInschrijving | <gemeente code> | | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: gemeenteVanInschrijving. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | pattern | gemeenteVanInschrijving | Waarde voldoet niet aan patroon ^[0-9]{4}$. | Examples: | titel | gemeente code | | De opgegeven gemeenteVanInschrijving waarde is minder dan 4 cijfers lang | 123 | | De opgegeven gemeenteVanInschrijving waarde is meer dan 4 cijfers lang | 12345 | | De opgegeven gemeenteVanInschrijving waarde bevat ongeldige karakters | <script>alert('hello world');</script> | Rule: Only the parameters specified for the search type supplied may be used @fout-case Scenario Outline: <titel> When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | maassen | | geboortedatum | 1983-05-26 | | <parameter> | <waarde> | | 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 | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: <parameter>. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | unknownParam | <parameter> | Parameter is niet verwacht. | Examples: | titel | parameter | waarde | | zoeken met parameter uit ander zoektype | postcode | 1234AB | | typfout in naam optionele parameter | voorvoegsels | van der | | zoeken met niet gespecificeerde parameter | bestaatNiet | een waarde |