File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed 
modules/repository-azure/src/internalClusterTest/java/org/elasticsearch/repositories/azure Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 3030import  org .elasticsearch .common .unit .ByteSizeUnit ;
3131import  org .elasticsearch .common .unit .ByteSizeValue ;
3232import  org .elasticsearch .core .Booleans ;
33+ import  org .elasticsearch .logging .LogManager ;
34+ import  org .elasticsearch .logging .Logger ;
3335import  org .elasticsearch .plugins .Plugin ;
3436import  org .elasticsearch .repositories .AbstractThirdPartyRepositoryTestCase ;
3537import  org .elasticsearch .repositories .blobstore .BlobStoreRepository ;
4648import  static  org .hamcrest .Matchers .not ;
4749
4850public  class  AzureStorageCleanupThirdPartyTests  extends  AbstractThirdPartyRepositoryTestCase  {
51+     private  static  final  Logger  logger  = LogManager .getLogger (AzureStorageCleanupThirdPartyTests .class );
4952    private  static  final  boolean  USE_FIXTURE  = Booleans .parseBoolean (System .getProperty ("test.azure.fixture" , "true" ));
5053
5154    private  static  final  String  AZURE_ACCOUNT  = System .getProperty ("test.azure.account" );
@@ -89,8 +92,10 @@ protected SecureSettings credentials() {
8992        MockSecureSettings  secureSettings  = new  MockSecureSettings ();
9093        secureSettings .setString ("azure.client.default.account" , System .getProperty ("test.azure.account" ));
9194        if  (hasSasToken ) {
95+             logger .info ("Using SAS token authentication" );
9296            secureSettings .setString ("azure.client.default.sas_token" , System .getProperty ("test.azure.sas_token" ));
9397        } else  {
98+             logger .info ("Using key authentication" );
9499            secureSettings .setString ("azure.client.default.key" , System .getProperty ("test.azure.key" ));
95100        }
96101        return  secureSettings ;
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments