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

Clear test datasets before integration test #294

Closed
ekraffmiller opened this issue Jan 31, 2024 · 0 comments · Fixed by #360
Closed

Clear test datasets before integration test #294

ekraffmiller opened this issue Jan 31, 2024 · 0 comments · Fixed by #360
Assignees
Labels
pm.GREI-d-2.7.1 NIH, yr2, aim7, task1: R&D UI modules for creating datasets and supporting publishing workflows pm.GREI-d-2.7.2 NIH, yr2, aim7, task2: Implement UI modules for creating datasets and publishing workflows Size: 10 A percentage of a sprint. 7 hours.

Comments

@ekraffmiller
Copy link
Contributor

ekraffmiller commented Jan 31, 2024

When the integration tests cause a build up of datasets in Dataverse, then calling destroyAll() before the "gets the total dataset count" test in DatasetJSDataverseRepository.spec.ts causes an optimistic lock exception in Dataverse.

To avoid having a large number of datasets to delete all at once, we can add destroyAll() to the beforeEach method of integration tests.
Here is an example of the test failure:
https://github.com/IQSS/dataverse-frontend/actions/runs/7653145563/job/20968488247

@ekraffmiller ekraffmiller added pm.GREI-d-2.7.1 NIH, yr2, aim7, task1: R&D UI modules for creating datasets and supporting publishing workflows pm.GREI-d-2.7.2 NIH, yr2, aim7, task2: Implement UI modules for creating datasets and publishing workflows labels Jan 31, 2024
@ekraffmiller ekraffmiller added the Size: 10 A percentage of a sprint. 7 hours. label Mar 27, 2024
@GPortas GPortas moved this to This Sprint 🏃‍♀️ 🏃 in IQSS Dataverse Project Mar 27, 2024
@GPortas GPortas moved this from This Sprint 🏃‍♀️ 🏃 to SPRINT READY in IQSS Dataverse Project Mar 27, 2024
@ekraffmiller ekraffmiller moved this from SPRINT READY to This Sprint 🏃‍♀️ 🏃 in IQSS Dataverse Project Mar 27, 2024
@ekraffmiller ekraffmiller moved this from This Sprint 🏃‍♀️ 🏃 to In Progress 💻 in IQSS Dataverse Project Mar 28, 2024
@ekraffmiller ekraffmiller self-assigned this Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pm.GREI-d-2.7.1 NIH, yr2, aim7, task1: R&D UI modules for creating datasets and supporting publishing workflows pm.GREI-d-2.7.2 NIH, yr2, aim7, task2: Implement UI modules for creating datasets and publishing workflows Size: 10 A percentage of a sprint. 7 hours.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant