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
Xiaowu Zhang
slapos.toolbox
Commits
1eeef169
Commit
1eeef169
authored
Feb 02, 2021
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_networkbench: update after ip changed
parent
72d01e70
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 @
1eeef169
...
...
@@ -32,7 +32,7 @@ from slapos.networkbench.ping import ping, ping6
from
slapos.networkbench.http
import
request
DNS_EXPECTED_LIST
=
[
"
85.118.38.162
"
,
"176.31.129.213"
]
DNS_EXPECTED_LIST
=
[
"
161.97.166.226
"
,
"176.31.129.213"
]
class
TestDNSBench
(
unittest
.
TestCase
):
...
...
@@ -50,8 +50,8 @@ class TestDNSBench(unittest.TestCase):
self
.
assertLess
(
info
[
3
],
30
)
self
.
assertEqual
(
info
[
4
],
'OK'
,
"%s != OK, full info: %s"
%
(
info
[
4
],
info
)
)
self
.
assertEqual
(
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
))
self
.
assertEqual
(
set
(
info
[
5
]),
set
([
u'
161.97.166.226
'
,
u'176.31.129.213'
]),
"%s != set([u'
161.97.166.226
', u'176.31.129.213']), full info: %s"
%
(
set
(
info
[
5
]),
info
))
def
test_dnsbench_fail
(
self
):
""" Test dns failure resolution
...
...
@@ -79,7 +79,7 @@ class TestDNSBench(unittest.TestCase):
self
.
assertLess
(
info
[
3
],
30
)
self
.
assertEqual
(
info
[
4
],
'UNEXPECTED'
)
self
.
assertTrue
(
info
[
5
].
startswith
(
"['
85.118.38.162
'] (expected) != "
))
self
.
assertTrue
(
info
[
5
].
startswith
(
"['
161.97.166.226
'] (expected) != "
))
class
TestPing
(
unittest
.
TestCase
):
...
...
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