Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
Justin
slapos.toolbox
Commits
02edd817
Commit
02edd817
authored
Dec 26, 2018
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: update test now that behavior of erp5.com changed
apparently with caddy we redirect http->https with a 301
parent
cd9a7718
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
slapos/test/test_networkbench.py
slapos/test/test_networkbench.py
+4
-4
No files found.
slapos/test/test_networkbench.py
View file @
02edd817
...
...
@@ -151,11 +151,11 @@ class TestHTTPBench(unittest.TestCase):
""" This test is way to badly written as it depends on
www.erp5.com for now, please replace it
"""
info
=
request
(
"http://www.erp5.com"
,
{
"expected_response"
:
30
2
})
info
=
request
(
"http://www.erp5.com"
,
{
"expected_response"
:
30
1
})
self
.
assertEqual
(
info
[
0
],
'GET'
)
self
.
assertEqual
(
info
[
1
],
'http://www.erp5.com'
)
self
.
assertEqual
(
info
[
2
],
30
2
)
self
.
assertEqual
(
info
[
2
],
30
1
)
self
.
assertEqual
(
len
(
info
[
3
].
split
(
';'
)),
5
)
self
.
assertEqual
(
info
[
4
],
"OK"
)
...
...
@@ -192,9 +192,9 @@ class TestHTTPBench(unittest.TestCase):
self
.
assertEqual
(
info
[
0
],
'GET'
)
self
.
assertEqual
(
info
[
1
],
'http://www.erp5.com'
)
self
.
assertEqual
(
info
[
2
],
30
2
)
self
.
assertEqual
(
info
[
2
],
30
1
)
self
.
assertEqual
(
len
(
info
[
3
].
split
(
';'
)),
5
)
self
.
assertEqual
(
info
[
4
],
"UNEXPECTED (200 != 30
2
)"
)
self
.
assertEqual
(
info
[
4
],
"UNEXPECTED (200 != 30
1
)"
)
def
test_request_unexpected_text
(
self
):
""" This test is way to badly written as it depends on
...
...
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