:py:mod:`nautobot_ssot_vsphere.tests.test_vsphere_client` ========================================================= .. py:module:: nautobot_ssot_vsphere.tests.test_vsphere_client .. autoapi-nested-parse:: Test vSphere client. Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: nautobot_ssot_vsphere.tests.test_vsphere_client.TestVsphere Attributes ~~~~~~~~~~ .. autoapisummary:: nautobot_ssot_vsphere.tests.test_vsphere_client.FIXTURES .. py:data:: FIXTURES .. py:class:: TestVsphere Bases: :py:obj:`nautobot.utilities.testing.TestCase` Test Base vSphere Client and Calls. .. py:method:: setUp(mock_session) Setup. .. py:method:: test_init_success() Assert proper initialization of client. .. py:method:: test_init_missing_uri() Assert proper initialization of client, raise ValErr from creds/uri. .. py:method:: test_init_uri_not_str() Assert proper initialization of client, failure from uri not a str. .. py:method:: test_ssl_not_verify() Test verify SSL False. .. py:method:: test_get_vms() Test Get VMs API Call. .. py:method:: test_get_vms_from_cluster() Test Get VMs from cluster API Call. .. py:method:: test_get_vms_from_dc() Test Get VMs from DC API Call. .. py:method:: test_get_datacenters() Test Get DC's API Call. .. py:method:: test_get_clusters() Test Get Clusters API Call. .. py:method:: test_get_cluster_details() Test Get Clusters Detail API Call. .. py:method:: test_get_dc_details() Test Get DC Details API Call. .. py:method:: test_get_vm_interfaces() Test Get VM Interface Details API Call. .. py:method:: test_get_vm_details() Test Get VM Details API Call. .. py:method:: test_get_host_from_clusters() Test Get host from clusters API Call. .. py:method:: test_get_host_details() Test Get host details API Call.