Uploaded image for project: 'Livy'
  1. Livy
  2. LIVY-582

python test_create_new_session_without_default_config test fails consistently

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.6.0
    • Fix Version/s: 0.7.0
    • Component/s: None
    • Labels:
      None

      Description

      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",)
      

      Not sure why. this fails 100% and I don't see anything listening to this port. Need some help to troubleshoot this.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yihengw Yiheng Wang
                Reporter:
                felixcheung Felix Cheung
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m