python-terrascript/tests/test_provider_hashicorp_azu...

121 lines
4.1 KiB
Python

# tests/test_provider_hashicorp_azurestack.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:13:15 UTC)
def test_provider_import():
import terrascript.provider.hashicorp.azurestack
def test_resource_import():
from terrascript.resource.hashicorp.azurestack import azurestack_availability_set
from terrascript.resource.hashicorp.azurestack import azurestack_dns_a_record
from terrascript.resource.hashicorp.azurestack import azurestack_dns_zone
from terrascript.resource.hashicorp.azurestack import azurestack_lb
from terrascript.resource.hashicorp.azurestack import (
azurestack_lb_backend_address_pool,
)
from terrascript.resource.hashicorp.azurestack import azurestack_lb_nat_pool
from terrascript.resource.hashicorp.azurestack import azurestack_lb_nat_rule
from terrascript.resource.hashicorp.azurestack import azurestack_lb_probe
from terrascript.resource.hashicorp.azurestack import azurestack_lb_rule
from terrascript.resource.hashicorp.azurestack import (
azurestack_local_network_gateway,
)
from terrascript.resource.hashicorp.azurestack import azurestack_managed_disk
from terrascript.resource.hashicorp.azurestack import azurestack_network_interface
from terrascript.resource.hashicorp.azurestack import (
azurestack_network_security_group,
)
from terrascript.resource.hashicorp.azurestack import (
azurestack_network_security_rule,
)
from terrascript.resource.hashicorp.azurestack import azurestack_public_ip
from terrascript.resource.hashicorp.azurestack import azurestack_resource_group
from terrascript.resource.hashicorp.azurestack import azurestack_route
from terrascript.resource.hashicorp.azurestack import azurestack_route_table
from terrascript.resource.hashicorp.azurestack import azurestack_storage_account
from terrascript.resource.hashicorp.azurestack import azurestack_storage_blob
from terrascript.resource.hashicorp.azurestack import azurestack_storage_container
from terrascript.resource.hashicorp.azurestack import azurestack_subnet
from terrascript.resource.hashicorp.azurestack import azurestack_template_deployment
from terrascript.resource.hashicorp.azurestack import azurestack_virtual_machine
from terrascript.resource.hashicorp.azurestack import (
azurestack_virtual_machine_extension,
)
from terrascript.resource.hashicorp.azurestack import (
azurestack_virtual_machine_scale_set,
)
from terrascript.resource.hashicorp.azurestack import azurestack_virtual_network
from terrascript.resource.hashicorp.azurestack import (
azurestack_virtual_network_gateway,
)
from terrascript.resource.hashicorp.azurestack import (
azurestack_virtual_network_gateway_connection,
)
def test_datasource_import():
from terrascript.data.hashicorp.azurestack import azurestack_client_config
from terrascript.data.hashicorp.azurestack import azurestack_network_interface
from terrascript.data.hashicorp.azurestack import azurestack_network_security_group
from terrascript.data.hashicorp.azurestack import azurestack_platform_image
from terrascript.data.hashicorp.azurestack import azurestack_public_ip
from terrascript.data.hashicorp.azurestack import azurestack_resource_group
from terrascript.data.hashicorp.azurestack import azurestack_route_table
from terrascript.data.hashicorp.azurestack import azurestack_storage_account
from terrascript.data.hashicorp.azurestack import azurestack_subnet
from terrascript.data.hashicorp.azurestack import azurestack_virtual_network
from terrascript.data.hashicorp.azurestack import azurestack_virtual_network_gateway
# 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.azurestack
#
# t = terrascript.provider.hashicorp.azurestack.azurestack()
# s = str(t)
#
# assert 'https://github.com/hashicorp/terraform-provider-azurestack' in s
# assert '0.10.0' in s