nautobot_ssot_vsphere.tests.test_vsphere_client

Test vSphere client.

Module Contents

Classes

TestVsphere

Test Base vSphere Client and Calls.

Attributes

FIXTURES

nautobot_ssot_vsphere.tests.test_vsphere_client.FIXTURES
class nautobot_ssot_vsphere.tests.test_vsphere_client.TestVsphere

Bases: nautobot.utilities.testing.TestCase

Test Base vSphere Client and Calls.

setUp(mock_session)

Setup.

test_init_success()

Assert proper initialization of client.

test_init_missing_uri()

Assert proper initialization of client, raise ValErr from creds/uri.

test_init_uri_not_str()

Assert proper initialization of client, failure from uri not a str.

test_ssl_not_verify()

Test verify SSL False.

test_get_vms()

Test Get VMs API Call.

test_get_vms_from_cluster()

Test Get VMs from cluster API Call.

test_get_vms_from_dc()

Test Get VMs from DC API Call.

test_get_datacenters()

Test Get DC’s API Call.

test_get_clusters()

Test Get Clusters API Call.

test_get_cluster_details()

Test Get Clusters Detail API Call.

test_get_dc_details()

Test Get DC Details API Call.

test_get_vm_interfaces()

Test Get VM Interface Details API Call.

test_get_vm_details()

Test Get VM Details API Call.

test_get_host_from_clusters()

Test Get host from clusters API Call.

test_get_host_details()

Test Get host details API Call.