Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update acceptance test tear down service #1234

Merged
merged 4 commits into from
Aug 5, 2024
Merged

Conversation

Beckyrose200
Copy link
Contributor

@Beckyrose200 Beckyrose200 commented Aug 5, 2024

DEFRA/water-abstraction-acceptance-tests#129

During the removal of our region data in the acceptance tests, it was noted that the new region seeder was being deleted in the tear-down service. The tear-down service relies on knowing if the region associated with the data is a test region or not through the 'isTest' property. After deleting the associated data with the test region it then deletes the region itself. As our region is now seeded and not being loaded fo every test, this last delete needs to be removed.
This PR is removing that.

DEFRA/water-abstraction-acceptance-tests#129

During the removal of region data in our acceptance test fixture file, it was noted that the new region seeder was breaking our tear down service. The tear down service relies on knowing if the region associated with the data is a test region or not through the 'isTest' property. The seeded test region has this set to false, when it needs to be true. This also means updating this data then deletes the test region itself at the end of ever tear down, so this PR is to update the region seeder and the tear down service.
@Beckyrose200 Beckyrose200 marked this pull request as ready for review August 5, 2024 15:49
@Beckyrose200 Beckyrose200 merged commit f3b2653 into main Aug 5, 2024
6 checks passed
@Beckyrose200 Beckyrose200 deleted the update-tear-down branch August 5, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants