diff --git a/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/saml/SamlTestCase.java b/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/saml/SamlTestCase.java index 8bfe001e4c1..7087dafca78 100644 --- a/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/saml/SamlTestCase.java +++ b/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/saml/SamlTestCase.java @@ -37,7 +37,7 @@ public abstract class SamlTestCase extends ESTestCase { Logger logger = Loggers.getLogger(SamlTestCase.class); if (isTurkishLocale()) { // See: https://github.com/elastic/x-pack-elasticsearch/issues/2815 - logger.warn("Attempting to run SAML test on turkish locale, but that breaks OpenSAML. Switching to English."); + logger.warn("Attempting to run SAML test on turkish-like locale, but that breaks OpenSAML. Switching to English."); restoreLocale = Locale.getDefault(); Locale.setDefault(Locale.ENGLISH); } @@ -45,7 +45,8 @@ public abstract class SamlTestCase extends ESTestCase { } private static boolean isTurkishLocale() { - return Locale.getDefault().getLanguage().equals(new Locale("tr").getLanguage()); + return Locale.getDefault().getLanguage().equals(new Locale("tr").getLanguage()) + || Locale.getDefault().getLanguage().equals(new Locale("az").getLanguage()); } @AfterClass