Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =================================== FAILURES ===================================
- ______________________ VdsmClientTests.test_failing_call _______________________
- self = <stomprpcclient_test.VdsmClientTests testMethod=test_failing_call>
- def test_failing_call(self):
- with self._create_client() as client:
- with self.assertRaises(ServerError) as ex:
- > client.Test.failingCall()
- lib/yajsonrpc/stomprpcclient_test.py:144:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _call(self, namespace, method_name, **kwargs):
- """
- Client call method, executes a given command
- Args:
- namespace (string): namespace name
- method_name (string): method name
- **kwargs: Arbitrary keyword arguments
- Returns:
- method result
- Raises:
- ClientError: in case of an error in the protocol.
- TimeoutError: if there is no response after a pre configured time.
- ServerError: in case of an error while executing the command
- """
- method = namespace + "." + method_name
- timeout = kwargs.pop("_timeout", self._default_timeout)
- req = yajsonrpc.JsonRpcRequest(
- method, kwargs, reqId=str(uuid.uuid4()))
- try:
- responses = self._client.call(
- req, timeout=timeout, flow_id=self._flow_id)
- except EnvironmentError as e:
- raise ClientError(method, kwargs, e)
- if not responses:
- > raise TimeoutError(method, kwargs, timeout)
- E vdsm.client.TimeoutError: Request Test.failingCall with args {} timed out after 3 seconds
- ../lib/vdsm/client.py:294: TimeoutError
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement