Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-client @ f74d2b69

# Date Author Comment
f74d2b69 03/22/2013 11:27 am Ilias Tsitsimpis

Rename AstakosClient's authenticate method to getUserInfo

4b92d3f7 03/21/2013 03:52 pm Constantinos Venetsanopoulos

snf-astakos-client docs: Minor verbal/format fixes

1acf67a7 03/20/2013 02:02 pm Ilias Tsitsimpis

Add documentation for snf-astakos-client package

2377e7c2 03/20/2013 12:58 pm Ilias Tsitsimpis

Add 2 new exceptions to AstakosClient

  • NoDisplayName
    raised if getDisplayName called with non-existing uuid
  • NoUUID
    raised if getUUID called with non-existing display_name
be284f6a 03/12/2013 03:54 pm Christos Stavrakakis

Turn multiple if statements to if-elif statement

d7e1e346 03/12/2013 03:54 pm Ilias Tsitsimpis

Better handling of log messages

Never, ever log tokens

4490d7b5 03/12/2013 03:54 pm Ilias Tsitsimpis

Create AstakosClient Class

66208bc7 03/12/2013 03:54 pm Ilias Tsitsimpis

Correct unit tests to run with AstakosClient class

949baf4d 03/12/2013 03:54 pm Ilias Tsitsimpis

Add retry option to AstakosClient

864eb390 03/12/2013 03:54 pm Ilias Tsitsimpis

TestAuthenticate now works with AstakosClient

d4789cd4 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement unit tests for getDisplayNmaes

bc5032a4 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement getTokenFromCookie function

98752f06 03/12/2013 03:54 pm Ilias Tsitsimpis

Move token argument

Remove token argument from class initialization
method and make it a mandatory argument to all
the other class methods.

e169a337 03/12/2013 03:54 pm Ilias Tsitsimpis

Rename conn variable to conn_class

8f2d7ede 03/12/2013 03:54 pm Ilias Tsitsimpis

Better handling of default parameter values

7eb32034 03/12/2013 03:54 pm Ilias Tsitsimpis

Better format for logging messages

aaf0a42c 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement getUUIDs/getUUID methods

3f8d6b11 03/12/2013 03:54 pm Ilias Tsitsimpis

Add getServices method

1c26b500 03/12/2013 03:54 pm Ilias Tsitsimpis

Query Astakos `/service/api/user_catalogs'

6f64b6d0 03/12/2013 03:54 pm Ilias Tsitsimpis

More log messages in AstakosClient

Log retries.
Log hashed tokens.

8fe6475a 03/12/2013 03:54 pm Ilias Tsitsimpis

Create more Exception Classes for AstakosClient

  • AstakosClientEInvalid:
    Invalid X-Auth-Token, 401
  • AstakosClientEMethod:
    Method not allowed, 400
  • AstakosClientENotFound:
    Not Found, 404
996061fa 03/12/2013 03:54 pm Ilias Tsitsimpis

Add options to AstakosClient for objpool pool_size

Refs: #3419

f93cc364 03/12/2013 03:54 pm Ilias Tsitsimpis

Create utils and errors modules for astakosclient

  • Move retry decorator to utils module.
  • Rename exceptions to be more intuitive.
  • Add 403 Forbidden exception.
  • Move exceptions to errors class
83325b42 03/12/2013 03:54 pm Ilias Tsitsimpis

Run setup.py through flake8

cbc0b438 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement low-level _callAstakos function

This function will handle all requests to Astakos.
On top of this we should build high level wrapper
functions to handle more specific calls/requests
to Astakos. _callAstakos function should log
every single action.

f8388a90 03/12/2013 03:54 pm Ilias Tsitsimpis

Separate actual _doRequest from _callAstakos

Creating a new function `_doRequest' to handle
the actual requests to astakos service makes
it easy to mock it later for unit testing
our module.

57ba2dfc 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement the mocked _doRequest for unit testing

When unit testing our astakos-client module we have to
replace it's _doRequest function with some dummy ones.
In this commit we create this dummy functions that are
going to be used through our tests.

bc56a641 03/12/2013 03:54 pm Ilias Tsitsimpis

First test for _callAstakos, raise socket error

The first unit test for _callAstakos function, checks
the answer when there is no internet connection
(should raise a socket exception).

b2a2fe7a 03/12/2013 03:54 pm Ilias Tsitsimpis

Add more unit tests for _callAstakos function

52c4fcef 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement a simple `retry' decorator

f54cf5e4 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement `authenticate' function

454a1ad4 03/12/2013 03:54 pm Ilias Tsitsimpis

Add unit tests for `authenticate' function

354517d8 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement getDisplayNames function

344d5c90 03/12/2013 03:54 pm Ilias Tsitsimpis

In unit tests change user info from string to dict

d071e6f1 03/12/2013 03:54 pm Ilias Tsitsimpis

Unit test user_catalogs without POST method

99165736 02/25/2013 03:42 pm Christos Stavrakakis

Initialize snf-astakos-client