Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
eace419f
Commit
eace419f
authored
Jan 08, 2018
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable more DNS tests that have begun to fail on CI but not locally.
parent
7caaa2f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
25 deletions
+41
-25
src/greentest/test__socket_dns6.py
src/greentest/test__socket_dns6.py
+41
-25
No files found.
src/greentest/test__socket_dns6.py
View file @
eace419f
...
...
@@ -4,43 +4,59 @@ import greentest
import
socket
from
test__socket_dns
import
TestCase
,
add
,
RESOLVER_IS_ARES
if
not
greentest
.
RUNNING_ON_CI
:
class
Test6
(
TestCase
):
# host that only has AAAA record
host
=
'aaaa.test-ipv6.com'
# We can't control the DNS servers we use there
# for the system. This works best with the google DNS servers
# The getnameinfo test can fail on CI.
def
test_empty
(
self
):
self
.
_test
(
'getaddrinfo'
,
self
.
host
,
'http'
)
# Previously only Test6_ds failed, but as of Jan 2018, Test6
# and Test6_google begin to fail:
def
test_inet
(
self
):
self
.
_test
(
'getaddrinfo'
,
self
.
host
,
None
,
socket
.
AF_INET
)
# First differing element 0:
# 'vm2.test-ipv6.com'
# 'ip119.gigo.com'
def
test_inet6
(
self
):
self
.
_test
(
'getaddrinfo'
,
self
.
host
,
None
,
socket
.
AF_INET6
)
# - ('vm2.test-ipv6.com', [], ['2001:470:1:18::125'])
# ? --------- ^^ ^^
def
test_unspec
(
self
):
self
.
_test
(
'getaddrinfo'
,
self
.
host
,
None
,
socket
.
AF_UNSPEC
)
# + ('ip119.gigo.com', [], ['2001:470:1:18::119'])
# ? ^^^^^^^^ ^^
class
Test6
(
TestCase
):
class
Test6_google
(
Test6
):
host
=
'ipv6.google
.com'
# host that only has AAAA record
host
=
'aaaa.test-ipv6
.com'
def
_normalize_result_getnameinfo
(
self
,
result
):
if
greentest
.
RUNNING_ON_CI
and
RESOLVER_IS_ARES
:
# Disabled, there are multiple possibilities
# and we can get different ones, rarely.
return
()
return
result
def
test_empty
(
self
):
self
.
_test
(
'getaddrinfo'
,
self
.
host
,
'http'
)
def
test_inet
(
self
):
self
.
_test
(
'getaddrinfo'
,
self
.
host
,
None
,
socket
.
AF_INET
)
def
test_inet6
(
self
):
self
.
_test
(
'getaddrinfo'
,
self
.
host
,
None
,
socket
.
AF_INET6
)
def
test_unspec
(
self
):
self
.
_test
(
'getaddrinfo'
,
self
.
host
,
None
,
socket
.
AF_UNSPEC
)
class
Test6_google
(
Test6
):
host
=
'ipv6.google.com'
def
_normalize_result_getnameinfo
(
self
,
result
):
if
greentest
.
RUNNING_ON_CI
and
RESOLVER_IS_ARES
:
# Disabled, there are multiple possibilities
# and we can get different ones, rarely.
return
()
return
result
add
(
Test6
,
Test6
.
host
)
add
(
Test6_google
,
Test6_google
.
host
)
add
(
Test6
,
Test6
.
host
)
add
(
Test6_google
,
Test6_google
.
host
)
if
not
greentest
.
RUNNING_ON_CI
:
# We can't control the DNS servers we use there
# for the system. This works best with the google DNS servers
# The getnameinfo test can fail on CI
class
Test6_ds
(
Test6
):
# host that has both A and AAAA records
host
=
'ds.test-ipv6.com'
...
...
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