[PKG-Openstack-devel] Bug#907944: python-pysaml2 accesses the internet during the build
Adrian Bunk
bunk at debian.org
Tue Sep 4 10:28:54 BST 2018
Source: python-pysaml2
Version: 4.5.0-2
Severity: serious
Tags: ftbfs
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-pysaml2.html
...
=================================== FAILURES ===================================
__________________________ test_load_remote_encoding ___________________________
def test_load_remote_encoding():
crypto = sigver._get_xmlsec_cryptobackend()
sc = sigver.SecurityContext(crypto, key_type="", cert_type="")
httpc = HTTPBase()
mds = MetaDataExtern(ATTRCONV, 'http://metadata.aai.switch.ch/metadata.aaitest.xml', sc, full_path('SWITCHaaiRootCA.crt.pem'), httpc)
> mds.load()
tests/test_30_mdstore.py:383:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/saml2/mdstore.py:751: in load
response = self.http.send(self.url)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <saml2.httpbase.HTTPBase object at 0x7f8db0a90350>
url = 'http://metadata.aai.switch.ch/metadata.aaitest.xml', method = 'GET'
kwargs = {}, _kwargs = {'allow_redirects': False, 'verify': True}, arg = 'auth'
exc = ConnectionError(MaxRetryError("HTTPConnectionPool(host='metadata.aai.switch.ch...lish a new connection: [Errno -3] Temporary failure in name resolution',))",),)
def send(self, url, method="GET", **kwargs):
_kwargs = copy.copy(self.request_args)
if kwargs:
_kwargs.update(kwargs)
if self.cookiejar:
_cd = self.cookies(url)
if _cd:
_kwargs["cookies"] = _cd
if self.user and self.passwd:
_kwargs["auth"] = (self.user, self.passwd)
if "headers" in _kwargs and isinstance(_kwargs["headers"], list):
if DICT_HEADERS:
# requests.request wants a dict of headers, not a list of tuples
_kwargs["headers"] = dict(_kwargs["headers"])
try:
logger.debug("%s to %s", method, url)
for arg in ["cookies", "data", "auth"]:
try:
logger.debug("%s: %s", arg.upper(), _kwargs[arg])
except KeyError:
pass
r = requests.request(method, url, **_kwargs)
logger.debug("Response status: %s", r.status_code)
except requests.ConnectionError as exc:
> raise ConnectionError("%s" % exc)
E ConnectionError: HTTPConnectionPool(host='metadata.aai.switch.ch', port=80): Max retries exceeded with url: /metadata.aaitest.xml (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8daa905bd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))
src/saml2/httpbase.py:245: ConnectionError
==================== 1 failed, 570 passed in 208.77 seconds ====================
make[1]: *** [debian/rules:29: override_dh_auto_test] Error 1
More information about the Openstack-devel
mailing list