You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@livy.apache.org by "Felix Cheung (JIRA)" <ji...@apache.org> on 2019/04/03 18:16:01 UTC

[jira] [Created] (LIVY-582) python test_create_new_session_without_default_config test fails consistently

Felix Cheung created LIVY-582:
---------------------------------

             Summary: python test_create_new_session_without_default_config test fails consistently
                 Key: LIVY-582
                 URL: https://issues.apache.org/jira/browse/LIVY-582
             Project: Livy
          Issue Type: Bug
    Affects Versions: 0.6.0
            Reporter: Felix Cheung


{code:java}
test_create_new_session_without_default_config ________________

def test_create_new_session_without_default_config():
> mock_and_validate_create_new_session(False)

src/test/python/livy-tests/client_test.py:105:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
<string>:3: in wrapper
???
src/test/python/livy-tests/client_test.py:48: in mock_and_validate_create_new_session
load_defaults=defaults)
src/main/python/livy/client.py:88: in __init__
session_conf_dict).json()['id']
src/main/python/livy/client.py:388: in _create_new_session
headers=self._conn._JSON_HEADERS, data=data)
src/main/python/livy/client.py:500: in send_request
json=data, auth=self._spnego_auth())
.eggs/requests-2.21.0-py2.7.egg/requests/api.py:60: in request
return session.request(method=method, url=url, **kwargs)
.eggs/requests-2.21.0-py2.7.egg/requests/sessions.py:533: in request
resp = self.send(prep, **send_kwargs)
.eggs/requests-2.21.0-py2.7.egg/requests/sessions.py:646: in send
r = adapter.send(request, **kwargs)
.eggs/responses-0.10.6-py2.7.egg/responses.py:626: in unbound_on_send
return self._on_request(adapter, request, *a, **kwargs)

self = <responses.RequestsMock object at 0x10ce93490>
adapter = <requests.adapters.HTTPAdapter object at 0x10c9b31d0>
request = <PreparedRequest [POST]>
kwargs = {'cert': None, 'proxies': OrderedDict(), 'stream': False, 'timeout': 10, ...}
match = None, resp_callback = None
error_msg = "Connection refused by Responses: POST http://machine:8998/sessions/ doesn't match Responses Mock"
response = ConnectionError(u"Connection refused by Responses: POST http://machine:8998/sessions/doesn't match Responses Mock",)
{code}
Not sure why. this fails 100% and I don't see anything listening to this port. Need some help to troubleshoot this.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)