Has anyone found a good pattern for enabling basic auth in our tests?   I 
suspect that some number of tests are basically “Does this work With and 
Without Basic Auth”, versus being specific to the implementation of BasicAuth.  
 I found TestPullReplicaWithAuth.java, and it has some code to create a custom 
security.json and then load it using:

   configureCluster(2)
        .addConfig("conf", configset("cloud-minimal"))
        .withSecurityJson(SECURITY_JSON)
        .configure();

Is there any simpler option?  Could I have a rule that says I want basicAuth 
enabled for my test?

Eric


_______________________
Eric Pugh | Founder & CEO | OpenSource Connections, LLC | 434.466.1467 | 
http://www.opensourceconnections.com <http://www.opensourceconnections.com/> | 
My Free/Busy <http://tinyurl.com/eric-cal>  
Co-Author: Apache Solr Enterprise Search Server, 3rd Ed 
<https://www.packtpub.com/big-data-and-business-intelligence/apache-solr-enterprise-search-server-third-edition-raw>
    
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.

Reply via email to