Package org.apache.solr.util
Annotation Interface RandomizeSSL
Marker annotation indicating when SSL Randomization should be used for a test class, and if so
what the typical odds of using SSL should for that test class.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA simple data structure for encapsulating the effective values to be used when randomizing SSL in a test, based on the configured values in theRandomizeSSLannotation. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptiondoubleOdds (as ratio relative to 1) that SSL should be selected in a typical run.Comment to inlcude when logging details of SSL randomizationdoubleOdds (as ratio relative to 1) that SSL should be selected in a typical run.doubleA shorthand option for controlling bothssl()andclientAuth()with a single numeric value, For example:@RandomizeSSL(0.5). -
Field Summary
Fields
-
Field Details
-
DEFAULT_ODDS
static final double DEFAULT_ODDS- See Also:
-
-
Element Details
-
reason
String reasonComment to inlcude when logging details of SSL randomization- Default:
""
-
ssl
double sslOdds (as ratio relative to 1) that SSL should be selected in a typical run. Must either be betwen 0.0 and 1.0 (inclusively) or NaN in which case a sensible should be used. Actual Odds used for randomization may be higher depending on runner options such astests.multiplierortests.nightly- See Also:
- Default:
0.0/0.0
-
clientAuth
double clientAuthOdds (as ratio relative to 1) that SSL should be selected in a typical run. Must either be betwen 0.0 and 1.0 (inclusively) or NaN in which case the effective value ofssl()should be used. Actual Odds used for randomization may be higher depending on runner options such astests.multiplierortests.nightlyNOTE: clientAuth is useless unless ssl is also in used, but we randomize it independently just in case it might find bugs in our test/ssl client code (ie: attempting to use SSL w/client cert to non-ssl servers)
- See Also:
- Default:
0.0/0.0
-
value
double valueA shorthand option for controlling bothssl()andclientAuth()with a single numeric value, For example:@RandomizeSSL(0.5).Ignored if
ssl()is set explicitly.- Default:
0.0/0.0
-