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
18008e4a
Commit
18008e4a
authored
Jun 06, 2013
by
Kostas Papadimitriou
Browse files
astakos: Update tests
parent
a8c52483
Changes
2
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/tests/api.py
View file @
18008e4a
...
...
@@ -40,8 +40,8 @@ from django.core.urlresolvers import reverse
import
json
ROOT
=
"/%s/%s/"
%
(
astakos_settings
.
BASE_PATH
,
astakos_settings
.
ACCOUNTS_PREFIX
)
ROOT
=
"/%s/%s/
%s/
"
%
(
astakos_settings
.
BASE_PATH
,
astakos_settings
.
ACCOUNTS_PREFIX
,
'v1.0'
)
u
=
lambda
url
:
ROOT
+
url
...
...
@@ -55,12 +55,14 @@ class QuotaAPITest(TestCase):
resource11
=
{
"name"
:
"service1.resource11"
,
"desc"
:
"resource11 desc"
,
"service_type"
:
"type1"
,
"service_origin"
:
"service1"
,
"allow_in_projects"
:
True
}
r
,
_
=
register
.
add_resource
(
resource11
)
register
.
update_resource
(
r
,
100
)
resource12
=
{
"name"
:
"service1.resource12"
,
"desc"
:
"resource11 desc"
,
"service_type"
:
"type1"
,
"service_origin"
:
"service1"
,
"unit"
:
"bytes"
}
r
,
_
=
register
.
add_resource
(
resource12
)
register
.
update_resource
(
r
,
1024
)
...
...
@@ -75,6 +77,7 @@ class QuotaAPITest(TestCase):
resource21
=
{
"name"
:
"service2.resource21"
,
"desc"
:
"resource11 desc"
,
"service_type"
:
"type2"
,
"service_origin"
:
"service2"
,
"allow_in_projects"
:
False
}
r
,
_
=
register
.
add_resource
(
resource21
)
register
.
update_resource
(
r
,
3
)
...
...
snf-astakos-app/astakos/im/tests/auth.py
View file @
18008e4a
...
...
@@ -58,7 +58,7 @@ class ShibbolethTests(TestCase):
# eepn required
r
=
client
.
get
(
ui_url
(
'login/shibboleth?'
),
follow
=
True
)
self
.
assertContains
(
r
,
messages
.
SHIBBOLETH_MISSING_EPPN
%
{
'domain'
:
astakos_settings
.
BASE_
URL
,
'domain'
:
astakos_settings
.
BASE_
HOST
,
'contact_email'
:
settings
.
CONTACT_EMAIL
})
client
.
set_tokens
(
eppn
=
"kpapeppn"
)
...
...
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