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

Remove points data created during acceptance tests #1136

Merged
merged 4 commits into from
Jun 24, 2024
Merged

Conversation

rvsiyad
Copy link
Contributor

@rvsiyad rvsiyad commented Jun 24, 2024

https://eaflood.atlassian.net/browse/WATER-4488

During the process of creating acceptance tests for Copy from existing requirements, we noticed the duplication of naldPointId's in the return requirements points table. After digging deeper we noticed this was occurring due to missing SQL commands in the water schema service for removing return requirement points rows relating to the running acceptance tests. As a result of this, when running the tests again, multiple duplicated points would appear on the check page, further duplicating on each run of the acceptance test 😰.

This PR will add the required SQL for removing return requirement points created during the acceptance tests.

rvsiyad added 2 commits June 24, 2024 13:36
During the process of creating acceptance tests for [Copy from existing requirements](DEFRA/water-abstraction-acceptance-tests#98), we noticed
the duplication of naldPointId's in the return requirements points table. After digging deeper we noticed this was occurring due to missing SQL commands in
the water schema service for removing return requirement points rows relating to the running acceptance tests. As a result of this, when running the tests again,
multiple duplicated points would appear on the check page, further duplicating on each run of the acceptance test 😰.

This PR will add the required SQL for removing return requirement points created during the acceptance tests.
@rvsiyad rvsiyad self-assigned this Jun 24, 2024
@rvsiyad rvsiyad added the enhancement New feature or request label Jun 24, 2024
@rvsiyad rvsiyad changed the title Tear down points Remove points data created during acceptance tests Jun 24, 2024
@rvsiyad rvsiyad requested a review from Cruikshanks June 24, 2024 12:59
@rvsiyad rvsiyad marked this pull request as ready for review June 24, 2024 14:42
@rvsiyad rvsiyad merged commit 09290b0 into main Jun 24, 2024
6 checks passed
@rvsiyad rvsiyad deleted the tear-down-points branch June 24, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants