Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / tests @ 27e51b28

# Date Author Comment
28456640 01/20/2014 04:07 pm Kostas Papadimitriou

astakos: Handle pending third party provider validation issues

skip validation errors and reset invalid field values for received user
metadata.

9e900cc5 01/08/2014 05:46 pm Kostas Papadimitriou

astakos: Update tests

b1697f6b 12/20/2013 03:35 pm Constantinos Venetsanopoulos

astakos: fix tests after verbal message changes

2c6bc262 12/20/2013 02:07 pm Kostas Papadimitriou

astakos: Update astakos tests

d0d3646d 12/20/2013 02:00 pm Kostas Papadimitriou

astakos: Handle third party unverified user change password form submition

bd2c6bc5 12/19/2013 05:09 pm Kostas Papadimitriou

astakos: Improved email validator

Custom EmailValidator class backported from django 1.6

d7030402 12/19/2013 05:09 pm Kostas Papadimitriou

astakos: Existing third party identifier handling in signup

remove both existing third party authentication and unverified user entries
when the third party identifier gets used.

95b7c3f6 12/19/2013 05:09 pm Kostas Papadimitriou

astakos: Improve invalid activation code handling

display error message instead of returning a 404 response

300ad310 12/19/2013 05:09 pm Kostas Papadimitriou

astakos: Auth provider presentation fix

prevent encoding errors

11d5fd8b 12/05/2013 12:13 pm Kostas Papadimitriou

astakos: Set initial signup values if available

prefill third party signup form with initial values (first name, last name,
email) if available in the third party provider response.

Conflicts:

snf-astakos-app/astakos/im/views/target/shibboleth.py
b08aadc0 12/05/2013 12:13 pm Kostas Papadimitriou

astakos: Shibboleth EPPN migration functionality

Prior to this commit astakos used the mod_shib2 EPPN header value as the
unique identifier for associating shibboleth idp users to astakos user entries.

This commit alters this behaviour and from now on astakos resloves unique...

412048af 12/05/2013 12:13 pm Kostas Papadimitriou

astakos: Log shibboleth exception and merge fixes

ea05b306 12/04/2013 04:40 pm Sofia Papagiannaki

astakos: Fix test

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.

45112d5a 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Modify base quota in bulk

Add option `--all' in command user-modify to support setting base quota
for all users. Exceptions can be specified with `--exclude'.

Also select user for update in user-modify.

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.

a1dae38d 11/12/2013 01:34 pm Christos Stavrakakis

Merge branch 'feature-cyclades-networks' into develop

Conflicts:
snf-cyclades-app/synnefo/api/management/commands/server-inspect.py
snf-cyclades-app/synnefo/app_settings/urls.py
snf-cyclades-app/synnefo/logic/backend.py
snf-cyclades-app/synnefo/logic/backend_allocator.py...

bd49a6df 11/11/2013 04:07 pm Giorgos Korfiatis

astakos: Fix user status in project test

Set users as moderated, so that they have proper quota.

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...

ccc5048f 11/08/2013 12:25 pm Giorgos Korfiatis

astakos: Relax checks in resource registration

Allow registering a resource for a different service, if it originates
from the same component.

fb4ef6eb 10/16/2013 09:21 pm Kostas Papadimitriou

astakos: Activation view improvements

Reject empty activation code requests

5bc77346 10/15/2013 06:03 pm Giorgos Korfiatis

astakos: pep8 fixes

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.

3407774b 10/08/2013 01:58 pm Kostas Papadimitriou

astakos: Additional login form test

test empty POST dict form submition

b8633f0c 10/08/2013 01:58 pm Kostas Papadimitriou

astakos: Cache cleanup for recaptcha tests to work

a661dfb2 10/07/2013 05:52 pm Kostas Papadimitriou

astakos: Test ratelimit/recaptcha functionality

c1f65a1e 10/07/2013 05:52 pm Kostas Papadimitriou

astakos: Set initial signup values if available

prefill third party signup form with initial values (first name, last name,
email) if available in the third party provider response.

6a80a0ae 10/07/2013 05:52 pm Kostas Papadimitriou

astakos: Shibboleth EPPN migration functionality

Prior to this commit astakos used the mod_shib2 EPPN header value as the
unique identifier for associating shibboleth idp users to astakos user entries.

This commit alters this behaviour and from now on astakos resloves unique...

ed355f9a 10/07/2013 03:26 pm Kostas Papadimitriou

astakos: Store arbitrary shibboleth headers

additionally to common shibboleth headers, append any arbitrary shibboleth
headers (SHIB_*) set from the IdP.

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

astakos: Handle quota for moderated users only

At some points, verified users where mistakenly assumed.

0a70d2c5 10/01/2013 06:16 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.8' into develop

Merge hotfix-0.14.8 which ports Synnefo to wheezy and Django 1.4.5

Conflicts:
ci/ci_squeeze.conf
ci/ci_wheezy.conf
ci/schemas/one_node_squeeze/packages.conf
ci/schemas/one_node_squeeze/squeeze.conf
ci/schemas/one_node_squeeze/wheezy.conf...

0e553052 09/25/2013 12:11 pm Giorgos Korfiatis

astakos: Fix project identification in test

Test was mistakenly using application id rather than project id in
some occasions.

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.

d915cf3c 09/24/2013 02:11 pm Giorgos Korfiatis

astakos: Remove duplicate project query

Enrolling a user in a project now returns 409 if the project does
not exist, rather than 404.

3d08cdca 09/04/2013 07:48 pm Sofia Papagiannaki

astakos: Fix approval_terms view

Fix crash when request user is not logged in.
Add tests

e98239db 08/28/2013 04:36 pm Giorgos Korfiatis

astakos: Force a members limit in project applications

a23ac2f7 08/28/2013 03:22 pm Giorgos Korfiatis

astakos: Restrict project naming in API call

Use the same regex as in the UI, which matches domain-name-like strings.

2556cf45 08/07/2013 12:01 pm Giorgos Korfiatis

astakos: Describe and implement API for projects

50f74340 08/07/2013 12:01 pm Giorgos Korfiatis

astakos: Adapt tests to the new project schema

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...

b130ec7c 07/18/2013 06:17 pm Kostas Papadimitriou

snf-branding: Expose contact email through branding mechanism

although CONTACT_EMAIL is not a branding setting, we use the branding mechanism
to expose it to brandable templates for practical reasons.

This also fixes the missing contact email from all project related emails.

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.

890f3d4c 07/12/2013 01:22 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.2' into develop

Conflicts:
Changelog
snf-astakos-app/astakos/im/messages.py
snf-astakos-app/astakos/im/views/target/__init__.py
snf-cyclades-app/synnefo/logic/backend.py
snf-cyclades-app/synnefo/logic/management/commands/reconcile-servers.py...

36f1eabb 07/09/2013 04:34 pm Kostas Papadimitriou

astakos: Prevent empty passwords in profile form

830747d2 07/09/2013 12:54 pm Kostas Papadimitriou

astakos: Shibboleth improvements

- include shibboleth headers in provider_details
- display eppn instead of identifier in profile

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
28a890d3 07/01/2013 07:49 pm Kostas Papadimitriou

astakos: Update tests

fix pithos:// redirect params extraction

6ce8ecce 07/01/2013 04:36 pm Kostas Papadimitriou

astakos: Update tests

fix pithos:// redirect params extraction

ce264c16 06/28/2013 09:27 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.2' into develop

Conflicts:
snf-astakos-app/astakos/im/views/projects.py
snf-cyclades-app/synnefo/logic/backend.py
snf-django-lib/snf_django/lib/astakos.py
version

387eee94 06/28/2013 05:41 pm Kostas Papadimitriou

astakos: Update tests

c09cb651 06/17/2013 06:24 pm Georgios D. Tsoukalas

Merge branch 'release-0.14' into develop

Conflicts:
snf-astakos-app/astakos/im/messages.py
snf-astakos-app/astakos/im/settings.py
version

8fb8d0cf 06/17/2013 04:22 pm Giorgos Korfiatis

astakos: pep8 fixes

cb26c74e 06/13/2013 03:08 pm Georgios D. Tsoukalas

astakos: fix duplicate test method names

630e6b6d 06/12/2013 05:20 pm Kostas Papadimitriou

astakos: Some additional tests

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.

2968180f 06/12/2013 02:33 pm Sofia Papagiannaki

astakos: fix tests

1ecda536 06/11/2013 02:21 pm Kostas Papadimitriou

astakos: Separate index/login views

- Login view added. The view renders the login template.
- Index view acts as a gateway to landing/login views based on whether the
user is authenticated.

5b65fb47 06/11/2013 12:42 pm Kostas Papadimitriou

astakos: Updated tests

include weblogin view tests

fce2ebcb 06/11/2013 12:42 pm Kostas Papadimitriou

astakos: Update tests

properly clean up database on each test tearDown

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

5f28aa14 06/03/2013 03:17 pm Kostas Papadimitriou

astakos: Update auth tests

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

astakos: Import new-style services and resources

6c7af65c 06/03/2013 11:50 am Georgios D. Tsoukalas

astakos: remove BASEURL, use BASE_URL setting

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.

17138f12 05/27/2013 05:19 pm Kostas Papadimitriou

astakos: Update tests

GET is not allowed to remove auth provider urls

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

c34abd9c 05/21/2013 12:52 pm Kostas Papadimitriou

astakos: Update tests

70e11eaa 05/20/2013 09:18 pm Sofia Papagiannaki

astakos: reorganize views

  • split project views from the rest views
  • move third party authentication views (astakos.im.target)
    under astakos.im.views
  • move view decorators to a separate module
  • move utility methods utilized by views to a separate module
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.

0b817216 05/20/2013 10:35 am Kostas Papadimitriou

astakos: Minor improvements in email change process

- Explicit handling of invalid email change activation code.
- Permission denied response if user is authenticated and email change code
is assigned to another user.
- Improve logging
- Updated tests

e585664e 05/17/2013 10:41 am Christos Stavrakakis

astakos: Fix typo in tests

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

astakos: Split settings in separate modules