-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#420 - Introducing infrastructure to find and detect required databases.
Tests using the new Rule can try multiple strategies to find a suitable database. Typically first looking for a local one and alternatively creating one using Docker via Testcontainers. If no database is found the tests get skipped by default. If the tests are run with `-DignoreMissingInfrastructure=false` the first test with each Rule instance will fail, making the build fail. Added the InfrastructureRule to ignore/fail tests depending on the presence of a required infrastructure. Implemented that Rule for R2DBC and Solr.
- Loading branch information
Showing
22 changed files
with
594 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
# Spring Data Solr - Examples | ||
|
||
In order to run this example a 6.5+ [Solr Server](http://lucene.apache.org/solr/downloads.html) and [Maven](http://maven.apache.org/download.cgi) are required. | ||
In order to run this example either a 6.5+ [Solr Server](http://lucene.apache.org/solr/downloads.html) or a working Docker environment as described by [Testcontainers](https://www.testcontainers.org/usage.html#prerequisites) are required. | ||
|
||
If neither is provided all tests will get ignored, essentially disabling the examples. | ||
If you want to fail the build instead add `-DignoreMissingInfrastructure=false` to the Maven commandline. | ||
|
||
You'll also need and [Maven](http://maven.apache.org/download.cgi). | ||
|
||
### Running Solr | ||
```emacs | ||
:solr> ./bin/solr start -e techproducts | ||
``` | ||
|
||
Access via [localhost:8983/solr/](http://localhost:8983/solr/#/techproducts) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.