Advertisement
kmajumder

Untitled

Dec 3rd, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. =================================== FAILURES ===================================
  2. ______________________ VdsmClientTests.test_failing_call _______________________
  3.  
  4. self = <stomprpcclient_test.VdsmClientTests testMethod=test_failing_call>
  5.  
  6. def test_failing_call(self):
  7. with self._create_client() as client:
  8. with self.assertRaises(ServerError) as ex:
  9. > client.Test.failingCall()
  10.  
  11. lib/yajsonrpc/stomprpcclient_test.py:144:
  12. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  13.  
  14. def _call(self, namespace, method_name, **kwargs):
  15. """
  16. Client call method, executes a given command
  17.  
  18. Args:
  19. namespace (string): namespace name
  20. method_name (string): method name
  21. **kwargs: Arbitrary keyword arguments
  22.  
  23. Returns:
  24. method result
  25.  
  26. Raises:
  27. ClientError: in case of an error in the protocol.
  28. TimeoutError: if there is no response after a pre configured time.
  29. ServerError: in case of an error while executing the command
  30. """
  31. method = namespace + "." + method_name
  32. timeout = kwargs.pop("_timeout", self._default_timeout)
  33.  
  34. req = yajsonrpc.JsonRpcRequest(
  35. method, kwargs, reqId=str(uuid.uuid4()))
  36.  
  37. try:
  38. responses = self._client.call(
  39. req, timeout=timeout, flow_id=self._flow_id)
  40. except EnvironmentError as e:
  41. raise ClientError(method, kwargs, e)
  42.  
  43. if not responses:
  44. > raise TimeoutError(method, kwargs, timeout)
  45. E vdsm.client.TimeoutError: Request Test.failingCall with args {} timed out after 3 seconds
  46.  
  47. ../lib/vdsm/client.py:294: TimeoutError
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement