2015-11-05 04:47:07 |
Md Nadeem |
description |
Functional test through Connection Error Exception.
Step to reproduce:
1. execute the below command on terminal to enable functional test execution
>> export ZAQARCLIENT_TEST_FUNCTIONAL=True
2.execute functional test cases
>> nosetests -v tests.functional
Traceback (most recent call last):
File "/opt/stack/python-zaqarclient/zaqarclient/tests/queues/queues.py", line 442, in test_queue_delete_functional
queue.post(messages)
File "/opt/stack/python-zaqarclient/zaqarclient/queues/v1/queues.py", line 129, in post
self._name, messages)
File "/opt/stack/python-zaqarclient/zaqarclient/queues/v1/core.py", line 217, in message_post
resp = transport.send(request)
File "/opt/stack/python-zaqarclient/zaqarclient/transport/http.py", line 96, in send
data=request.content)
File "/opt/stack/python-zaqarclient/zaqarclient/common/http.py", line 28, in request
return self.session.request(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 465, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 415, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', error(111, 'Connection refused'))
-------------------- >> begin captured logging << --------------------
stevedore.extension: DEBUG: found extension EntryPoint.parse('queues.v1 = zaqarclient.queues.v1.api:V1')
stevedore.extension: DEBUG: found extension EntryPoint.parse('queues.v1.1 = zaqarclient.queues.v1.api:V1_1')
stevedore.extension: DEBUG: found extension EntryPoint.parse('queues.v1 = zaqarclient.queues.v1.api:V1')
stevedore.extension: DEBUG: found extension EntryPoint.parse('queues.v1.1 = zaqarclient.queues.v1.api:V1_1')
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 127.0.0.1
--------------------- >> end captured logging << --------------------- |
gate through zaqarclient.transport.errors.UnauthorizedError while executing functional tests.
I face the same issue while executing functional tests using nose framework.
Traceback (most recent call last):
File "/opt/stack/python-zaqarclient/zaqarclient/tests/queues/queues.py", line 268, in test_queue_stats_functional
queue.post(messages)
File "/opt/stack/python-zaqarclient/zaqarclient/queues/v1/queues.py", line 129, in post
self._name, messages)
File "/opt/stack/python-zaqarclient/zaqarclient/queues/v1/core.py", line 217, in message_post
resp = transport.send(request)
File "/opt/stack/python-zaqarclient/zaqarclient/transport/http.py", line 106, in send
raise self.http_to_zaqar[resp.status_code](msg)
zaqarclient.transport.errors.UnauthorizedError
-------------------- >> begin captured logging << --------------------
stevedore.extension: DEBUG: found extension EntryPoint.parse('queues.v1 = zaqarclient.queues.v1.api:V1')
stevedore.extension: DEBUG: found extension EntryPoint.parse('queues.v1.1 = zaqarclient.queues.v1.api:V1_1')
stevedore.extension: DEBUG: found extension EntryPoint.parse('queues.v1 = zaqarclient.queues.v1.api:V1')
stevedore.extension: DEBUG: found extension EntryPoint.parse('queues.v1.1 = zaqarclient.queues.v1.api:V1_1')
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): 10.0.2.15
requests.packages.urllib3.connectionpool: DEBUG: "POST /v1.1/queues/nonono/messages HTTP/1.1" 401 23
stevedore.extension: DEBUG: found extension EntryPoint.parse('queues.v1 = zaqarclient.queues.v1.api:V1')
stevedore.extension: DEBUG: found extension EntryPoint.parse('queues.v1.1 = zaqarclient.queues.v1.api:V1_1')
requests.packages.urllib3.connectionpool: INFO: Resetting dropped connection: 10.0.2.15
requests.packages.urllib3.connectionpool: DEBUG: "DELETE /v1.1/queues/nonono HTTP/1.1" 401 23
--------------------- >> end captured logging << --------------------- |
|