Build: #588 failed
Job: Default Job failed
Build log
The build generated 1,809 lines of output.The output is too long and has been truncated to the last lines. Download or view full build log
| 21-Apr-2017 18:18:27 | for i in request.body: |
| 21-Apr-2017 18:18:27 | low_conn.send(hex(len(i))[2:].encode('utf-8')) |
| 21-Apr-2017 18:18:27 | low_conn.send(b'\r\n') |
| 21-Apr-2017 18:18:27 | low_conn.send(i) |
| 21-Apr-2017 18:18:27 | low_conn.send(b'\r\n') |
| 21-Apr-2017 18:18:27 | low_conn.send(b'0\r\n\r\n') |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | # Receive the response from the server |
| 21-Apr-2017 18:18:27 | try: |
| 21-Apr-2017 18:18:27 | # For Python 2.7+ versions, use buffering of HTTP |
| 21-Apr-2017 18:18:27 | # responses |
| 21-Apr-2017 18:18:27 | r = low_conn.getresponse(buffering=True) |
| 21-Apr-2017 18:18:27 | except TypeError: |
| 21-Apr-2017 18:18:27 | # For compatibility with Python 2.6 versions and back |
| 21-Apr-2017 18:18:27 | r = low_conn.getresponse() |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | resp = HTTPResponse.from_httplib( |
| 21-Apr-2017 18:18:27 | r, |
| 21-Apr-2017 18:18:27 | pool=conn, |
| 21-Apr-2017 18:18:27 | connection=low_conn, |
| 21-Apr-2017 18:18:27 | preload_content=False, |
| 21-Apr-2017 18:18:27 | decode_content=False |
| 21-Apr-2017 18:18:27 | ) |
| 21-Apr-2017 18:18:27 | except: |
| 21-Apr-2017 18:18:27 | # If we hit any problems here, clean up the connection. |
| 21-Apr-2017 18:18:27 | # Then, reraise so that we can handle the actual exception. |
| 21-Apr-2017 18:18:27 | low_conn.close() |
| 21-Apr-2017 18:18:27 | raise |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | except (ProtocolError, socket.error) as err: |
| 21-Apr-2017 18:18:27 | raise ConnectionError(err, request=request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | except MaxRetryError as e: |
| 21-Apr-2017 18:18:27 | if isinstance(e.reason, ConnectTimeoutError): |
| 21-Apr-2017 18:18:27 | # TODO: Remove this in 3.0.0: see #2811 |
| 21-Apr-2017 18:18:27 | if not isinstance(e.reason, NewConnectionError): |
| 21-Apr-2017 18:18:27 | raise ConnectTimeout(e, request=request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | if isinstance(e.reason, ResponseError): |
| 21-Apr-2017 18:18:27 | raise RetryError(e, request=request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | if isinstance(e.reason, _ProxyError): |
| 21-Apr-2017 18:18:27 | raise ProxyError(e, request=request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | > raise ConnectionError(e, request=request) |
| 21-Apr-2017 18:18:27 | E ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /dataset/bulk (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f96f963d910>: Failed to establish a new connection: [Errno 111] Connection refused',)) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | /home/bamboo/.local/lib/python2.7/site-packages/requests/adapters.py:487: ConnectionError |
| 21-Apr-2017 18:18:27 | _____ ERROR at setup of PropertyGroupTests.test_2_add_property_group_twice _____ |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | self = <class 'tests.property_group_tests.PropertyGroupTests'> |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | @classmethod |
| 21-Apr-2017 18:18:27 | def setUpClass(self): |
| 21-Apr-2017 18:18:27 | super(PropertyGroupTests, self).setUpClass() |
| 21-Apr-2017 18:18:27 | > post_request(self.service_url + self.__ADD_DATASETS, TEST_DATASETS) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | property_group_tests.py:20: |
| 21-Apr-2017 18:18:27 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
| 21-Apr-2017 18:18:27 | util.py:8: in post_request |
| 21-Apr-2017 18:18:27 | r = requests.post(url, json=payload, headers=headers) |
| 21-Apr-2017 18:18:27 | /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:110: in post |
| 21-Apr-2017 18:18:27 | return request('post', url, data=data, json=json, **kwargs) |
| 21-Apr-2017 18:18:27 | /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:56: in request |
| 21-Apr-2017 18:18:27 | return session.request(method=method, url=url, **kwargs) |
| 21-Apr-2017 18:18:27 | /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:488: in request |
| 21-Apr-2017 18:18:27 | resp = self.send(prep, **send_kwargs) |
| 21-Apr-2017 18:18:27 | /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:609: in send |
| 21-Apr-2017 18:18:27 | r = adapter.send(request, **kwargs) |
| 21-Apr-2017 18:18:27 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | self = <requests.adapters.HTTPAdapter object at 0x7f96f963d110> |
| 21-Apr-2017 18:18:27 | request = <PreparedRequest [POST]>, stream = False |
| 21-Apr-2017 18:18:27 | timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x7f96f963d850> |
| 21-Apr-2017 18:18:27 | verify = True, cert = None, proxies = OrderedDict() |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): |
| 21-Apr-2017 18:18:27 | """Sends PreparedRequest object. Returns Response object. |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. |
| 21-Apr-2017 18:18:27 | :param stream: (optional) Whether to stream the request content. |
| 21-Apr-2017 18:18:27 | :param timeout: (optional) How long to wait for the server to send |
| 21-Apr-2017 18:18:27 | data before giving up, as a float, or a :ref:`(connect timeout, |
| 21-Apr-2017 18:18:27 | read timeout) <timeouts>` tuple. |
| 21-Apr-2017 18:18:27 | :type timeout: float or tuple |
| 21-Apr-2017 18:18:27 | :param verify: (optional) Whether to verify SSL certificates. |
| 21-Apr-2017 18:18:27 | :param cert: (optional) Any user-provided SSL certificate to be trusted. |
| 21-Apr-2017 18:18:27 | :param proxies: (optional) The proxies dictionary to apply to the request. |
| 21-Apr-2017 18:18:27 | :rtype: requests.Response |
| 21-Apr-2017 18:18:27 | """ |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | conn = self.get_connection(request.url, proxies) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | self.cert_verify(conn, request.url, verify, cert) |
| 21-Apr-2017 18:18:27 | url = self.request_url(request, proxies) |
| 21-Apr-2017 18:18:27 | self.add_headers(request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | chunked = not (request.body is None or 'Content-Length' in request.headers) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | if isinstance(timeout, tuple): |
| 21-Apr-2017 18:18:27 | try: |
| 21-Apr-2017 18:18:27 | connect, read = timeout |
| 21-Apr-2017 18:18:27 | timeout = TimeoutSauce(connect=connect, read=read) |
| 21-Apr-2017 18:18:27 | except ValueError as e: |
| 21-Apr-2017 18:18:27 | # this may raise a string formatting error. |
| 21-Apr-2017 18:18:27 | err = ("Invalid timeout {0}. Pass a (connect, read) " |
| 21-Apr-2017 18:18:27 | "timeout tuple, or a single float to set " |
| 21-Apr-2017 18:18:27 | "both timeouts to the same value".format(timeout)) |
| 21-Apr-2017 18:18:27 | raise ValueError(err) |
| 21-Apr-2017 18:18:27 | else: |
| 21-Apr-2017 18:18:27 | timeout = TimeoutSauce(connect=timeout, read=timeout) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | try: |
| 21-Apr-2017 18:18:27 | if not chunked: |
| 21-Apr-2017 18:18:27 | resp = conn.urlopen( |
| 21-Apr-2017 18:18:27 | method=request.method, |
| 21-Apr-2017 18:18:27 | url=url, |
| 21-Apr-2017 18:18:27 | body=request.body, |
| 21-Apr-2017 18:18:27 | headers=request.headers, |
| 21-Apr-2017 18:18:27 | redirect=False, |
| 21-Apr-2017 18:18:27 | assert_same_host=False, |
| 21-Apr-2017 18:18:27 | preload_content=False, |
| 21-Apr-2017 18:18:27 | decode_content=False, |
| 21-Apr-2017 18:18:27 | retries=self.max_retries, |
| 21-Apr-2017 18:18:27 | timeout=timeout |
| 21-Apr-2017 18:18:27 | ) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | # Send the request. |
| 21-Apr-2017 18:18:27 | else: |
| 21-Apr-2017 18:18:27 | if hasattr(conn, 'proxy_pool'): |
| 21-Apr-2017 18:18:27 | conn = conn.proxy_pool |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | try: |
| 21-Apr-2017 18:18:27 | low_conn.putrequest(request.method, |
| 21-Apr-2017 18:18:27 | url, |
| 21-Apr-2017 18:18:27 | skip_accept_encoding=True) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | for header, value in request.headers.items(): |
| 21-Apr-2017 18:18:27 | low_conn.putheader(header, value) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | low_conn.endheaders() |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | for i in request.body: |
| 21-Apr-2017 18:18:27 | low_conn.send(hex(len(i))[2:].encode('utf-8')) |
| 21-Apr-2017 18:18:27 | low_conn.send(b'\r\n') |
| 21-Apr-2017 18:18:27 | low_conn.send(i) |
| 21-Apr-2017 18:18:27 | low_conn.send(b'\r\n') |
| 21-Apr-2017 18:18:27 | low_conn.send(b'0\r\n\r\n') |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | # Receive the response from the server |
| 21-Apr-2017 18:18:27 | try: |
| 21-Apr-2017 18:18:27 | # For Python 2.7+ versions, use buffering of HTTP |
| 21-Apr-2017 18:18:27 | # responses |
| 21-Apr-2017 18:18:27 | r = low_conn.getresponse(buffering=True) |
| 21-Apr-2017 18:18:27 | except TypeError: |
| 21-Apr-2017 18:18:27 | # For compatibility with Python 2.6 versions and back |
| 21-Apr-2017 18:18:27 | r = low_conn.getresponse() |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | resp = HTTPResponse.from_httplib( |
| 21-Apr-2017 18:18:27 | r, |
| 21-Apr-2017 18:18:27 | pool=conn, |
| 21-Apr-2017 18:18:27 | connection=low_conn, |
| 21-Apr-2017 18:18:27 | preload_content=False, |
| 21-Apr-2017 18:18:27 | decode_content=False |
| 21-Apr-2017 18:18:27 | ) |
| 21-Apr-2017 18:18:27 | except: |
| 21-Apr-2017 18:18:27 | # If we hit any problems here, clean up the connection. |
| 21-Apr-2017 18:18:27 | # Then, reraise so that we can handle the actual exception. |
| 21-Apr-2017 18:18:27 | low_conn.close() |
| 21-Apr-2017 18:18:27 | raise |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | except (ProtocolError, socket.error) as err: |
| 21-Apr-2017 18:18:27 | raise ConnectionError(err, request=request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | except MaxRetryError as e: |
| 21-Apr-2017 18:18:27 | if isinstance(e.reason, ConnectTimeoutError): |
| 21-Apr-2017 18:18:27 | # TODO: Remove this in 3.0.0: see #2811 |
| 21-Apr-2017 18:18:27 | if not isinstance(e.reason, NewConnectionError): |
| 21-Apr-2017 18:18:27 | raise ConnectTimeout(e, request=request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | if isinstance(e.reason, ResponseError): |
| 21-Apr-2017 18:18:27 | raise RetryError(e, request=request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | if isinstance(e.reason, _ProxyError): |
| 21-Apr-2017 18:18:27 | raise ProxyError(e, request=request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | > raise ConnectionError(e, request=request) |
| 21-Apr-2017 18:18:27 | E ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /dataset/bulk (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f96f963d910>: Failed to establish a new connection: [Errno 111] Connection refused',)) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | /home/bamboo/.local/lib/python2.7/site-packages/requests/adapters.py:487: ConnectionError |
| 21-Apr-2017 18:18:27 | _______ ERROR at setup of PropertyGroupTests.test_3_get_property_groups ________ |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | self = <class 'tests.property_group_tests.PropertyGroupTests'> |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | @classmethod |
| 21-Apr-2017 18:18:27 | def setUpClass(self): |
| 21-Apr-2017 18:18:27 | super(PropertyGroupTests, self).setUpClass() |
| 21-Apr-2017 18:18:27 | > post_request(self.service_url + self.__ADD_DATASETS, TEST_DATASETS) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | property_group_tests.py:20: |
| 21-Apr-2017 18:18:27 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
| 21-Apr-2017 18:18:27 | util.py:8: in post_request |
| 21-Apr-2017 18:18:27 | r = requests.post(url, json=payload, headers=headers) |
| 21-Apr-2017 18:18:27 | /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:110: in post |
| 21-Apr-2017 18:18:27 | return request('post', url, data=data, json=json, **kwargs) |
| 21-Apr-2017 18:18:27 | /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:56: in request |
| 21-Apr-2017 18:18:27 | return session.request(method=method, url=url, **kwargs) |
| 21-Apr-2017 18:18:27 | /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:488: in request |
| 21-Apr-2017 18:18:27 | resp = self.send(prep, **send_kwargs) |
| 21-Apr-2017 18:18:27 | /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:609: in send |
| 21-Apr-2017 18:18:27 | r = adapter.send(request, **kwargs) |
| 21-Apr-2017 18:18:27 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | self = <requests.adapters.HTTPAdapter object at 0x7f96f963d110> |
| 21-Apr-2017 18:18:27 | request = <PreparedRequest [POST]>, stream = False |
| 21-Apr-2017 18:18:27 | timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x7f96f963d850> |
| 21-Apr-2017 18:18:27 | verify = True, cert = None, proxies = OrderedDict() |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): |
| 21-Apr-2017 18:18:27 | """Sends PreparedRequest object. Returns Response object. |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. |
| 21-Apr-2017 18:18:27 | :param stream: (optional) Whether to stream the request content. |
| 21-Apr-2017 18:18:27 | :param timeout: (optional) How long to wait for the server to send |
| 21-Apr-2017 18:18:27 | data before giving up, as a float, or a :ref:`(connect timeout, |
| 21-Apr-2017 18:18:27 | read timeout) <timeouts>` tuple. |
| 21-Apr-2017 18:18:27 | :type timeout: float or tuple |
| 21-Apr-2017 18:18:27 | :param verify: (optional) Whether to verify SSL certificates. |
| 21-Apr-2017 18:18:27 | :param cert: (optional) Any user-provided SSL certificate to be trusted. |
| 21-Apr-2017 18:18:27 | :param proxies: (optional) The proxies dictionary to apply to the request. |
| 21-Apr-2017 18:18:27 | :rtype: requests.Response |
| 21-Apr-2017 18:18:27 | """ |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | conn = self.get_connection(request.url, proxies) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | self.cert_verify(conn, request.url, verify, cert) |
| 21-Apr-2017 18:18:27 | url = self.request_url(request, proxies) |
| 21-Apr-2017 18:18:27 | self.add_headers(request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | chunked = not (request.body is None or 'Content-Length' in request.headers) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | if isinstance(timeout, tuple): |
| 21-Apr-2017 18:18:27 | try: |
| 21-Apr-2017 18:18:27 | connect, read = timeout |
| 21-Apr-2017 18:18:27 | timeout = TimeoutSauce(connect=connect, read=read) |
| 21-Apr-2017 18:18:27 | except ValueError as e: |
| 21-Apr-2017 18:18:27 | # this may raise a string formatting error. |
| 21-Apr-2017 18:18:27 | err = ("Invalid timeout {0}. Pass a (connect, read) " |
| 21-Apr-2017 18:18:27 | "timeout tuple, or a single float to set " |
| 21-Apr-2017 18:18:27 | "both timeouts to the same value".format(timeout)) |
| 21-Apr-2017 18:18:27 | raise ValueError(err) |
| 21-Apr-2017 18:18:27 | else: |
| 21-Apr-2017 18:18:27 | timeout = TimeoutSauce(connect=timeout, read=timeout) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | try: |
| 21-Apr-2017 18:18:27 | if not chunked: |
| 21-Apr-2017 18:18:27 | resp = conn.urlopen( |
| 21-Apr-2017 18:18:27 | method=request.method, |
| 21-Apr-2017 18:18:27 | url=url, |
| 21-Apr-2017 18:18:27 | body=request.body, |
| 21-Apr-2017 18:18:27 | headers=request.headers, |
| 21-Apr-2017 18:18:27 | redirect=False, |
| 21-Apr-2017 18:18:27 | assert_same_host=False, |
| 21-Apr-2017 18:18:27 | preload_content=False, |
| 21-Apr-2017 18:18:27 | decode_content=False, |
| 21-Apr-2017 18:18:27 | retries=self.max_retries, |
| 21-Apr-2017 18:18:27 | timeout=timeout |
| 21-Apr-2017 18:18:27 | ) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | # Send the request. |
| 21-Apr-2017 18:18:27 | else: |
| 21-Apr-2017 18:18:27 | if hasattr(conn, 'proxy_pool'): |
| 21-Apr-2017 18:18:27 | conn = conn.proxy_pool |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | try: |
| 21-Apr-2017 18:18:27 | low_conn.putrequest(request.method, |
| 21-Apr-2017 18:18:27 | url, |
| 21-Apr-2017 18:18:27 | skip_accept_encoding=True) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | for header, value in request.headers.items(): |
| 21-Apr-2017 18:18:27 | low_conn.putheader(header, value) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | low_conn.endheaders() |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | for i in request.body: |
| 21-Apr-2017 18:18:27 | low_conn.send(hex(len(i))[2:].encode('utf-8')) |
| 21-Apr-2017 18:18:27 | low_conn.send(b'\r\n') |
| 21-Apr-2017 18:18:27 | low_conn.send(i) |
| 21-Apr-2017 18:18:27 | low_conn.send(b'\r\n') |
| 21-Apr-2017 18:18:27 | low_conn.send(b'0\r\n\r\n') |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | # Receive the response from the server |
| 21-Apr-2017 18:18:27 | try: |
| 21-Apr-2017 18:18:27 | # For Python 2.7+ versions, use buffering of HTTP |
| 21-Apr-2017 18:18:27 | # responses |
| 21-Apr-2017 18:18:27 | r = low_conn.getresponse(buffering=True) |
| 21-Apr-2017 18:18:27 | except TypeError: |
| 21-Apr-2017 18:18:27 | # For compatibility with Python 2.6 versions and back |
| 21-Apr-2017 18:18:27 | r = low_conn.getresponse() |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | resp = HTTPResponse.from_httplib( |
| 21-Apr-2017 18:18:27 | r, |
| 21-Apr-2017 18:18:27 | pool=conn, |
| 21-Apr-2017 18:18:27 | connection=low_conn, |
| 21-Apr-2017 18:18:27 | preload_content=False, |
| 21-Apr-2017 18:18:27 | decode_content=False |
| 21-Apr-2017 18:18:27 | ) |
| 21-Apr-2017 18:18:27 | except: |
| 21-Apr-2017 18:18:27 | # If we hit any problems here, clean up the connection. |
| 21-Apr-2017 18:18:27 | # Then, reraise so that we can handle the actual exception. |
| 21-Apr-2017 18:18:27 | low_conn.close() |
| 21-Apr-2017 18:18:27 | raise |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | except (ProtocolError, socket.error) as err: |
| 21-Apr-2017 18:18:27 | raise ConnectionError(err, request=request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | except MaxRetryError as e: |
| 21-Apr-2017 18:18:27 | if isinstance(e.reason, ConnectTimeoutError): |
| 21-Apr-2017 18:18:27 | # TODO: Remove this in 3.0.0: see #2811 |
| 21-Apr-2017 18:18:27 | if not isinstance(e.reason, NewConnectionError): |
| 21-Apr-2017 18:18:27 | raise ConnectTimeout(e, request=request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | if isinstance(e.reason, ResponseError): |
| 21-Apr-2017 18:18:27 | raise RetryError(e, request=request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | if isinstance(e.reason, _ProxyError): |
| 21-Apr-2017 18:18:27 | raise ProxyError(e, request=request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | > raise ConnectionError(e, request=request) |
| 21-Apr-2017 18:18:27 | E ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /dataset/bulk (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f96f963d910>: Failed to establish a new connection: [Errno 111] Connection refused',)) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | /home/bamboo/.local/lib/python2.7/site-packages/requests/adapters.py:487: ConnectionError |
| 21-Apr-2017 18:18:27 | ______ ERROR at setup of PropertyGroupTests.test_4_delete_property_groups ______ |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | self = <class 'tests.property_group_tests.PropertyGroupTests'> |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | @classmethod |
| 21-Apr-2017 18:18:27 | def setUpClass(self): |
| 21-Apr-2017 18:18:27 | super(PropertyGroupTests, self).setUpClass() |
| 21-Apr-2017 18:18:27 | > post_request(self.service_url + self.__ADD_DATASETS, TEST_DATASETS) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | property_group_tests.py:20: |
| 21-Apr-2017 18:18:27 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
| 21-Apr-2017 18:18:27 | util.py:8: in post_request |
| 21-Apr-2017 18:18:27 | r = requests.post(url, json=payload, headers=headers) |
| 21-Apr-2017 18:18:27 | /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:110: in post |
| 21-Apr-2017 18:18:27 | return request('post', url, data=data, json=json, **kwargs) |
| 21-Apr-2017 18:18:27 | /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:56: in request |
| 21-Apr-2017 18:18:27 | return session.request(method=method, url=url, **kwargs) |
| 21-Apr-2017 18:18:27 | /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:488: in request |
| 21-Apr-2017 18:18:27 | resp = self.send(prep, **send_kwargs) |
| 21-Apr-2017 18:18:27 | /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:609: in send |
| 21-Apr-2017 18:18:27 | r = adapter.send(request, **kwargs) |
| 21-Apr-2017 18:18:27 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | self = <requests.adapters.HTTPAdapter object at 0x7f96f963d110> |
| 21-Apr-2017 18:18:27 | request = <PreparedRequest [POST]>, stream = False |
| 21-Apr-2017 18:18:27 | timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x7f96f963d850> |
| 21-Apr-2017 18:18:27 | verify = True, cert = None, proxies = OrderedDict() |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): |
| 21-Apr-2017 18:18:27 | """Sends PreparedRequest object. Returns Response object. |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. |
| 21-Apr-2017 18:18:27 | :param stream: (optional) Whether to stream the request content. |
| 21-Apr-2017 18:18:27 | :param timeout: (optional) How long to wait for the server to send |
| 21-Apr-2017 18:18:27 | data before giving up, as a float, or a :ref:`(connect timeout, |
| 21-Apr-2017 18:18:27 | read timeout) <timeouts>` tuple. |
| 21-Apr-2017 18:18:27 | :type timeout: float or tuple |
| 21-Apr-2017 18:18:27 | :param verify: (optional) Whether to verify SSL certificates. |
| 21-Apr-2017 18:18:27 | :param cert: (optional) Any user-provided SSL certificate to be trusted. |
| 21-Apr-2017 18:18:27 | :param proxies: (optional) The proxies dictionary to apply to the request. |
| 21-Apr-2017 18:18:27 | :rtype: requests.Response |
| 21-Apr-2017 18:18:27 | """ |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | conn = self.get_connection(request.url, proxies) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | self.cert_verify(conn, request.url, verify, cert) |
| 21-Apr-2017 18:18:27 | url = self.request_url(request, proxies) |
| 21-Apr-2017 18:18:27 | self.add_headers(request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | chunked = not (request.body is None or 'Content-Length' in request.headers) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | if isinstance(timeout, tuple): |
| 21-Apr-2017 18:18:27 | try: |
| 21-Apr-2017 18:18:27 | connect, read = timeout |
| 21-Apr-2017 18:18:27 | timeout = TimeoutSauce(connect=connect, read=read) |
| 21-Apr-2017 18:18:27 | except ValueError as e: |
| 21-Apr-2017 18:18:27 | # this may raise a string formatting error. |
| 21-Apr-2017 18:18:27 | err = ("Invalid timeout {0}. Pass a (connect, read) " |
| 21-Apr-2017 18:18:27 | "timeout tuple, or a single float to set " |
| 21-Apr-2017 18:18:27 | "both timeouts to the same value".format(timeout)) |
| 21-Apr-2017 18:18:27 | raise ValueError(err) |
| 21-Apr-2017 18:18:27 | else: |
| 21-Apr-2017 18:18:27 | timeout = TimeoutSauce(connect=timeout, read=timeout) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | try: |
| 21-Apr-2017 18:18:27 | if not chunked: |
| 21-Apr-2017 18:18:27 | resp = conn.urlopen( |
| 21-Apr-2017 18:18:27 | method=request.method, |
| 21-Apr-2017 18:18:27 | url=url, |
| 21-Apr-2017 18:18:27 | body=request.body, |
| 21-Apr-2017 18:18:27 | headers=request.headers, |
| 21-Apr-2017 18:18:27 | redirect=False, |
| 21-Apr-2017 18:18:27 | assert_same_host=False, |
| 21-Apr-2017 18:18:27 | preload_content=False, |
| 21-Apr-2017 18:18:27 | decode_content=False, |
| 21-Apr-2017 18:18:27 | retries=self.max_retries, |
| 21-Apr-2017 18:18:27 | timeout=timeout |
| 21-Apr-2017 18:18:27 | ) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | # Send the request. |
| 21-Apr-2017 18:18:27 | else: |
| 21-Apr-2017 18:18:27 | if hasattr(conn, 'proxy_pool'): |
| 21-Apr-2017 18:18:27 | conn = conn.proxy_pool |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | try: |
| 21-Apr-2017 18:18:27 | low_conn.putrequest(request.method, |
| 21-Apr-2017 18:18:27 | url, |
| 21-Apr-2017 18:18:27 | skip_accept_encoding=True) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | for header, value in request.headers.items(): |
| 21-Apr-2017 18:18:27 | low_conn.putheader(header, value) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | low_conn.endheaders() |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | for i in request.body: |
| 21-Apr-2017 18:18:27 | low_conn.send(hex(len(i))[2:].encode('utf-8')) |
| 21-Apr-2017 18:18:27 | low_conn.send(b'\r\n') |
| 21-Apr-2017 18:18:27 | low_conn.send(i) |
| 21-Apr-2017 18:18:27 | low_conn.send(b'\r\n') |
| 21-Apr-2017 18:18:27 | low_conn.send(b'0\r\n\r\n') |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | # Receive the response from the server |
| 21-Apr-2017 18:18:27 | try: |
| 21-Apr-2017 18:18:27 | # For Python 2.7+ versions, use buffering of HTTP |
| 21-Apr-2017 18:18:27 | # responses |
| 21-Apr-2017 18:18:27 | r = low_conn.getresponse(buffering=True) |
| 21-Apr-2017 18:18:27 | except TypeError: |
| 21-Apr-2017 18:18:27 | # For compatibility with Python 2.6 versions and back |
| 21-Apr-2017 18:18:27 | r = low_conn.getresponse() |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | resp = HTTPResponse.from_httplib( |
| 21-Apr-2017 18:18:27 | r, |
| 21-Apr-2017 18:18:27 | pool=conn, |
| 21-Apr-2017 18:18:27 | connection=low_conn, |
| 21-Apr-2017 18:18:27 | preload_content=False, |
| 21-Apr-2017 18:18:27 | decode_content=False |
| 21-Apr-2017 18:18:27 | ) |
| 21-Apr-2017 18:18:27 | except: |
| 21-Apr-2017 18:18:27 | # If we hit any problems here, clean up the connection. |
| 21-Apr-2017 18:18:27 | # Then, reraise so that we can handle the actual exception. |
| 21-Apr-2017 18:18:27 | low_conn.close() |
| 21-Apr-2017 18:18:27 | raise |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | except (ProtocolError, socket.error) as err: |
| 21-Apr-2017 18:18:27 | raise ConnectionError(err, request=request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | except MaxRetryError as e: |
| 21-Apr-2017 18:18:27 | if isinstance(e.reason, ConnectTimeoutError): |
| 21-Apr-2017 18:18:27 | # TODO: Remove this in 3.0.0: see #2811 |
| 21-Apr-2017 18:18:27 | if not isinstance(e.reason, NewConnectionError): |
| 21-Apr-2017 18:18:27 | raise ConnectTimeout(e, request=request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | if isinstance(e.reason, ResponseError): |
| 21-Apr-2017 18:18:27 | raise RetryError(e, request=request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | if isinstance(e.reason, _ProxyError): |
| 21-Apr-2017 18:18:27 | raise ProxyError(e, request=request) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | > raise ConnectionError(e, request=request) |
| 21-Apr-2017 18:18:27 | E ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /dataset/bulk (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f96f963d910>: Failed to establish a new connection: [Errno 111] Connection refused',)) |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | /home/bamboo/.local/lib/python2.7/site-packages/requests/adapters.py:487: ConnectionError |
| 21-Apr-2017 18:18:27 | generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_group_tests.xml |
| 21-Apr-2017 18:18:27 | =========================== 4 error in 0.43 seconds ============================ |
| 21-Apr-2017 18:18:27 | ============================= test session starts ============================== |
| 21-Apr-2017 18:18:27 | platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 |
| 21-Apr-2017 18:18:27 | rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: |
| 21-Apr-2017 18:18:27 | plugins: pep8-1.0.6 |
| 21-Apr-2017 18:18:27 | collected 0 items |
| 21-Apr-2017 18:18:27 | |
| 21-Apr-2017 18:18:27 | generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_tests.xml |
| 21-Apr-2017 18:18:27 | =============================== in 0.13 seconds =============================== |
| 21-Apr-2017 18:18:28 | ============================= test session starts ============================== |
| 21-Apr-2017 18:18:28 | platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 |
| 21-Apr-2017 18:18:28 | rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: |
| 21-Apr-2017 18:18:28 | plugins: pep8-1.0.6 |
| 21-Apr-2017 18:18:28 | collected 0 items |
| 21-Apr-2017 18:18:28 | |
| 21-Apr-2017 18:18:28 | generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_property_type_tests.xml |
| 21-Apr-2017 18:18:28 | =============================== in 0.14 seconds =============================== |
| 21-Apr-2017 18:18:29 | ============================= test session starts ============================== |
| 21-Apr-2017 18:18:29 | platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 |
| 21-Apr-2017 18:18:29 | rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/tests, inifile: |
| 21-Apr-2017 18:18:29 | plugins: pep8-1.0.6 |
| 21-Apr-2017 18:18:29 | collected 3 items |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | link_tests.py EEE |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | ==================================== ERRORS ==================================== |
| 21-Apr-2017 18:18:29 | _________________ ERROR at setup of LinkTests.test_1_add_links _________________ |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | self = <class 'tests.link_tests.LinkTests'> |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | @classmethod |
| 21-Apr-2017 18:18:29 | def setUpClass(self): |
| 21-Apr-2017 18:18:29 | super(LinkTests, self).setUpClass() |
| 21-Apr-2017 18:18:29 | > post_request(self.service_url + self.__ADD_DATASETS, TEST_DATASETS) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | link_tests.py:24: |
| 21-Apr-2017 18:18:29 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
| 21-Apr-2017 18:18:29 | util.py:8: in post_request |
| 21-Apr-2017 18:18:29 | r = requests.post(url, json=payload, headers=headers) |
| 21-Apr-2017 18:18:29 | /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:110: in post |
| 21-Apr-2017 18:18:29 | return request('post', url, data=data, json=json, **kwargs) |
| 21-Apr-2017 18:18:29 | /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:56: in request |
| 21-Apr-2017 18:18:29 | return session.request(method=method, url=url, **kwargs) |
| 21-Apr-2017 18:18:29 | /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:488: in request |
| 21-Apr-2017 18:18:29 | resp = self.send(prep, **send_kwargs) |
| 21-Apr-2017 18:18:29 | /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:609: in send |
| 21-Apr-2017 18:18:29 | r = adapter.send(request, **kwargs) |
| 21-Apr-2017 18:18:29 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | self = <requests.adapters.HTTPAdapter object at 0x7f25f0f59190> |
| 21-Apr-2017 18:18:29 | request = <PreparedRequest [POST]>, stream = False |
| 21-Apr-2017 18:18:29 | timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x7f25f0f598d0> |
| 21-Apr-2017 18:18:29 | verify = True, cert = None, proxies = OrderedDict() |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): |
| 21-Apr-2017 18:18:29 | """Sends PreparedRequest object. Returns Response object. |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. |
| 21-Apr-2017 18:18:29 | :param stream: (optional) Whether to stream the request content. |
| 21-Apr-2017 18:18:29 | :param timeout: (optional) How long to wait for the server to send |
| 21-Apr-2017 18:18:29 | data before giving up, as a float, or a :ref:`(connect timeout, |
| 21-Apr-2017 18:18:29 | read timeout) <timeouts>` tuple. |
| 21-Apr-2017 18:18:29 | :type timeout: float or tuple |
| 21-Apr-2017 18:18:29 | :param verify: (optional) Whether to verify SSL certificates. |
| 21-Apr-2017 18:18:29 | :param cert: (optional) Any user-provided SSL certificate to be trusted. |
| 21-Apr-2017 18:18:29 | :param proxies: (optional) The proxies dictionary to apply to the request. |
| 21-Apr-2017 18:18:29 | :rtype: requests.Response |
| 21-Apr-2017 18:18:29 | """ |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | conn = self.get_connection(request.url, proxies) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | self.cert_verify(conn, request.url, verify, cert) |
| 21-Apr-2017 18:18:29 | url = self.request_url(request, proxies) |
| 21-Apr-2017 18:18:29 | self.add_headers(request) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | chunked = not (request.body is None or 'Content-Length' in request.headers) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | if isinstance(timeout, tuple): |
| 21-Apr-2017 18:18:29 | try: |
| 21-Apr-2017 18:18:29 | connect, read = timeout |
| 21-Apr-2017 18:18:29 | timeout = TimeoutSauce(connect=connect, read=read) |
| 21-Apr-2017 18:18:29 | except ValueError as e: |
| 21-Apr-2017 18:18:29 | # this may raise a string formatting error. |
| 21-Apr-2017 18:18:29 | err = ("Invalid timeout {0}. Pass a (connect, read) " |
| 21-Apr-2017 18:18:29 | "timeout tuple, or a single float to set " |
| 21-Apr-2017 18:18:29 | "both timeouts to the same value".format(timeout)) |
| 21-Apr-2017 18:18:29 | raise ValueError(err) |
| 21-Apr-2017 18:18:29 | else: |
| 21-Apr-2017 18:18:29 | timeout = TimeoutSauce(connect=timeout, read=timeout) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | try: |
| 21-Apr-2017 18:18:29 | if not chunked: |
| 21-Apr-2017 18:18:29 | resp = conn.urlopen( |
| 21-Apr-2017 18:18:29 | method=request.method, |
| 21-Apr-2017 18:18:29 | url=url, |
| 21-Apr-2017 18:18:29 | body=request.body, |
| 21-Apr-2017 18:18:29 | headers=request.headers, |
| 21-Apr-2017 18:18:29 | redirect=False, |
| 21-Apr-2017 18:18:29 | assert_same_host=False, |
| 21-Apr-2017 18:18:29 | preload_content=False, |
| 21-Apr-2017 18:18:29 | decode_content=False, |
| 21-Apr-2017 18:18:29 | retries=self.max_retries, |
| 21-Apr-2017 18:18:29 | timeout=timeout |
| 21-Apr-2017 18:18:29 | ) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | # Send the request. |
| 21-Apr-2017 18:18:29 | else: |
| 21-Apr-2017 18:18:29 | if hasattr(conn, 'proxy_pool'): |
| 21-Apr-2017 18:18:29 | conn = conn.proxy_pool |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | try: |
| 21-Apr-2017 18:18:29 | low_conn.putrequest(request.method, |
| 21-Apr-2017 18:18:29 | url, |
| 21-Apr-2017 18:18:29 | skip_accept_encoding=True) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | for header, value in request.headers.items(): |
| 21-Apr-2017 18:18:29 | low_conn.putheader(header, value) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | low_conn.endheaders() |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | for i in request.body: |
| 21-Apr-2017 18:18:29 | low_conn.send(hex(len(i))[2:].encode('utf-8')) |
| 21-Apr-2017 18:18:29 | low_conn.send(b'\r\n') |
| 21-Apr-2017 18:18:29 | low_conn.send(i) |
| 21-Apr-2017 18:18:29 | low_conn.send(b'\r\n') |
| 21-Apr-2017 18:18:29 | low_conn.send(b'0\r\n\r\n') |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | # Receive the response from the server |
| 21-Apr-2017 18:18:29 | try: |
| 21-Apr-2017 18:18:29 | # For Python 2.7+ versions, use buffering of HTTP |
| 21-Apr-2017 18:18:29 | # responses |
| 21-Apr-2017 18:18:29 | r = low_conn.getresponse(buffering=True) |
| 21-Apr-2017 18:18:29 | except TypeError: |
| 21-Apr-2017 18:18:29 | # For compatibility with Python 2.6 versions and back |
| 21-Apr-2017 18:18:29 | r = low_conn.getresponse() |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | resp = HTTPResponse.from_httplib( |
| 21-Apr-2017 18:18:29 | r, |
| 21-Apr-2017 18:18:29 | pool=conn, |
| 21-Apr-2017 18:18:29 | connection=low_conn, |
| 21-Apr-2017 18:18:29 | preload_content=False, |
| 21-Apr-2017 18:18:29 | decode_content=False |
| 21-Apr-2017 18:18:29 | ) |
| 21-Apr-2017 18:18:29 | except: |
| 21-Apr-2017 18:18:29 | # If we hit any problems here, clean up the connection. |
| 21-Apr-2017 18:18:29 | # Then, reraise so that we can handle the actual exception. |
| 21-Apr-2017 18:18:29 | low_conn.close() |
| 21-Apr-2017 18:18:29 | raise |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | except (ProtocolError, socket.error) as err: |
| 21-Apr-2017 18:18:29 | raise ConnectionError(err, request=request) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | except MaxRetryError as e: |
| 21-Apr-2017 18:18:29 | if isinstance(e.reason, ConnectTimeoutError): |
| 21-Apr-2017 18:18:29 | # TODO: Remove this in 3.0.0: see #2811 |
| 21-Apr-2017 18:18:29 | if not isinstance(e.reason, NewConnectionError): |
| 21-Apr-2017 18:18:29 | raise ConnectTimeout(e, request=request) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | if isinstance(e.reason, ResponseError): |
| 21-Apr-2017 18:18:29 | raise RetryError(e, request=request) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | if isinstance(e.reason, _ProxyError): |
| 21-Apr-2017 18:18:29 | raise ProxyError(e, request=request) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | > raise ConnectionError(e, request=request) |
| 21-Apr-2017 18:18:29 | E ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /dataset/bulk (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f25f0f59990>: Failed to establish a new connection: [Errno 111] Connection refused',)) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | /home/bamboo/.local/lib/python2.7/site-packages/requests/adapters.py:487: ConnectionError |
| 21-Apr-2017 18:18:29 | _______________ ERROR at setup of LinkTests.test_2_get_link_list _______________ |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | self = <class 'tests.link_tests.LinkTests'> |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | @classmethod |
| 21-Apr-2017 18:18:29 | def setUpClass(self): |
| 21-Apr-2017 18:18:29 | super(LinkTests, self).setUpClass() |
| 21-Apr-2017 18:18:29 | > post_request(self.service_url + self.__ADD_DATASETS, TEST_DATASETS) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | link_tests.py:24: |
| 21-Apr-2017 18:18:29 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
| 21-Apr-2017 18:18:29 | util.py:8: in post_request |
| 21-Apr-2017 18:18:29 | r = requests.post(url, json=payload, headers=headers) |
| 21-Apr-2017 18:18:29 | /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:110: in post |
| 21-Apr-2017 18:18:29 | return request('post', url, data=data, json=json, **kwargs) |
| 21-Apr-2017 18:18:29 | /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:56: in request |
| 21-Apr-2017 18:18:29 | return session.request(method=method, url=url, **kwargs) |
| 21-Apr-2017 18:18:29 | /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:488: in request |
| 21-Apr-2017 18:18:29 | resp = self.send(prep, **send_kwargs) |
| 21-Apr-2017 18:18:29 | /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:609: in send |
| 21-Apr-2017 18:18:29 | r = adapter.send(request, **kwargs) |
| 21-Apr-2017 18:18:29 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | self = <requests.adapters.HTTPAdapter object at 0x7f25f0f59190> |
| 21-Apr-2017 18:18:29 | request = <PreparedRequest [POST]>, stream = False |
| 21-Apr-2017 18:18:29 | timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x7f25f0f598d0> |
| 21-Apr-2017 18:18:29 | verify = True, cert = None, proxies = OrderedDict() |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): |
| 21-Apr-2017 18:18:29 | """Sends PreparedRequest object. Returns Response object. |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. |
| 21-Apr-2017 18:18:29 | :param stream: (optional) Whether to stream the request content. |
| 21-Apr-2017 18:18:29 | :param timeout: (optional) How long to wait for the server to send |
| 21-Apr-2017 18:18:29 | data before giving up, as a float, or a :ref:`(connect timeout, |
| 21-Apr-2017 18:18:29 | read timeout) <timeouts>` tuple. |
| 21-Apr-2017 18:18:29 | :type timeout: float or tuple |
| 21-Apr-2017 18:18:29 | :param verify: (optional) Whether to verify SSL certificates. |
| 21-Apr-2017 18:18:29 | :param cert: (optional) Any user-provided SSL certificate to be trusted. |
| 21-Apr-2017 18:18:29 | :param proxies: (optional) The proxies dictionary to apply to the request. |
| 21-Apr-2017 18:18:29 | :rtype: requests.Response |
| 21-Apr-2017 18:18:29 | """ |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | conn = self.get_connection(request.url, proxies) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | self.cert_verify(conn, request.url, verify, cert) |
| 21-Apr-2017 18:18:29 | url = self.request_url(request, proxies) |
| 21-Apr-2017 18:18:29 | self.add_headers(request) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | chunked = not (request.body is None or 'Content-Length' in request.headers) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | if isinstance(timeout, tuple): |
| 21-Apr-2017 18:18:29 | try: |
| 21-Apr-2017 18:18:29 | connect, read = timeout |
| 21-Apr-2017 18:18:29 | timeout = TimeoutSauce(connect=connect, read=read) |
| 21-Apr-2017 18:18:29 | except ValueError as e: |
| 21-Apr-2017 18:18:29 | # this may raise a string formatting error. |
| 21-Apr-2017 18:18:29 | err = ("Invalid timeout {0}. Pass a (connect, read) " |
| 21-Apr-2017 18:18:29 | "timeout tuple, or a single float to set " |
| 21-Apr-2017 18:18:29 | "both timeouts to the same value".format(timeout)) |
| 21-Apr-2017 18:18:29 | raise ValueError(err) |
| 21-Apr-2017 18:18:29 | else: |
| 21-Apr-2017 18:18:29 | timeout = TimeoutSauce(connect=timeout, read=timeout) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | try: |
| 21-Apr-2017 18:18:29 | if not chunked: |
| 21-Apr-2017 18:18:29 | resp = conn.urlopen( |
| 21-Apr-2017 18:18:29 | method=request.method, |
| 21-Apr-2017 18:18:29 | url=url, |
| 21-Apr-2017 18:18:29 | body=request.body, |
| 21-Apr-2017 18:18:29 | headers=request.headers, |
| 21-Apr-2017 18:18:29 | redirect=False, |
| 21-Apr-2017 18:18:29 | assert_same_host=False, |
| 21-Apr-2017 18:18:29 | preload_content=False, |
| 21-Apr-2017 18:18:29 | decode_content=False, |
| 21-Apr-2017 18:18:29 | retries=self.max_retries, |
| 21-Apr-2017 18:18:29 | timeout=timeout |
| 21-Apr-2017 18:18:29 | ) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | # Send the request. |
| 21-Apr-2017 18:18:29 | else: |
| 21-Apr-2017 18:18:29 | if hasattr(conn, 'proxy_pool'): |
| 21-Apr-2017 18:18:29 | conn = conn.proxy_pool |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | try: |
| 21-Apr-2017 18:18:29 | low_conn.putrequest(request.method, |
| 21-Apr-2017 18:18:29 | url, |
| 21-Apr-2017 18:18:29 | skip_accept_encoding=True) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | for header, value in request.headers.items(): |
| 21-Apr-2017 18:18:29 | low_conn.putheader(header, value) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | low_conn.endheaders() |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | for i in request.body: |
| 21-Apr-2017 18:18:29 | low_conn.send(hex(len(i))[2:].encode('utf-8')) |
| 21-Apr-2017 18:18:29 | low_conn.send(b'\r\n') |
| 21-Apr-2017 18:18:29 | low_conn.send(i) |
| 21-Apr-2017 18:18:29 | low_conn.send(b'\r\n') |
| 21-Apr-2017 18:18:29 | low_conn.send(b'0\r\n\r\n') |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | # Receive the response from the server |
| 21-Apr-2017 18:18:29 | try: |
| 21-Apr-2017 18:18:29 | # For Python 2.7+ versions, use buffering of HTTP |
| 21-Apr-2017 18:18:29 | # responses |
| 21-Apr-2017 18:18:29 | r = low_conn.getresponse(buffering=True) |
| 21-Apr-2017 18:18:29 | except TypeError: |
| 21-Apr-2017 18:18:29 | # For compatibility with Python 2.6 versions and back |
| 21-Apr-2017 18:18:29 | r = low_conn.getresponse() |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | resp = HTTPResponse.from_httplib( |
| 21-Apr-2017 18:18:29 | r, |
| 21-Apr-2017 18:18:29 | pool=conn, |
| 21-Apr-2017 18:18:29 | connection=low_conn, |
| 21-Apr-2017 18:18:29 | preload_content=False, |
| 21-Apr-2017 18:18:29 | decode_content=False |
| 21-Apr-2017 18:18:29 | ) |
| 21-Apr-2017 18:18:29 | except: |
| 21-Apr-2017 18:18:29 | # If we hit any problems here, clean up the connection. |
| 21-Apr-2017 18:18:29 | # Then, reraise so that we can handle the actual exception. |
| 21-Apr-2017 18:18:29 | low_conn.close() |
| 21-Apr-2017 18:18:29 | raise |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | except (ProtocolError, socket.error) as err: |
| 21-Apr-2017 18:18:29 | raise ConnectionError(err, request=request) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | except MaxRetryError as e: |
| 21-Apr-2017 18:18:29 | if isinstance(e.reason, ConnectTimeoutError): |
| 21-Apr-2017 18:18:29 | # TODO: Remove this in 3.0.0: see #2811 |
| 21-Apr-2017 18:18:29 | if not isinstance(e.reason, NewConnectionError): |
| 21-Apr-2017 18:18:29 | raise ConnectTimeout(e, request=request) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | if isinstance(e.reason, ResponseError): |
| 21-Apr-2017 18:18:29 | raise RetryError(e, request=request) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | if isinstance(e.reason, _ProxyError): |
| 21-Apr-2017 18:18:29 | raise ProxyError(e, request=request) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | > raise ConnectionError(e, request=request) |
| 21-Apr-2017 18:18:29 | E ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /dataset/bulk (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f25f0f59990>: Failed to establish a new connection: [Errno 111] Connection refused',)) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | /home/bamboo/.local/lib/python2.7/site-packages/requests/adapters.py:487: ConnectionError |
| 21-Apr-2017 18:18:29 | ______________ ERROR at setup of LinkTests.test_3_get_link_graph _______________ |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | self = <class 'tests.link_tests.LinkTests'> |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | @classmethod |
| 21-Apr-2017 18:18:29 | def setUpClass(self): |
| 21-Apr-2017 18:18:29 | super(LinkTests, self).setUpClass() |
| 21-Apr-2017 18:18:29 | > post_request(self.service_url + self.__ADD_DATASETS, TEST_DATASETS) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | link_tests.py:24: |
| 21-Apr-2017 18:18:29 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
| 21-Apr-2017 18:18:29 | util.py:8: in post_request |
| 21-Apr-2017 18:18:29 | r = requests.post(url, json=payload, headers=headers) |
| 21-Apr-2017 18:18:29 | /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:110: in post |
| 21-Apr-2017 18:18:29 | return request('post', url, data=data, json=json, **kwargs) |
| 21-Apr-2017 18:18:29 | /home/bamboo/.local/lib/python2.7/site-packages/requests/api.py:56: in request |
| 21-Apr-2017 18:18:29 | return session.request(method=method, url=url, **kwargs) |
| 21-Apr-2017 18:18:29 | /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:488: in request |
| 21-Apr-2017 18:18:29 | resp = self.send(prep, **send_kwargs) |
| 21-Apr-2017 18:18:29 | /home/bamboo/.local/lib/python2.7/site-packages/requests/sessions.py:609: in send |
| 21-Apr-2017 18:18:29 | r = adapter.send(request, **kwargs) |
| 21-Apr-2017 18:18:29 | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | self = <requests.adapters.HTTPAdapter object at 0x7f25f0f59190> |
| 21-Apr-2017 18:18:29 | request = <PreparedRequest [POST]>, stream = False |
| 21-Apr-2017 18:18:29 | timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x7f25f0f598d0> |
| 21-Apr-2017 18:18:29 | verify = True, cert = None, proxies = OrderedDict() |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): |
| 21-Apr-2017 18:18:29 | """Sends PreparedRequest object. Returns Response object. |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. |
| 21-Apr-2017 18:18:29 | :param stream: (optional) Whether to stream the request content. |
| 21-Apr-2017 18:18:29 | :param timeout: (optional) How long to wait for the server to send |
| 21-Apr-2017 18:18:29 | data before giving up, as a float, or a :ref:`(connect timeout, |
| 21-Apr-2017 18:18:29 | read timeout) <timeouts>` tuple. |
| 21-Apr-2017 18:18:29 | :type timeout: float or tuple |
| 21-Apr-2017 18:18:29 | :param verify: (optional) Whether to verify SSL certificates. |
| 21-Apr-2017 18:18:29 | :param cert: (optional) Any user-provided SSL certificate to be trusted. |
| 21-Apr-2017 18:18:29 | :param proxies: (optional) The proxies dictionary to apply to the request. |
| 21-Apr-2017 18:18:29 | :rtype: requests.Response |
| 21-Apr-2017 18:18:29 | """ |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | conn = self.get_connection(request.url, proxies) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | self.cert_verify(conn, request.url, verify, cert) |
| 21-Apr-2017 18:18:29 | url = self.request_url(request, proxies) |
| 21-Apr-2017 18:18:29 | self.add_headers(request) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | chunked = not (request.body is None or 'Content-Length' in request.headers) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | if isinstance(timeout, tuple): |
| 21-Apr-2017 18:18:29 | try: |
| 21-Apr-2017 18:18:29 | connect, read = timeout |
| 21-Apr-2017 18:18:29 | timeout = TimeoutSauce(connect=connect, read=read) |
| 21-Apr-2017 18:18:29 | except ValueError as e: |
| 21-Apr-2017 18:18:29 | # this may raise a string formatting error. |
| 21-Apr-2017 18:18:29 | err = ("Invalid timeout {0}. Pass a (connect, read) " |
| 21-Apr-2017 18:18:29 | "timeout tuple, or a single float to set " |
| 21-Apr-2017 18:18:29 | "both timeouts to the same value".format(timeout)) |
| 21-Apr-2017 18:18:29 | raise ValueError(err) |
| 21-Apr-2017 18:18:29 | else: |
| 21-Apr-2017 18:18:29 | timeout = TimeoutSauce(connect=timeout, read=timeout) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | try: |
| 21-Apr-2017 18:18:29 | if not chunked: |
| 21-Apr-2017 18:18:29 | resp = conn.urlopen( |
| 21-Apr-2017 18:18:29 | method=request.method, |
| 21-Apr-2017 18:18:29 | url=url, |
| 21-Apr-2017 18:18:29 | body=request.body, |
| 21-Apr-2017 18:18:29 | headers=request.headers, |
| 21-Apr-2017 18:18:29 | redirect=False, |
| 21-Apr-2017 18:18:29 | assert_same_host=False, |
| 21-Apr-2017 18:18:29 | preload_content=False, |
| 21-Apr-2017 18:18:29 | decode_content=False, |
| 21-Apr-2017 18:18:29 | retries=self.max_retries, |
| 21-Apr-2017 18:18:29 | timeout=timeout |
| 21-Apr-2017 18:18:29 | ) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | # Send the request. |
| 21-Apr-2017 18:18:29 | else: |
| 21-Apr-2017 18:18:29 | if hasattr(conn, 'proxy_pool'): |
| 21-Apr-2017 18:18:29 | conn = conn.proxy_pool |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | try: |
| 21-Apr-2017 18:18:29 | low_conn.putrequest(request.method, |
| 21-Apr-2017 18:18:29 | url, |
| 21-Apr-2017 18:18:29 | skip_accept_encoding=True) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | for header, value in request.headers.items(): |
| 21-Apr-2017 18:18:29 | low_conn.putheader(header, value) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | low_conn.endheaders() |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | for i in request.body: |
| 21-Apr-2017 18:18:29 | low_conn.send(hex(len(i))[2:].encode('utf-8')) |
| 21-Apr-2017 18:18:29 | low_conn.send(b'\r\n') |
| 21-Apr-2017 18:18:29 | low_conn.send(i) |
| 21-Apr-2017 18:18:29 | low_conn.send(b'\r\n') |
| 21-Apr-2017 18:18:29 | low_conn.send(b'0\r\n\r\n') |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | # Receive the response from the server |
| 21-Apr-2017 18:18:29 | try: |
| 21-Apr-2017 18:18:29 | # For Python 2.7+ versions, use buffering of HTTP |
| 21-Apr-2017 18:18:29 | # responses |
| 21-Apr-2017 18:18:29 | r = low_conn.getresponse(buffering=True) |
| 21-Apr-2017 18:18:29 | except TypeError: |
| 21-Apr-2017 18:18:29 | # For compatibility with Python 2.6 versions and back |
| 21-Apr-2017 18:18:29 | r = low_conn.getresponse() |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | resp = HTTPResponse.from_httplib( |
| 21-Apr-2017 18:18:29 | r, |
| 21-Apr-2017 18:18:29 | pool=conn, |
| 21-Apr-2017 18:18:29 | connection=low_conn, |
| 21-Apr-2017 18:18:29 | preload_content=False, |
| 21-Apr-2017 18:18:29 | decode_content=False |
| 21-Apr-2017 18:18:29 | ) |
| 21-Apr-2017 18:18:29 | except: |
| 21-Apr-2017 18:18:29 | # If we hit any problems here, clean up the connection. |
| 21-Apr-2017 18:18:29 | # Then, reraise so that we can handle the actual exception. |
| 21-Apr-2017 18:18:29 | low_conn.close() |
| 21-Apr-2017 18:18:29 | raise |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | except (ProtocolError, socket.error) as err: |
| 21-Apr-2017 18:18:29 | raise ConnectionError(err, request=request) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | except MaxRetryError as e: |
| 21-Apr-2017 18:18:29 | if isinstance(e.reason, ConnectTimeoutError): |
| 21-Apr-2017 18:18:29 | # TODO: Remove this in 3.0.0: see #2811 |
| 21-Apr-2017 18:18:29 | if not isinstance(e.reason, NewConnectionError): |
| 21-Apr-2017 18:18:29 | raise ConnectTimeout(e, request=request) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | if isinstance(e.reason, ResponseError): |
| 21-Apr-2017 18:18:29 | raise RetryError(e, request=request) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | if isinstance(e.reason, _ProxyError): |
| 21-Apr-2017 18:18:29 | raise ProxyError(e, request=request) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | > raise ConnectionError(e, request=request) |
| 21-Apr-2017 18:18:29 | E ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /dataset/bulk (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f25f0f59990>: Failed to establish a new connection: [Errno 111] Connection refused',)) |
| 21-Apr-2017 18:18:29 | |
| 21-Apr-2017 18:18:29 | /home/bamboo/.local/lib/python2.7/site-packages/requests/adapters.py:487: ConnectionError |
| 21-Apr-2017 18:18:29 | generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/results_link_tests.xml |
| 21-Apr-2017 18:18:29 | =========================== 3 error in 0.44 seconds ============================ |
| 21-Apr-2017 18:18:30 | Finished task 'Run tests' with result: Success |
| 21-Apr-2017 18:18:30 | Starting task 'Pep8 tests' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.command' |
| 21-Apr-2017 18:18:30 | Beginning to execute external process for build 'FLARECAST - propertyservice - Default Job #588 (INFRA-PROP-JOB1-588)' ... running command line: /usr/local/bin/py.test --pep8 -m pep8 --junitxml pep8_results.xml ... in: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1 ... using extra environment variables: bamboo_planRepository_1_branch=master bamboo_repository_18776066_branch_name=master bamboo_repository_18776066_git_username= bamboo_dependency_parent_0=INFRA-BASE-508 bamboo_dependency_parent_total=1 bamboo_repository_revision_number=ee769326475073be297db5e98eb985857f871aa2 bamboo_resultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-588 bamboo_planRepository_1_name=propertyservice bamboo_build_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1 bamboo_buildKey=INFRA-PROP-JOB1 bamboo_capability_system_builder_command_Docker_Compose=/usr/local/bin/docker-compose bamboo_repository_18776066_name=propertyservice bamboo_shortPlanName=propertyservice bamboo_planRepository_name=propertyservice bamboo_buildNumber=588 bamboo_shortJobName=Default Job bamboo_capability_system_builder_command_Virtual_Frambuffer_run=/usr/bin/xvfb-run bamboo_buildResultsUrl=https://dev.flarecast.eu/bamboo/browse/INFRA-PROP-JOB1-588 bamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/infra/propertyservice.git bamboo_agentId=131073 bamboo_planName=FLARECAST - propertyservice bamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_script_7=/bin/sh /opt/atlassian/bamboo/temp/INFRA-PROP-JOB1-588-ScriptBuildTask-8249328962542472677.sh bamboo_shortPlanKey=PROP bamboo_repository_18776066_git_branch=master bamboo_shortJobKey=JOB1 bamboo_capability_system_jdk_JDK_1_7_0_65=/usr/lib/jvm/java-7-openjdk-amd64 bamboo_planRepository_revision=ee769326475073be297db5e98eb985857f871aa2 bamboo_repository_previous_revision_number=ee769326475073be297db5e98eb985857f871aa2 bamboo_buildTimeStamp=2017-04-21T18:17:30.041+02:00 bamboo_planRepository_previousRevision=ee769326475073be297db5e98eb985857f871aa2 bamboo_build_commandline_com_atlassian_bamboo_plugins_scripttask_task_builder_script_2=/bin/sh ./build.sh bamboo_capability_system_builder_command_pytest=/usr/local/bin/py.test bamboo_buildResultKey=INFRA-PROP-JOB1-588 bamboo_capability_system_builder_command_Docker=/usr/bin/docker bamboo_repository_git_branch=master bamboo_repository_branch_name=master bamboo_buildPlanName=FLARECAST - propertyservice - Default Job bamboo_planRepository_1_revision=ee769326475073be297db5e98eb985857f871aa2 bamboo_repository_18776066_revision_number=ee769326475073be297db5e98eb985857f871aa2 bamboo_repository_name=propertyservice bamboo_planRepository_branch=master bamboo_agentWorkingDirectory=/var/atlassian/application-data/bamboo/xml-data/build-dir bamboo_capability_system_git_executable=/usr/bin/git bamboo_planRepository_1_previousRevision=ee769326475073be297db5e98eb985857f871aa2 bamboo_repository_git_username= bamboo_planRepository_1_type=stash-rep bamboo_planRepository_branchName=master bamboo_capability_system_jdk_JDK=/usr/lib/jvm/java-7-openjdk-amd64 bamboo_planRepository_type=stash-rep bamboo_planRepository_1_username= bamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/infra/propertyservice.git bamboo_repository_18776066_previous_revision_number=ee769326475073be297db5e98eb985857f871aa2 bamboo_working_directory=/var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1 bamboo_planKey=INFRA-PROP bamboo_planRepository_1_repositoryUrl=ssh://git@localhost:7999/infra/propertyservice.git bamboo_planRepository_username= bamboo_repository_18776066_git_repositoryUrl=ssh://git@localhost:7999/infra/propertyservice.git bamboo_capability_system_jdk_JDK_1_7=/usr/lib/jvm/java-7-openjdk-amd64 bamboo_planRepository_1_branchName=master |
| 21-Apr-2017 18:18:30 | ============================= test session starts ============================== |
| 21-Apr-2017 18:18:30 | platform linux2 -- Python 2.7.9, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 |
| 21-Apr-2017 18:18:30 | rootdir: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1, inifile: |
| 21-Apr-2017 18:18:30 | plugins: pep8-1.0.6 |
| 21-Apr-2017 18:18:30 | collected 23 items |
| 21-Apr-2017 18:18:30 | |
| 21-Apr-2017 18:18:30 | main.py . |
| 21-Apr-2017 18:18:30 | make_readonly_api.py . |
| 21-Apr-2017 18:18:30 | propertyservice/__init__.py . |
| 21-Apr-2017 18:18:30 | propertyservice/config.py . |
| 21-Apr-2017 18:18:30 | propertyservice/sirql_util.py . |
| 21-Apr-2017 18:18:30 | propertyservice/util.py . |
| 21-Apr-2017 18:18:30 | propertyservice/data/__init__.py . |
| 21-Apr-2017 18:18:30 | propertyservice/data/property_dao.py . |
| 21-Apr-2017 18:18:30 | propertyservice/routes/__init__.py . |
| 21-Apr-2017 18:18:30 | propertyservice/routes/dataset.py . |
| 21-Apr-2017 18:18:31 | propertyservice/routes/link.py . |
| 21-Apr-2017 18:18:31 | propertyservice/routes/property_group.py . |
| 21-Apr-2017 18:18:31 | propertyservice/routes/summary.py . |
| 21-Apr-2017 18:18:31 | tests/__init__.py . |
| 21-Apr-2017 18:18:31 | tests/base_test_case.py . |
| 21-Apr-2017 18:18:31 | tests/cleanup_docker_env.py . |
| 21-Apr-2017 18:18:31 | tests/dataset_tests.py . |
| 21-Apr-2017 18:18:31 | tests/link_tests.py . |
| 21-Apr-2017 18:18:31 | tests/property_group_tests.py . |
| 21-Apr-2017 18:18:31 | tests/property_tests.py . |
| 21-Apr-2017 18:18:31 | tests/property_type_tests.py . |
| 21-Apr-2017 18:18:31 | tests/setup_docker_env.py . |
| 21-Apr-2017 18:18:31 | tests/util.py . |
| 21-Apr-2017 18:18:31 | |
| 21-Apr-2017 18:18:31 | generated xml file: /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1/pep8_results.xml |
| 21-Apr-2017 18:18:31 | ========================== 23 passed in 0.55 seconds =========================== |
| 21-Apr-2017 18:18:31 | Finished task 'Pep8 tests' with result: Success |
| 21-Apr-2017 18:18:31 | Starting task 'Parse pytest output' of type 'com.atlassian.bamboo.plugins.testresultparser:task.testresultparser.junit' |
| 21-Apr-2017 18:18:31 | Parsing test results under /var/atlassian/application-data/bamboo/xml-data/build-dir/INFRA-PROP-JOB1... |
| 21-Apr-2017 18:18:32 | Failing task since 10 failing test cases were found. |
| 21-Apr-2017 18:18:32 | Finished task 'Parse pytest output' with result: Failed |
| 21-Apr-2017 18:18:32 | Running post build plugin 'NCover Results Collector' |
| 21-Apr-2017 18:18:32 | Running post build plugin 'Artifact Copier' |
| 21-Apr-2017 18:18:32 | Running post build plugin 'Sauce OnDemand Post Runner' |
| 21-Apr-2017 18:18:32 | Running post build plugin 'npm Cache Cleanup' |
| 21-Apr-2017 18:18:32 | Running post build plugin 'Clover Results Collector' |
| 21-Apr-2017 18:18:32 | Running post build plugin 'Docker Container Cleanup' |
| 21-Apr-2017 18:18:32 | Finalising the build... |
| 21-Apr-2017 18:18:32 | Stopping timer. |
| 21-Apr-2017 18:18:32 | Build INFRA-PROP-JOB1-588 completed. |
| 21-Apr-2017 18:18:32 | Running on server: post build plugin 'NCover Results Collector' |
| 21-Apr-2017 18:18:32 | Running on server: post build plugin 'Build Hanging Detection Configuration' |
| 21-Apr-2017 18:18:32 | Running on server: post build plugin 'Clover Delta Calculator' |
| 21-Apr-2017 18:18:32 | Running on server: post build plugin 'Maven Dependencies Postprocessor' |
| 21-Apr-2017 18:18:32 | All post build plugins have finished |
| 21-Apr-2017 18:18:32 | Generating build results summary... |
| 21-Apr-2017 18:18:32 | Saving build results to disk... |
| 21-Apr-2017 18:18:32 | Logging substituted variables... |
| 21-Apr-2017 18:18:32 | Indexing build results... |
| 21-Apr-2017 18:18:32 | Finished building INFRA-PROP-JOB1-588. |