Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Jelle refactored api v2 new user view #73

Merged
merged 5 commits into from Nov 29, 2017

Conversation

jpprins1
Copy link
Contributor

@jpprins1 jpprins1 commented Nov 27, 2017

  1. username/email in gebruik geeft beide een 409 conflict statuscode.

  2. Het 'time mocken' zou dit moeten oplossen:

FAIL: test_login_redirect (lizard_auth_server.tests.test_views_sso.TestLoginRedirect)

Traceback (most recent call last):
File "/home/travis/build/lizardsystem/lizard-auth-server/lizard_auth_server/tests/test_views_sso.py", line 147, in test_login_redirect
self.portal.redirect_url)
File "/home/travis/build/lizardsystem/lizard-auth-server/lizard_auth_server/tests/test_views_sso.py", line 117, in authorize_and_check_redirect
_strip_after_last_dot(expec))
AssertionError: 'http[43 chars]age=.eJyrVipKLSxNLS6JL8nPTs1TskLj6ygllpZkwCWROLUAnvEWHw.DPV9gg' != 'http[43 chars]age=.eJyrVipKLSxNLS6JL8nPTs1TskLj6ygllpZkwCWROLUAnvEWHw.DPV9gw'

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 0d3cd23 on jelle_refactored_api_v2_new_user_view into ** on master**.

Copy link
Contributor

@reinout reinout left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 opmerking over een log message, verder ziet het er prima uit.
Mooi om te zien dat het door die 409 ook gewoon duidelijker en netter wordt!
Wel met @byrman even kijken of lizard er netjes mee om gaat ("eerst zoeken, daarna pas aanmaken").

'/sso/local_login/',
message)
# Hardcode the test time value for both URLSafeTimedSerializers
hardcoded_time_value = 1511775523
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Goeie! Dit gaf inderdaad sporadisch test foutjes...

if len(matching_users) > 1:
logger.debug(
"More than one user found for '%s', returning the first",
form.cleaned_data['email'])
user = matching_users[0]
logger.info("Found existing user %s, giving that one to %s",
logger.info("Found existing user based on email %s in portal: %s",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Een user zit niet echt in een portal. Ik zou "in portal %s" gewoon weghalen, dan is het ook goed.

@reinout
Copy link
Contributor

reinout commented Nov 27, 2017

Die jenkins foutjes komen hierdoor: buildout/buildout#425

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 7cf31db on jelle_refactored_api_v2_new_user_view into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 2c187a7 on jelle_refactored_api_v2_new_user_view into ** on master**.

@jpprins1
Copy link
Contributor Author

@reinout: Uitgebreidere beschrijving in CHANGES.rst toegevoegd.

@jpprins1 jpprins1 merged commit c7937ad into master Nov 29, 2017
@jpprins1 jpprins1 deleted the jelle_refactored_api_v2_new_user_view branch November 29, 2017 13:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants