pass the personal records supplied on to the access logging API
#language: en @protocollering Feature: pass the personal records supplied on to the access logging API Background: Given the person with citizen service number '000000024' has the following data | pl_id | geboortedatum (03.10) | geslachtsnaam (02.40) | voornamen (02.10) | | 2001 | 19830526 | Maassen | Pieter | And the person with citizen service number '000000048' has the following data | pl_id | geboortedatum (03.10) | geslachtsnaam (02.40) | voornamen (02.10) | voorvoegsel (02.30) | | 2002 | 19830526 | Maassen | Jan Peter | van | Rule: a comma-separated list of the personal records supplied is included in the response header "x-geleverde-pls" Scenario: consulting returns 1 person When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000024 | | fields | naam.voornamen | Then the response has a person with the following data | naam | waarde | | naam.voornamen | Pieter | And the response has the following headers | naam | waarde | | x-geleverde-pls | 2001 | Scenario: searching returns 2 persons When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Maassen | | geboortedatum | 1983-05-26 | | fields | naam.voornamen | Then the response has 2 persons And the response has a person with the following data | naam | waarde | | naam.voornamen | Pieter | And the response has a person with the following data | naam | waarde | | naam.voornamen | Jan Peter | And the response has the following headers | naam | waarde | | x-geleverde-pls | 2001,2002 | Scenario: searching returns no person When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Maassen | | geboortedatum | 1985-05-01 | | fields | naam.voornamen | Then the response has 0 persons And the response has the following headers | naam | waarde | | x-geleverde-pls | | @fout-case Scenario: consulting returns an error message When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000024 | | fields | bestaatNiet | Then the response has the following headers | naam | waarde | | x-geleverde-pls | |