consult occupancy within a period for an addressable object that has been changed infrastructurally
#language: en @gba Feature: consult occupancy within a period for an addressable object that has been changed infrastructurally Rule: occupancy is not supplied for an addressable object for (that part of) the period requested which falls before the date on which the BAG identifications were added Scenario Outline: the period requested begins on or after the date on which the BAG identifications were added to the addressable object requested Given address 'A1' has the following data | gemeentecode (92.10) | straatnaam (11.10) | | 0800 | Spui | And 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 address 'A1' was updated on '2022-05-01' with the following data | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800010000000001 | 0800200010877001 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | <datum van> | | datumTot | <datum tot> | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has an occupancy with the following data | naam | waarde | | periode | <datum van> tot <datum tot> | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has occupants with the following data | burgerservicenummer | | 000000024 | Examples: | datum van | datum tot | | 2022-07-01 | 2023-01-01 | | 2022-05-01 | 2023-01-01 | Scenario: the period requested falls before the date on which the BAG identifications were added to the addressable object requested Given address 'A1' has the following data | gemeentecode (92.10) | straatnaam (11.10) | | 0800 | Spui | And 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 address 'A1' was updated on '2022-05-01' with the following data | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800010000000001 | 0800200010877001 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2022-01-01 | | datumTot | 2022-04-30 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has 0 occupancies Scenario: the period requested overlaps the date on which the BAG identifications were added to the addressable object requested Given address 'A1' has the following data | gemeentecode (92.10) | straatnaam (11.10) | | 0800 | Spui | And 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 address 'A1' was updated on '2022-05-01' with the following data | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800010000000001 | 0800200010877001 | 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-05-01 tot 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has occupants with the following data | burgerservicenummer | | 000000024 | Rule: occupancy is not supplied for an addressable object that has been absorbed in a merger, for (that part of) the period requested which falls on or after the date of the merger Scenario: the addressable object requested has been absorbed in a merger and the period requested begins after the date of the merger Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000001 | 0800200010877001 | And 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 address 'A1' was merged on '2022-05-01' into address 'A2' with the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000002 | 0800200010877001 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2022-05-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has 0 occupancies Scenario: the addressable object requested has been absorbed in a merger and the period requested overlaps the date of the merger Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000001 | 0800200010877001 | And 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 address 'A1' was merged on '2022-05-01' into address 'A2' with the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000002 | 0800200010877001 | 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-05-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has occupants with the following data | burgerservicenummer | | 000000024 | Rule: occupancy is not supplied for an addressable object that arose from a merger, for (that part of) the period requested which falls before the date of the merger Scenario: the addressable object requested arose from a merger and the period requested ends before the date of the merger Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000001 | 0800200010877001 | And 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 address 'A1' was merged on '2022-05-01' into address 'A2' with the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000002 | 0800200010877001 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2022-01-01 | | datumTot | 2022-05-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has 0 occupancies Scenario: the addressable object requested arose from a merger and the period requested overlaps the date of the merger Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000001 | 0800200010877001 | And 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 address 'A1' was merged on '2022-05-01' into address 'A2' with the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000002 | 0800200010877001 | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2022-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | Then the response has an occupancy with the following data | naam | waarde | | periode | 2022-05-01 tot 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000002 | And the occupancy has occupants with the following data | burgerservicenummer | | 000000024 | Rule: occupancy is not supplied for an addressable object that has been split, for (that part of) the period requested which falls on or after the date of the split Scenario: the addressable object requested has been split and the period requested begins after the date of the split Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000001 | 0800200010877001 | And address 'A1' has been split into addresses with the following data | adres | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | A2 | 0800 | 0800010000000002 | 0800200022192682 | | A3 | 0800 | 0800010000000003 | 0800200010877001 | And 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 was subsequently registered at address 'A2' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | aangifte adreshouding (72.10) | | 0800 | 20220501 | W | And the person with citizen service number '000000048' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20100818 | And the person was subsequently registered at address 'A3' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | aangifte adreshouding (72.10) | | 0800 | 20220501 | W | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2022-05-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | Then the response has 0 occupancies Scenario: the addressable object requested has been split and the period requested overlaps the date of the split Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000001 | 0800200010877001 | And address 'A1' has been split into addresses with the following data | adres | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | A2 | 0800 | 0800010000000002 | 0800200022192682 | | A3 | 0800 | 0800010000000003 | 0800200010877001 | And 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 was subsequently registered at address 'A2' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | aangifte adreshouding (72.10) | | 0800 | 20220501 | W | And the person with citizen service number '000000048' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20100818 | And the person was subsequently registered at address 'A3' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | aangifte adreshouding (72.10) | | 0800 | 20220501 | W | 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-05-01 | | adresseerbaarObjectIdentificatie | 0800010000000001 | And the occupancy has occupants with the following data | burgerservicenummer | | 000000024 | | 000000048 | Rule: occupancy is not supplied for an addressable object that arose from a split, for (that part of) the period requested which falls before the date of the split Scenario Outline: occupancy is requested for an addressable object that arose from a split and the period requested ends before the date of the split Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000001 | 0800200010877001 | And address 'A1' has been split into addresses with the following data | adres | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | A2 | 0800 | 0800010000000002 | 0800200022192682 | | A3 | 0800 | 0800010000000003 | 0800200010877001 | And 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 was subsequently registered at address 'A2' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | aangifte adreshouding (72.10) | | 0800 | 20220501 | W | And the person with citizen service number '000000048' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20100818 | And the person was subsequently registered at address 'A3' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | aangifte adreshouding (72.10) | | 0800 | 20220501 | W | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2022-01-01 | | datumTot | 2022-05-01 | | adresseerbaarObjectIdentificatie | <adresseerbaar object identificatie> | Then the response has 0 occupancies Examples: | adresseerbaar object identificatie | | 0800010000000002 | | 0800010000000003 | Scenario Outline: occupancy is requested for an addressable object that arose from a split and the period requested overlaps the date of the split Given address 'A1' has the following data | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | 0800 | 0800010000000001 | 0800200010877001 | And address 'A1' has been split into addresses with the following data | adres | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | identificatiecode nummeraanduiding (11.90) | | A2 | 0800 | 0800010000000002 | 0800200022192682 | | A3 | 0800 | 0800010000000003 | 0800200010877001 | And 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 was subsequently registered at address 'A2' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | aangifte adreshouding (72.10) | | 0800 | 20220501 | W | And the person with citizen service number '000000048' is registered at address 'A1' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | | 0800 | 20100818 | And the person was subsequently registered at address 'A3' with the following data | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) | aangifte adreshouding (72.10) | | 0800 | 20220501 | W | When gba occupancy is searched with the following parameters | naam | waarde | | type | BewoningMetPeriode | | datumVan | 2022-01-01 | | datumTot | 2023-01-01 | | adresseerbaarObjectIdentificatie | <adresseerbaar object identificatie> | Then the response has an occupancy with the following data | naam | waarde | | periode | 2022-05-01 tot 2023-01-01 | | adresseerbaarObjectIdentificatie | <adresseerbaar object identificatie> | And the occupancy has occupants with the following data | burgerservicenummer | | <burgerservicenummer> | Examples: | adresseerbaar object identificatie | burgerservicenummer | | 0800010000000002 | 000000024 | | 0800010000000003 | 000000048 |