Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
c47e573d
Commit
c47e573d
authored
Sep 01, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Assert correct code.
Explain what shall be returned by server.
parent
e50da909
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
bt5/networkcache_erp5/TestTemplateItem/testShaCacheExternal.py
...etworkcache_erp5/TestTemplateItem/testShaCacheExternal.py
+7
-1
bt5/networkcache_erp5/bt/revision
bt5/networkcache_erp5/bt/revision
+1
-1
No files found.
bt5/networkcache_erp5/TestTemplateItem/testShaCacheExternal.py
View file @
c47e573d
...
@@ -147,4 +147,10 @@ class TestShaCacheExternal(ShaCacheMixin, ShaSecurityMixin, ERP5TypeTestCase):
...
@@ -147,4 +147,10 @@ class TestShaCacheExternal(ShaCacheMixin, ShaSecurityMixin, ERP5TypeTestCase):
self
.
tic
()
self
.
tic
()
finally
:
finally
:
connection
.
close
()
connection
.
close
()
self
.
assertEquals
(
httplib
.
FOUND
,
result
.
status
)
# For now ERP5 returns httplib.FOUND which is wrong reply in case of trying
# to POST resource while begin not authorised
# One of UNAUTHORIZED or FORBIDDEN shall be returned
# Ref: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4
# self.assertEquals(httplib.UNAUTHORIZED, result.status)
# FORBIDDEN seems more suitable for RESTful server...
self
.
assertEquals
(
httplib
.
FORBIDDEN
,
result
.
status
)
bt5/networkcache_erp5/bt/revision
View file @
c47e573d
24
25
\ No newline at end of file
\ No newline at end of file
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