Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos.core
Commits
d164ff8b
Commit
d164ff8b
authored
Jul 26, 2018
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Update test after script was removed
parent
f6ab16a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
master/bt5/slapos_jio/TestTemplateItem/portal_components/test.erp5.testSlapOSHypermediaScenario.py
...rtal_components/test.erp5.testSlapOSHypermediaScenario.py
+4
-4
No files found.
master/bt5/slapos_jio/TestTemplateItem/portal_components/test.erp5.testSlapOSHypermediaScenario.py
View file @
d164ff8b
...
...
@@ -63,7 +63,7 @@ class TestSlapOSHypermediaPersonScenario(SlapOSTestCaseMixin):
connection
=
getNewHttpConnection
(
api_netloc
)
connection
.
request
(
method
=
'GET'
,
url
=
'%s/web_site_module/hateoas/
Base_getHateoasMaster
'
%
\
url
=
'%s/web_site_module/hateoas/'
%
\
self
.
portal
.
absolute_url
(),
headers
=
{
'Authorization'
:
authorization
,
...
...
@@ -410,7 +410,7 @@ class TestSlapOSHypermediaInstanceScenario(SlapOSTestCaseMixin):
self
.
portal
.
changeSkin
(
'Hal'
)
self
.
tic
()
remote_user
=
instance
.
get
Reference
()
remote_user
=
instance
.
get
UserId
()
content_type
=
"application/hal+json"
api_scheme
,
api_netloc
,
api_path
,
api_query
,
\
...
...
@@ -429,7 +429,7 @@ class TestSlapOSHypermediaInstanceScenario(SlapOSTestCaseMixin):
connection
=
getNewHttpConnection
(
api_netloc
)
connection
.
request
(
method
=
'GET'
,
url
=
'%s/web_site_module/hateoas/
Base_getHateoasMaster
'
%
\
url
=
'%s/web_site_module/hateoas/'
%
\
self
.
portal
.
absolute_url
(),
headers
=
{
'REMOTE_USER'
:
remote_user
,
...
...
@@ -438,7 +438,7 @@ class TestSlapOSHypermediaInstanceScenario(SlapOSTestCaseMixin):
body
=
""
,
)
response
=
connection
.
getresponse
()
self
.
assertEquals
(
response
.
status
,
200
)
self
.
assertEquals
(
response
.
status
,
200
,
response
)
self
.
assertEquals
(
response
.
getheader
(
'Content-Type'
),
content_type
)
home_page_hal
=
json
.
loads
(
response
.
read
())
...
...
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