Skip to content

Comments

SOLR-15788 Remove configset/sample_techproducts_config from being used in unit tests#410

Closed
epugh wants to merge 10 commits intoapache:mainfrom
epugh:SOLR-15788
Closed

SOLR-15788 Remove configset/sample_techproducts_config from being used in unit tests#410
epugh wants to merge 10 commits intoapache:mainfrom
epugh:SOLR-15788

Conversation

@epugh
Copy link
Contributor

@epugh epugh commented Nov 10, 2021

https://issues.apache.org/jira/browse/SOLR-15788

Description

Break link between our example configset and the run of the mill unit testing.

Solution

introduce a solr/solrj/src/test-files/solrj/solr/testproducts configset based on the old techproducts configset, and then start removing files that aren't used by the solrj tests.

Maybe it should be called collection2 instead?

Tests

Running the unit tests.

Checklist

Please review the following and check all that apply:

  • I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
  • I have created a Jira issue and added the issue ID to my pull request title.
  • I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
  • I have developed this patch against the main branch.
  • I have run ./gradlew check.
  • I have added tests for my changes.
  • I have added documentation for the Reference Guide

epugh@opensourceconnections.com added 3 commits November 10, 2021 16:25
I haven't committed the actual files under solrj/solr/testproducts/conf because I want to see if I can winnow them down a bit before adding them.
This reverts commit 3cbd856.
@epugh epugh marked this pull request as draft November 10, 2021 21:30
epugh@opensourceconnections.com added 7 commits November 11, 2021 07:38
…TestBase

legacyExampleCollection1SolrHome() now can pick between the old "techproducts", and the new only in solrj "testproducts" config, while I figure out if I can remove the use of legacyExampleCollection1SolrHome from the solr/core tests!
…thChroot

testBootstrapWithChroot was failing with the shorter setup, but seems to like the longer one.  Not sure why.
…pleTests

Just set this up on SolrExampleTests
… called "testproducts".

Next step is to slim down the new "testproducts" to just what the tests need to pass, letting us change the old techproducts to be better at demoing features.
@epugh
Copy link
Contributor Author

epugh commented Feb 19, 2026

Closing in favour of #4147. Didn't quite get everything sorted that I wanted to, but 4147 is a big step forward.

@epugh epugh closed this Feb 19, 2026
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.

1 participant