testcontainers / testcontainers-dotnet

A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.
https://dotnet.testcontainers.org
MIT License
3.81k stars 279 forks source link

[Enhancement]: Add Solr as a module #1091

Open JROBOTO opened 9 months ago

JROBOTO commented 9 months ago

Problem

I notice that Solr is a module in the java library but not here, hopefully it would not be too much work to add

Solution

Implement the Solr module in the c#

Benefit

When I test my consuming application, I use SolrNet as the .NET Solr client and my consuming app doesn't have to worry about connections etc. Applying the Solr module here would allow me to integration test my application through queries in SolrNet

Alternatives

Not that I am aware of

Would you like to help contributing this enhancement?

No

mausch commented 9 months ago

A couple of Solr testcontainers for reference: https://github.com/SolrNet/SolrNet/blob/6fea42493512c29b549a2c57a99fb52a3ebf6c34/SolrNet.Tests.Common/TestContainers.cs#L67 https://github.com/SolrNet/SolrNetSampleApps/blob/e20f9525eeed94c94dc452c18f97f65a39aaf048/SampleSolrApp/Program.cs#L29