|  | @@ -6,7 +6,6 @@
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  package org.elasticsearch.xpack.core;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -import org.elasticsearch.Build;
 | 
	
		
			
				|  |  |  import org.elasticsearch.common.settings.Settings;
 | 
	
		
			
				|  |  |  import org.elasticsearch.test.ESTestCase;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -14,12 +13,10 @@ import java.security.NoSuchAlgorithmException;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import javax.crypto.SecretKeyFactory;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -import static org.elasticsearch.xpack.core.security.authc.RealmSettings.DOMAIN_TO_REALM_ASSOC_SETTING;
 | 
	
		
			
				|  |  |  import static org.hamcrest.Matchers.contains;
 | 
	
		
			
				|  |  |  import static org.hamcrest.Matchers.containsString;
 | 
	
		
			
				|  |  |  import static org.hamcrest.Matchers.equalTo;
 | 
	
		
			
				|  |  |  import static org.hamcrest.Matchers.hasItem;
 | 
	
		
			
				|  |  | -import static org.hamcrest.Matchers.hasSize;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  public class XPackSettingsTests extends ESTestCase {
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -103,17 +100,6 @@ public class XPackSettingsTests extends ESTestCase {
 | 
	
		
			
				|  |  |          assertThat(XPackSettings.SERVICE_TOKEN_HASHING_ALGORITHM.get(Settings.EMPTY), equalTo("PBKDF2_STRETCH"));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    // Whether the domain setting is registered by default depends on the build type
 | 
	
		
			
				|  |  | -    public void testRealmDomainSettingRegistrationDefault() {
 | 
	
		
			
				|  |  | -        assertThat(
 | 
	
		
			
				|  |  | -            XPackSettings.getAllSettings()
 | 
	
		
			
				|  |  | -                .stream()
 | 
	
		
			
				|  |  | -                .filter(setting -> setting.getKey().equals(DOMAIN_TO_REALM_ASSOC_SETTING.getKey()))
 | 
	
		
			
				|  |  | -                .toList(),
 | 
	
		
			
				|  |  | -            hasSize(Build.CURRENT.isSnapshot() ? 1 : 0)
 | 
	
		
			
				|  |  | -        );
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      private boolean isSecretkeyFactoryAlgoAvailable(String algorithmId) {
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  |              SecretKeyFactory.getInstance(algorithmId);
 |