163 lines
5.5 KiB
Python
163 lines
5.5 KiB
Python
# tests/test_provider_hashicorp_vsphere.py
|
|
# Automatically generated by tools/makecode.py (24-Sep-2021 15:30:54 UTC)
|
|
|
|
|
|
def test_provider_import():
|
|
import terrascript.provider.hashicorp.vsphere
|
|
|
|
|
|
def test_resource_import():
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_compute_cluster
|
|
|
|
from terrascript.resource.hashicorp.vsphere import (
|
|
vsphere_compute_cluster_host_group,
|
|
)
|
|
|
|
from terrascript.resource.hashicorp.vsphere import (
|
|
vsphere_compute_cluster_vm_affinity_rule,
|
|
)
|
|
|
|
from terrascript.resource.hashicorp.vsphere import (
|
|
vsphere_compute_cluster_vm_anti_affinity_rule,
|
|
)
|
|
|
|
from terrascript.resource.hashicorp.vsphere import (
|
|
vsphere_compute_cluster_vm_dependency_rule,
|
|
)
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_compute_cluster_vm_group
|
|
|
|
from terrascript.resource.hashicorp.vsphere import (
|
|
vsphere_compute_cluster_vm_host_rule,
|
|
)
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_content_library
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_content_library_item
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_custom_attribute
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_datacenter
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_datastore_cluster
|
|
|
|
from terrascript.resource.hashicorp.vsphere import (
|
|
vsphere_datastore_cluster_vm_anti_affinity_rule,
|
|
)
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_distributed_port_group
|
|
|
|
from terrascript.resource.hashicorp.vsphere import (
|
|
vsphere_distributed_virtual_switch,
|
|
)
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_dpm_host_override
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_drs_vm_override
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_entity_permissions
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_file
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_folder
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_ha_vm_override
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_host
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_host_port_group
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_host_virtual_switch
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_license
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_nas_datastore
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_resource_pool
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_role
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_storage_drs_vm_override
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_tag
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_tag_category
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_vapp_container
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_vapp_entity
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_virtual_disk
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_virtual_machine
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_virtual_machine_snapshot
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_vm_storage_policy
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_vmfs_datastore
|
|
|
|
from terrascript.resource.hashicorp.vsphere import vsphere_vnic
|
|
|
|
|
|
def test_datasource_import():
|
|
from terrascript.data.hashicorp.vsphere import vsphere_compute_cluster
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_content_library
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_content_library_item
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_custom_attribute
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_datacenter
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_datastore
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_datastore_cluster
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_distributed_virtual_switch
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_dynamic
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_folder
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_host
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_host_pci_device
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_host_thumbprint
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_network
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_ovf_vm_template
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_resource_pool
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_role
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_storage_policy
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_tag
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_tag_category
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_vapp_container
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_virtual_machine
|
|
|
|
from terrascript.data.hashicorp.vsphere import vsphere_vmfs_disks
|
|
|
|
|
|
# TODO: Shortcut imports without namespace for official and supported providers.
|
|
|
|
# TODO: This has to be moved into a required_providers block.
|
|
# def test_version_source():
|
|
#
|
|
# import terrascript.provider.hashicorp.vsphere
|
|
#
|
|
# t = terrascript.provider.hashicorp.vsphere.vsphere()
|
|
# s = str(t)
|
|
#
|
|
# assert 'https://github.com/hashicorp/terraform-provider-vsphere' in s
|
|
# assert '2.0.2' in s
|