Class RandomizeSSL.SSLRandomizer

java.lang.Object
org.apache.solr.util.RandomizeSSL.SSLRandomizer
Enclosing class:
RandomizeSSL

public static final class RandomizeSSL.SSLRandomizer extends Object
A simple data structure for encapsulating the effective values to be used when randomizing SSL in a test, based on the configured values in the RandomizeSSL annotation.
  • Field Details

    • ssl

      public final double ssl
    • clientAuth

      public final double clientAuth
    • debug

      public final String debug
  • Constructor Details

    • SSLRandomizer

      public SSLRandomizer(double ssl, double clientAuth, String debug)
      NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
  • Method Details

    • createSSLTestConfig

      public SSLTestConfig createSSLTestConfig()
      Randomly produces an SSLTestConfig taking into account various factors
      See Also:
      • LuceneTestCase.TEST_NIGHTLY
      • LuceneTestCase.RANDOM_MULTIPLIER
      • LuceneTestCase.random()
    • getEffectiveOdds

      public static double getEffectiveOdds(double declaredOdds, boolean nightly, int multiplier)
      NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
      Public only for testing
    • getSSLRandomizerForClass

      public static final RandomizeSSL.SSLRandomizer getSSLRandomizerForClass(Class<?> clazz)
      Returns an SSLRandomizer suitable for the specified (test) class