File tree 1 file changed +3
-2
lines changed
x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/saml
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -46,15 +46,16 @@ public static void setupSaml() throws Exception {
46
46
Logger logger = Loggers .getLogger (SamlTestCase .class );
47
47
if (isTurkishLocale ()) {
48
48
// See: https://github.com/elastic/x-pack-elasticsearch/issues/2815
49
- logger .warn ("Attempting to run SAML test on turkish locale, but that breaks OpenSAML. Switching to English." );
49
+ logger .warn ("Attempting to run SAML test on turkish-like locale, but that breaks OpenSAML. Switching to English." );
50
50
restoreLocale = Locale .getDefault ();
51
51
Locale .setDefault (Locale .ENGLISH );
52
52
}
53
53
SamlUtils .initialize (logger );
54
54
}
55
55
56
56
private static boolean isTurkishLocale () {
57
- return Locale .getDefault ().getLanguage ().equals (new Locale ("tr" ).getLanguage ());
57
+ return Locale .getDefault ().getLanguage ().equals (new Locale ("tr" ).getLanguage ())
58
+ || Locale .getDefault ().getLanguage ().equals (new Locale ("az" ).getLanguage ());
58
59
}
59
60
60
61
@ AfterClass
You can’t perform that action at this time.
0 commit comments