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

OBPIH-6486: hibernate errors running tests against different contexts #4662

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

EWaterman
Copy link
Collaborator

https://pihemr.atlassian.net/browse/OBPIH-6486

This change doesn't actually fix the issue, but it does make tests pass while we figure out the cause. There's something strange going on with how hibernate is loading our domains in the app context during tests that is preventing us from having some tests use some context config and other tests use another config.

I also took the opportunity to restructure our packages. Now it works like:
image
with API, slice, and smoke tests being separated into their own packages which we can run independently if we want.

@EWaterman EWaterman requested a review from jmiranda June 11, 2024 18:32
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only real change. The comment in the todo and in the ticket should hopefully explain the situation.

Eventually I want to break this class up into ApiSpecConfig, SliceSpecConfig, SmokeSpecConfig... which can each do their own component scan for whatever test components they need, but I spent hours trying to get that to work and just couldn't find out what was causing the hibernate errors.

@EWaterman
Copy link
Collaborator Author

Got the 🟢 from Justin offline. Merging.

@EWaterman EWaterman merged commit d1e4452 into develop Jun 17, 2024
2 checks passed
@EWaterman EWaterman deleted the bugfix/OBPIH-6486-test-context-error branch June 17, 2024 19:57
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.

None yet

1 participant