deb-oslo.vmware/tests
Sabari Kumar Murugesan 3f842f49dc Fix re-create session during transient failures
When invoke_api fails due to VimConnectionException it does not
always mean an expired vim session. It could be due to other
transient failures where the socket gets closed by the server.
To make it worse, vcenter doesn't support login call when a session
is already active. As a result, the re-create session may instead
fail.

This fix checks to see if the session is active before re-creating
the same.

Closes-Bug: #1398502

Change-Id: Id28217f8fe63c23767c66221a68ec944c9b27807
2014-12-04 00:33:14 -08:00
..
objects Enable support for python 3.x 2014-11-13 21:21:28 -05:00
__init__.py remove definitions of Python Source Code Encoding 2014-06-08 18:44:02 +02:00
base.py remove definitions of Python Source Code Encoding 2014-06-08 18:44:02 +02:00
test_api.py Fix re-create session during transient failures 2014-12-04 00:33:14 -08:00
test_image_transfer.py Switch to use requests/urllib3 and enable cacert validation 2014-11-26 13:02:23 -05:00
test_pbm.py Enable support for python 3.x 2014-11-13 21:21:28 -05:00
test_rw_handles.py Switch to use requests/urllib3 and enable cacert validation 2014-11-26 13:02:23 -05:00
test_service.py Enable support for python 3.x 2014-11-13 21:21:28 -05:00
test_vim_util.py Add API to get the entity inventory path 2014-09-26 13:30:26 -07:00
test_vim.py VimExceptions need to support i18n objects 2014-09-25 23:50:06 +00:00
test_vmware.py remove definitions of Python Source Code Encoding 2014-06-08 18:44:02 +02:00