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
0d084fb6
Commit
0d084fb6
authored
Mar 07, 2019
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
promise.plugin: fix test ipv6_is_faster failing when ping outside is not possible
parent
766937d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
slapos/test/promise/plugin/test_check_re6st_optimal_status.py
...os/test/promise/plugin/test_check_re6st_optimal_status.py
+7
-1
No files found.
slapos/test/promise/plugin/test_check_re6st_optimal_status.py
View file @
0d084fb6
...
...
@@ -62,7 +62,13 @@ extra_config_dict = {
result
=
self
.
getPromiseResult
(
self
.
promise_name
)
last_message
=
result
[
'result'
][
'message'
].
split
(
'
\
n
'
)[
-
1
]
self
.
assertEqual
(
result
[
'result'
][
'failed'
],
False
)
self
.
assertEqual
(
last_message
,
"OK: IPv4 reachable, IPv6 reachable"
)
#self.assertEqual(last_message, "OK: IPv4 reachable, IPv6 reachable")
# some testnodes cannot ping because they are qemu VM with Nat network, and
# ICMP is disabled. Expected result is "OK: IPv4 reachable, IPv6 reachable"
# but it ICMP is not working, we will have "IPv4 unreachable" in the message
# so we will test only if the ping returned "OK" and if IPv6 was reachable.
self
.
assertTrue
(
last_message
.
startswith
(
"OK:"
))
self
.
assertTrue
(
"IPv6 reachable"
in
last_message
)
def
test_ipv4_is_faster
(
self
):
content
=
self
.
base_content
%
{
...
...
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