コード例 #1
0
 def print_commonly_used_attributes(self):
     """Print commonly used attributes from the class instance."""
     self.logger.debug('Available provider parameters:\n %s' %
                       pformat(getattr(self.plugin, 'provider_params')))
     self.logger.debug('Available provider credentials:\n %s' % pformat(
         mask_credentials_password(
             getattr(self.plugin, 'provider_credentials'))))
コード例 #2
0
def test_mask_credentials_password_key_param(aws_creds):
    key_len = len(aws_creds.get('aws_secret_access_key'))
    creds = mask_credentials_password(aws_creds)
    assert '*' in creds.get('aws_secret_access_key')
コード例 #3
0
def test_mask_credentials_password_token_param(rp_creds):
    key_len = len(rp_creds.get('api_token'))
    creds = mask_credentials_password(rp_creds)
    assert '*' in creds.get('api_token')
コード例 #4
0
def test_mask_credentials_password_param(os_creds):
    key_len = len(os_creds.get('password'))
    creds = mask_credentials_password(os_creds)
    assert '*' in creds.get('password')