Rename AstakosClient's authenticate method to getUserInfo
snf-astakos-client docs: Minor verbal/format fixes
Add documentation for snf-astakos-client package
Add 2 new exceptions to AstakosClient
Turn multiple if statements to if-elif statement
Better handling of log messages
Never, ever log tokens
Create AstakosClient Class
Correct unit tests to run with AstakosClient class
Add retry option to AstakosClient
TestAuthenticate now works with AstakosClient
Implement unit tests for getDisplayNmaes
Implement getTokenFromCookie function
Move token argument
Remove token argument from class initializationmethod and make it a mandatory argument to allthe other class methods.
Rename conn variable to conn_class
Better handling of default parameter values
Better format for logging messages
Implement getUUIDs/getUUID methods
Add getServices method
Query Astakos `/service/api/user_catalogs'
More log messages in AstakosClient
Log retries.Log hashed tokens.
Create more Exception Classes for AstakosClient
Add options to AstakosClient for objpool pool_size
Refs: #3419
Create utils and errors modules for astakosclient
Run setup.py through flake8
Implement low-level _callAstakos function
This function will handle all requests to Astakos.On top of this we should build high level wrapperfunctions to handle more specific calls/requeststo Astakos. _callAstakos function should logevery single action.
Separate actual _doRequest from _callAstakos
Creating a new function `_doRequest' to handlethe actual requests to astakos service makesit easy to mock it later for unit testingour module.
Implement the mocked _doRequest for unit testing
When unit testing our astakos-client module we have toreplace it's _doRequest function with some dummy ones.In this commit we create this dummy functions that aregoing to be used through our tests.
First test for _callAstakos, raise socket error
The first unit test for _callAstakos function, checksthe answer when there is no internet connection(should raise a socket exception).
Add more unit tests for _callAstakos function
Implement a simple `retry' decorator
Implement `authenticate' function
Add unit tests for `authenticate' function
Implement getDisplayNames function
In unit tests change user info from string to dict
Unit test user_catalogs without POST method
Initialize snf-astakos-client