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

FGB: Do not share the test store with all test modules #17

Conversation

aaime
Copy link
Owner

@aaime aaime commented Sep 12, 2024

Checklist

For core and extension modules:

  • New unit tests have been added covering the changes.
  • Documentation has been updated (if change is visible to end users).
  • The REST API docs have been updated (when changing configuration objects or the REST controllers).
  • There is an issue in the GeoServer Jira (except for changes that do not affect administrators or end users in any way).
  • Commit message(s) must be in the form [GEOS-XYZWV] Title of the Jira ticket.
  • Bug fixes and small new features are presented as a single commit.
  • Each commit has a single objective (if there are multiple commits, each has a separate JIRA ticket describing its goal).

@aaime
Copy link
Owner Author

aaime commented Sep 12, 2024

@jodygarnett @groldan here is the updated version using programmatic store registration.

Plus: the test datastore is not shared among all modules
Cons: we don't see anymore when the other modules have issues with data store lookup, like in the original patch.

Wondering if I should update all the tests for the areas that I've found and fixed, so that they also programmatically register the test store. Of course... this will protect only those code path. Any new code path doing a store lookup without considering the store type won't be caught.

@jodygarnett
Copy link

I think it is a solid improvement.

If those have been found and fixed, maybe do a couple as an example but it is not a worry. Instead it is good to have this on hand as an example for any new codepath that needs to check.

@aaime aaime closed this Sep 15, 2024
aaime pushed a commit that referenced this pull request Oct 8, 2024
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