python-terrascript/tests/test_provider_ucloud_ucloud.py

131 lines
4.2 KiB
Python

# tests/test_provider_ucloud_ucloud.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:29:33 UTC)
def test_provider_import():
import terrascript.provider.ucloud.ucloud
def test_resource_import():
from terrascript.resource.ucloud.ucloud import ucloud_cube_pod
from terrascript.resource.ucloud.ucloud import ucloud_db_instance
from terrascript.resource.ucloud.ucloud import ucloud_disk
from terrascript.resource.ucloud.ucloud import ucloud_disk_attachment
from terrascript.resource.ucloud.ucloud import ucloud_eip
from terrascript.resource.ucloud.ucloud import ucloud_eip_association
from terrascript.resource.ucloud.ucloud import ucloud_instance
from terrascript.resource.ucloud.ucloud import ucloud_isolation_group
from terrascript.resource.ucloud.ucloud import ucloud_lb
from terrascript.resource.ucloud.ucloud import ucloud_lb_attachment
from terrascript.resource.ucloud.ucloud import ucloud_lb_listener
from terrascript.resource.ucloud.ucloud import ucloud_lb_rule
from terrascript.resource.ucloud.ucloud import ucloud_lb_ssl
from terrascript.resource.ucloud.ucloud import ucloud_lb_ssl_attachment
from terrascript.resource.ucloud.ucloud import ucloud_memcache_instance
from terrascript.resource.ucloud.ucloud import ucloud_nat_gateway
from terrascript.resource.ucloud.ucloud import ucloud_nat_gateway_rule
from terrascript.resource.ucloud.ucloud import ucloud_redis_instance
from terrascript.resource.ucloud.ucloud import ucloud_security_group
from terrascript.resource.ucloud.ucloud import ucloud_subnet
from terrascript.resource.ucloud.ucloud import ucloud_udpn_connection
from terrascript.resource.ucloud.ucloud import ucloud_ufs_volume
from terrascript.resource.ucloud.ucloud import ucloud_uk8s_cluster
from terrascript.resource.ucloud.ucloud import ucloud_uk8s_node
from terrascript.resource.ucloud.ucloud import ucloud_us3_bucket
from terrascript.resource.ucloud.ucloud import ucloud_vip
from terrascript.resource.ucloud.ucloud import ucloud_vpc
from terrascript.resource.ucloud.ucloud import ucloud_vpc_peering_connection
from terrascript.resource.ucloud.ucloud import ucloud_vpn_connection
from terrascript.resource.ucloud.ucloud import ucloud_vpn_customer_gateway
from terrascript.resource.ucloud.ucloud import ucloud_vpn_gateway
def test_datasource_import():
from terrascript.data.ucloud.ucloud import ucloud_db_instances
from terrascript.data.ucloud.ucloud import ucloud_db_parameter_groups
from terrascript.data.ucloud.ucloud import ucloud_disks
from terrascript.data.ucloud.ucloud import ucloud_eips
from terrascript.data.ucloud.ucloud import ucloud_images
from terrascript.data.ucloud.ucloud import ucloud_instances
from terrascript.data.ucloud.ucloud import ucloud_lb_attachments
from terrascript.data.ucloud.ucloud import ucloud_lb_listeners
from terrascript.data.ucloud.ucloud import ucloud_lb_rules
from terrascript.data.ucloud.ucloud import ucloud_lb_ssls
from terrascript.data.ucloud.ucloud import ucloud_lbs
from terrascript.data.ucloud.ucloud import ucloud_nat_gateways
from terrascript.data.ucloud.ucloud import ucloud_projects
from terrascript.data.ucloud.ucloud import ucloud_security_groups
from terrascript.data.ucloud.ucloud import ucloud_subnets
from terrascript.data.ucloud.ucloud import ucloud_ufs_volumes
from terrascript.data.ucloud.ucloud import ucloud_us3_buckets
from terrascript.data.ucloud.ucloud import ucloud_vpcs
from terrascript.data.ucloud.ucloud import ucloud_vpn_connections
from terrascript.data.ucloud.ucloud import ucloud_vpn_customer_gateways
from terrascript.data.ucloud.ucloud import ucloud_vpn_gateways
from terrascript.data.ucloud.ucloud import ucloud_zones
# 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.ucloud.ucloud
#
# t = terrascript.provider.ucloud.ucloud.ucloud()
# s = str(t)
#
# assert 'https://github.com/ucloud/terraform-provider-ucloud' in s
# assert '1.29.0' in s