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

fix: Fix failing pipeline test [DHIS2-18870] #19728

Merged
merged 1 commit into from
Jan 20, 2025
Merged

fix: Fix failing pipeline test [DHIS2-18870] #19728

merged 1 commit into from
Jan 20, 2025

Conversation

muilpp
Copy link
Contributor

@muilpp muilpp commented Jan 20, 2025

testGetAuditsByParams is failing on the pipeline

This tests works locally.
It fails on the pipeline because when it's run, the database is in an inconsistent state.
The test expects to find two entries when searching for CREATE and DELETE audit entries, but there are two other DELETE entries created by the admin user, unrelated to the test, so it fails.

I've tried to figure out what's the test responsible of those two entries, but I haven't managed to find it so far.
I thought it was the DeduplicationServiceMergeIntegrationTest, as it creates DELETE entries and it was not marked as Transactional, but turns out it's not.

I don't want to spend more time on this, so for now I'm refactoring the test to get only the entries of the users related to this test class.

@muilpp muilpp marked this pull request as ready for review January 20, 2025 15:03
@muilpp muilpp enabled auto-merge (squash) January 20, 2025 15:09
@muilpp muilpp merged commit 5510546 into master Jan 20, 2025
17 checks passed
@muilpp muilpp deleted the DHIS2-18870 branch January 20, 2025 15:13
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.

3 participants