Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
97a35fed
Commit
97a35fed
authored
Jun 28, 2013
by
Kostas Papadimitriou
Browse files
astakos: Update tests
parent
9c9342e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/tests/auth.py
View file @
97a35fed
...
...
@@ -1339,12 +1339,13 @@ class TestWebloginRedirect(TestCase):
# scheme preserved
self
.
assertTrue
(
url
.
startswith
(
'pithos://localhost/'
))
# redirect contains token param
params
=
urlparse
.
urlparse
(
url
parse
.
urlparse
(
url
).
path
,
'https'
).
query
params
=
urlparse
.
urlparse
(
url
,
'https'
).
query
params
=
urlparse
.
parse_qs
(
params
)
self
.
assertEqual
(
params
[
'token'
][
0
],
AstakosUser
.
objects
.
get
().
auth_token
)
# does not contain uuid
self
.
assertFalse
(
'uuid'
in
params
)
# reverted for 0.14.2 to support old pithos desktop clients
#self.assertFalse('uuid' in params)
# invalid cases
r
=
self
.
client
.
get
(
invalid_scheme
,
follow
=
True
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment