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
Xavier Thompson
slapos.toolbox
Commits
473123ad
Commit
473123ad
authored
Mar 13, 2017
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test/networkbench: Improve test verbosity.
parent
02165a07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
slapos/test/test_networkbench.py
slapos/test/test_networkbench.py
+5
-3
No files found.
slapos/test/test_networkbench.py
View file @
473123ad
...
...
@@ -44,14 +44,16 @@ class TestDNSBench(unittest.TestCase):
"""
info
=
dnsbench
.
resolve
(
"www.erp5.com"
,
DNS_EXPECTED_LIST
)
self
.
assertEquals
(
info
[
0
],
'DNS'
)
self
.
assertEquals
(
info
[
1
],
'www.erp5.com'
)
self
.
assertEquals
(
info
[
2
],
200
)
self
.
assertTrue
(
info
[
3
]
<
1
)
self
.
assertEquals
(
info
[
4
],
'OK'
)
self
.
assertEquals
(
set
(
info
[
5
]),
set
([
u'85.118.38.162'
,
u'176.31.129.213'
]))
self
.
assertEquals
(
info
[
4
],
'OK'
,
"%s != OK, full info: %s"
%
(
info
[
4
],
info
)
)
self
.
assertEquals
(
set
(
info
[
5
]),
set
([
u'85.118.38.162'
,
u'176.31.129.213'
]),
"%s != set([u'85.118.38.162', u'176.31.129.213']), full info: %s"
%
(
set
(
info
[
5
]),
info
))
def
test_dnsbench_fail
(
self
):
""" Test dns failure resolution
...
...
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