The oslo_vmware.tests.test_api Module

Unit tests for session management and API invocation classes.

class oslo_vmware.tests.test_api.RetryDecoratorTest(*args, **kwargs)

Bases: oslo_vmware.tests.base.TestCase

Tests for retry decorator class.

test_retry()
test_retry_with_expected_exceptions()
test_retry_with_max_retries()
test_retry_with_unexpected_exception()
class oslo_vmware.tests.test_api.VMwareAPISessionTest(*args, **kwargs)

Bases: oslo_vmware.tests.base.TestCase

Tests for VMwareAPISession.

PASSWORD = 'password'
POOL_SIZE = 15
PORT = 443
SERVER_IP = '10.1.2.3'
USERNAME = 'admin'
setUp()
test_create_session()
test_create_session_with_existing_active_session()
test_create_session_with_existing_inactive_session()
test_invoke_api()
test_invoke_api_not_recreate_session()
test_invoke_api_with_empty_response()
test_invoke_api_with_expected_exception()
test_invoke_api_with_stale_session()
test_invoke_api_with_unknown_fault()
test_invoke_api_with_vim_fault_exception()
test_invoke_api_with_vim_fault_exception_details()
test_logout_calls_vim_logout()
test_logout_no_session()
test_logout_with_exception()
test_pbm(*args, **keywargs)
test_poll_task_unknown_exception()
test_poll_task_well_known_exceptions()
test_update_pbm_wsdl_loc()
test_vim()
test_wait_for_lease_ready()
test_wait_for_lease_ready_with_error_state()
test_wait_for_lease_ready_with_invoke_api_exception()
test_wait_for_lease_ready_with_unknown_state()
test_wait_for_task()
test_wait_for_task_with_error_state()
test_wait_for_task_with_invoke_api_exception()

This Page