not supplying an occupant with suspension of maintenance
#language: en @gba Feature: not supplying an occupant with suspension of maintenance Background: Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000001 | Rule: persons with a removed personal record are not regarded as occupants Scenario: the person has a removed personal record Given the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20100818 | And the person has the following 'inschrijving' data | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) | | 20220829 | F | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2010-09-01 | | datumTot | 2011-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has 0 occupancies Rule: persons on a logically deleted personal record are not regarded as occupants Scenario: the person is suspended with reason "W" (erasure) Given the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20100818 | And the person has the following 'inschrijving' data | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) | | 20220829 | W | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2010-09-01 | | datumTot | 2011-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has 0 occupancies Rule: persons with suspension of maintenance with a designation other than "F" or "W" are not regarded as occupants after the date of suspension of maintenance Scenario Outline: the person is suspended with reason "<reden opschorting bijhouding>" (<reden opschorting omschrijving>) and the period requested ends on or before the date of suspension of maintenance Given the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20100818 | And the person has the following 'inschrijving' data | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) | | 20220829 | <reden opschorting bijhouding> | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2022-01-01 | | datumTot | 2022-08-29 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | 2022-01-01 tot 2022-08-29 | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000024 | Examples: | reden opschorting bijhouding | reden opschorting omschrijving | | O | overlijden | | E | emigratie | | M | ministerieel besluit | | R | pl is aangelegd in de rni | | . | onbekend | Scenario Outline: the person is suspended with reason "<reden opschorting bijhouding>" (<reden opschorting omschrijving>) and the period requested begins before and ends after the date of suspension of maintenance Given the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20100818 | And the person has the following 'inschrijving' data | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) | | 20220829 | <reden opschorting bijhouding> | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2022-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | 2022-01-01 tot 2022-08-29 | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000024 | Examples: | reden opschorting bijhouding | reden opschorting omschrijving | | O | overlijden | | E | emigratie | | M | ministerieel besluit | | R | pl is aangelegd in de rni | | . | onbekend | Scenario Outline: the person is suspended with reason "<reden opschorting bijhouding>" (<reden opschorting omschrijving>) and <scenario> Given the person with citizen service number '000000024' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20100818 | And the person has the following 'inschrijving' data | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) | | 20220829 | <reden opschorting bijhouding> | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | <datum van> | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has 0 occupancies Examples: | reden opschorting bijhouding | reden opschorting omschrijving | datum van | scenario | | O | overlijden | 2022-08-29 | periode begint op datum opschorting bijhouding | | O | overlijden | 2022-09-01 | periode begint na datum opschorting bijhouding | | E | emigratie | 2022-08-29 | periode begint op datum opschorting bijhouding | | E | emigratie | 2022-09-01 | periode begint na datum opschorting bijhouding | | M | ministerieel besluit | 2022-08-29 | periode begint op datum opschorting bijhouding | | M | ministerieel besluit | 2022-09-01 | periode begint na datum opschorting bijhouding | | R | pl is aangelegd in de rni | 2022-08-29 | periode begint op datum opschorting bijhouding | | R | pl is aangelegd in de rni | 2022-09-01 | periode begint na datum opschorting bijhouding | | . | onbekend | 2022-08-29 | periode begint op datum opschorting bijhouding | | . | onbekend | 2022-09-01 | periode begint na datum opschorting bijhouding | Scenario Outline: the person died during the stay at the address requested and <scenario> is requested Given address 'vorige' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000002 | And the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210314 | And the person was subsequently registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210526 | And the person has the following 'inschrijving' data | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) | | 20211127 | O | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2021-01-01 | | datumTot | <datumTot> | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | 2021-05-26 tot <periode tot> | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | Examples: | scenario | datumTot | periode tot | | periode eindigt voor overlijden | 2021-11-01 | 2021-11-01 | | periode gevraagd tot na overlijden | 2022-01-01 | 2021-11-27 | Scenario: the person died after leaving the address requested Given address 'vorige' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000002 | And address 'volgende' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000003 | And address 'daaropvolgende' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000004 | And the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210516 | And the person was subsequently registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210526 | And the person was subsequently registered at address 'volgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20210730 | And the person was subsequently registered at address 'daaropvolgende' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20211014 | And the person has the following 'inschrijving' data | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) | | 20211127 | O | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2021-01-01 | | datumTot | 2022-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | 2021-05-26 tot 2021-07-30 | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | Scenario Outline: maintenance of the person has been suspended during the period of uncertainty of the start of the address occupancy Given the person with citizen service number '000000012' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang> | And the person has the following 'inschrijving' data | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) | | 20211127 | O | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode> | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Examples: | datum aanvang | periode | | 20211100 | 2021-11-01 tot 2021-11-27 | | 20210000 | 2021-01-01 tot 2021-11-27 | | 00000000 | 2020-01-01 tot 2021-11-27 | Scenario Outline: maintenance of the person has been suspended during the period of uncertainty of the start of the address occupancy and the start of the previous stay falls within the period of uncertainty Given address 'vorige' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | | 0800 | 0800010000000002 | And the person with citizen service number '000000012' is registered at address 'vorige' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20211104 | And the person was subsequently registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | <datum aanvang> | And the person has the following 'inschrijving' data | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) | | 20211127 | O | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode> | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Examples: | datum aanvang | periode | | 20211100 | 2021-11-05 tot 2021-11-27 | | 20210000 | 2021-11-05 tot 2021-11-27 | | 00000000 | 2021-11-05 tot 2021-11-27 | Scenario Outline: maintenance of the person has been suspended during the period of uncertainty of the start of the next address occupancy Given the person with citizen service number '000000012' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20200526 | And the 'verblijfplaats' has been changed to the following data | land (13.10) | datum aanvang adres buitenland (13.20) | regel 1 adres buitenland (13.30) | regel 2 adres buitenland (13.40) | regel 3 adres buitenland (13.50) | | 5010 | <datum aanvang> | Rue du pomme 26 | Bruxelles | postcode 1000 | And the person has the following 'inschrijving' data | datum opschorting bijhouding (67.10) | reden opschorting bijhouding (67.20) | | 20211127 | R | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2020-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | <periode bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has an occupant with the following data | burgerservicenummer | | 000000012 | And the response has an occupancy with the following data | naam | waarde | | periode | <periode mogelijke bewoner> | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has a possible occupant with the following data | burgerservicenummer | | 000000012 | Examples: | datum aanvang | periode bewoner | periode mogelijke bewoner | | 20211100 | 2020-05-26 tot 2021-11-01 | 2021-11-01 tot 2021-11-27 | | 20210000 | 2020-05-26 tot 2021-01-01 | 2021-01-01 tot 2021-11-27 | | 00000000 | 2020-05-26 tot 2020-05-27 | 2020-05-27 tot 2021-11-27 |