Exemple #1
0
 def __init__(self, catalog):
     self._catalog = catalog
     self._cache = SourceCache()
     self._periodic_callbacks = []
     auth = conf.get('auth', 'intake.auth.base.BaseAuth')
     self._auth = get_auth_class(auth['class'], *auth.get('args', tuple()),
                                 **auth.get('kwargs', {}))
Exemple #2
0
 def __init__(self, catalog):
     self._catalog = catalog
     self._cache = SourceCache()
     self._periodic_callbacks = []
     auth = conf.get('auth', 'intake.auth.base.BaseAuth')
     self._auth = get_auth_class(auth['class'], *auth.get('args', tuple()),
                                 **auth.get('kwargs', {}))
Exemple #3
0
def test_get():
    auth = get_auth_class('intake.auth.base.BaseAuth')
    assert isinstance(auth, BaseAuth)
    auth= get_auth_class('intake.auth.secret.SecretAuth')
    assert isinstance(auth, SecretAuth)
Exemple #4
0
def test_get():
    auth = get_auth_class('intake.auth.base.BaseAuth')
    assert isinstance(auth, BaseAuth)
    auth= get_auth_class('intake.auth.secret.SecretAuth')
    assert isinstance(auth, SecretAuth)