Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / tests / api.py @ 671e4232

History | View | Annotate | Download (31.5 kB)

# Date Author Comment
be67d92e 12/03/2013 09:47 pm Sofia Papagiannaki

astakos: Minor improvements in validate token api call

Add tests for validate access token endpoint

671e4232 12/03/2013 09:47 pm Sofia Papagiannaki

astakos: Additional tests for validating access token

2aba7764 12/03/2013 02:44 pm Sofia Papagiannaki

snf_django: Change error status code if request method is not valid

Return 405 (NotAllowed) instead of 400 (BadRequest)
Add Allow header in the response containing the list of valid methods

1808f7bc 11/25/2013 03:47 pm Giorgos Korfiatis

astakos: Refactor user creation

Provide auth.make_user() as the single way to create a new user. This
function is responsible to set all automatically generated fields, such as
username, uuid, and token. Clean up AstakosUser.save(), that used to
update these fields, and remove AstakosUser.__init__(). Remove trigger...

ef1fb98b 11/25/2013 03:47 pm Giorgos Korfiatis

astakos: Reset user sign flags when adding new terms

When new terms are added, set has_signed_terms=False for all users, forcing
them to accept the new terms. If there are no terms, a new user is created
with has_signed_terms=True.

With this change we can skip querying the terms when authenticating a user,...

fb619437 11/25/2013 03:47 pm Giorgos Korfiatis

astakos: Use TestCase instead of TransactionTestCase

We need to be sure that code runs in a transaction (provided by TestCase).
If we need in some case to test the transactional behavior itself,
we could there use TransactionTestCase.

f72ba65d 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Preserve existing quota on default change

View the resource defaults as a skeleton to be consulted when accepting
a new user. All users keep their quota in AstakosUserQuota.

Operate resource-modify in bulk, in order to avoiding updating the
quotaholder separately for each resource.

2dc27ac1 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Add resource visibility flags

Rename flag `allow_in_projects' to `ui_visible'. Add flag `api_visible'.
The former entails the latter.

80a548e3 11/11/2013 12:59 pm Christos Stavrakakis

Merge branch 'master' into develop

Conflicts:
Changelog
astakosclient/astakosclient/keypath.py
ci/utils.py
docs/admin-guide.rst
snf-astakos-app/astakos/im/cookie.py
snf-astakos-app/astakos/im/functions.py
snf-astakos-app/astakos/im/quotas.py
snf-astakos-app/astakos/im/views/projects.py...

3848b521 10/15/2013 03:34 pm Giorgos Korfiatis

astakos: Handle quota for accepted users

A user is accepted if moderated=True and is_rejected=False. Only
accepted users have entries in the quotaholder.

1b27f8a2 10/04/2013 01:55 pm Giorgos Korfiatis

astakos: Handle quota for moderated users only

At some points, verified users where mistakenly assumed.

bbefd4d7 09/25/2013 12:09 pm Giorgos Korfiatis

astakos: Fix quota API test

Sort list before comparing, since ordering in the response data is
not specified. Triggered when run with postgres.

bbf20a4c 08/02/2013 08:02 pm Sofia Papagiannaki

astakos: Catch unexpected request body in user_catalogs

The request expects a json formatted dictionary.
Raise 400 (BadRequest) otherwise.

d4e4e501 07/25/2013 12:46 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.3' into develop

Conflicts:
Changelog
snf-astakos-app/astakos/im/messages.py
snf-pithos-app/pithos/api/manage_accounts/__init__.py
snf-pithos-app/pithos/api/management/commands/reconcile-resources-pithos.py
snf-pithos-app/pithos/api/settings.py...

8ff1e8d9 07/18/2013 05:57 pm Giorgos Korfiatis

astakos: Use api_method_not_allowed in quota API

2d31dfd7 07/17/2013 01:02 pm Giorgos Korfiatis

astakos: Fix quota API test

Sort list before comparing, since ordering in the response data is
not specified. Triggered when run with postgres.

3472d390 07/05/2013 04:56 pm Sofia Papagiannaki

astakos: Fix api tests (remove obsolete)

9b12caae 07/02/2013 04:23 pm Sofia Papagiannaki

astakos: modifications in POST /tokens (authenticate) api call

  • tenantName is optional in the request
  • check whether the token holder is active and the token has not been
    expired
  • update and fix the tests
  • update the docs
cb26c74e 06/13/2013 03:08 pm Georgios D. Tsoukalas

astakos: fix duplicate test method names

8aaf4f0d 06/12/2013 04:12 pm Georgios D. Tsoukalas

astakos: test 400 on wrong astakos API paths

a01eb018 06/12/2013 04:06 pm Sofia Papagiannaki

astakos: allow empty tenantName in POST /tokens

11366070 06/12/2013 02:33 pm Sofia Papagiannaki

astakos: slight change in POST /tokens

tenantName is options in the request input.
Howver, if it is provided, the call should check whether
it conforms with the token holder.

d29f0371 06/10/2013 09:37 pm Sofia Papagiannaki

astakos: change authenticate keystone api call

If no request body is provided (no request content length),
the response returns only non authentication protected information
(before it used to return BadRequest)

a248ebbb 06/06/2013 01:26 pm Kostas Papadimitriou

astakos: Update tests

a24b5bda 06/03/2013 05:30 pm Sofia Papagiannaki

astakos: remove get_endpoints keystone api call

8cb96389 06/03/2013 03:47 pm Sofia Papagiannaki

astakos: modifications in authenticate keystone api call

  • change the call to utilize the updated db models
  • update tests
  • update docs
efc2b8ae 06/03/2013 03:33 pm Giorgos Korfiatis

astakos: Adapt path in api tests

bd1f667b 06/03/2013 12:00 pm Giorgos Korfiatis

astakos: Import new-style services and resources

bd93595d 05/29/2013 03:19 pm Sofia Papagiannaki

astakos: modifications in POST /tokens (authenticate) api call

  • tenantName is optional in the request
  • check whether the token holder is active and the token has not been
    expired
  • update and fix the tests
  • update the docs
49005665 05/28/2013 07:56 pm Sofia Papagiannaki

astakos: provide authenticate keystone token api call

f870efe2 05/28/2013 07:56 pm Sofia Papagiannaki

snf-django-lib: Fix proxy issue

The ``X-Forwarded-Host`` header should not be forwared to the target
because django appends its value to the Host header and
results in validate_host() failure.

ab7ca50a 05/23/2013 05:44 pm Sofia Papagiannaki

astakos: fix astakos api tests

7ac2131c 05/23/2013 04:30 pm Sofia Papagiannaki

astakos: provide get_endpoints api call

baa9073a 05/20/2013 04:16 pm Kostas Papadimitriou

astakos: Clean up tables on test completion

to get over sqlite driver issues to properly clean up database on transaction
test cases.

1ac3349d 05/16/2013 07:54 pm Kostas Papadimitriou

astakos: Split settings in separate modules