o19s / puppet-solr

Puppet module for installing solr with a stand alone jetty server
7 stars 10 forks source link

Write some test cases #3

Open NSkelsey opened 11 years ago

NSkelsey commented 11 years ago

please

epugh commented 11 years ago

patches welcome! Though seriously, I think if @omnifroodle would contribute some sort of example/skelaton for this, then others could contribute. A key test I'd like is to know that both the tomcat AND jetty setups work.

omnifroodle commented 11 years ago

I'll be updating the read me shortly. I've looked a little into good ways to test puppet modules (I saw a vagrant setup that would spin up multiple os's). But, I'm open to suggestions.

NSkelsey commented 11 years ago

I think it would a onerous process to automate the entire unittesting process. But we could easily write some unittests that check for specific things once a solr installation has been put up.

o19s-admin commented 11 years ago

Any ideas on how to "smoke test" so you know if an upgrade worked properly? LIke a jump from 4.4 to 4.5, or 4.5.1?

On Oct 14, 2013, at 2:59 PM, Nick Skelsey wrote:

I think it would a onerous process to automate the entire unittesting process. But we could easily write some unittests that check for specific things once a solr installation has been put up.

— Reply to this email directly or view it on GitHub.


Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 | http://www.opensourceconnections.com | My Free/Busy
Co-Author: Apache Solr 3 Enterprise Search Server
This e-mail and all contents, including attachments, is considered to be Company Confidential unless explicitly stated otherwise, regardless of whether attachments are marked as such.

NSkelsey commented 11 years ago

I was thinking we could do acouple things:

o19s-admin commented 11 years ago

Solr's tests take forever, and they test that solr itself works. What we are more interested in is testing our bits around Solr. So I agree, hitting the end point would be good, and checking the pid. We can assume that Solr itself is good to go.

Do we have any special sauce around log file rotation or other "things" that the package does?

On Oct 14, 2013, at 3:26 PM, Nick Skelsey wrote:

I was thinking we could do acouple things:

hit solr endpoints and see if the responses are valid. check to see if the process is running run solr's unittests? (are theses included in their tarballs) — Reply to this email directly or view it on GitHub.


Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 | http://www.opensourceconnections.com | My Free/Busy
Co-Author: Apache Solr 3 Enterprise Search Server
This e-mail and all contents, including attachments, is considered to be Company Confidential unless explicitly stated otherwise, regardless of whether attachments are marked as such.

NSkelsey commented 11 years ago

Even better there is no logging at all! That will get added