207 lines
6.9 KiB
Python
207 lines
6.9 KiB
Python
# tests/test_provider_digitalocean_digitalocean.py
|
|
# Automatically generated by tools/makecode.py (24-Sep-2021 15:15:12 UTC)
|
|
|
|
|
|
def test_provider_import():
|
|
import terrascript.provider.digitalocean.digitalocean
|
|
|
|
|
|
def test_resource_import():
|
|
from terrascript.resource.digitalocean.digitalocean import digitalocean_app
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import digitalocean_cdn
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import digitalocean_certificate
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import (
|
|
digitalocean_container_registry,
|
|
)
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import (
|
|
digitalocean_container_registry_docker_credentials,
|
|
)
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import digitalocean_custom_image
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import (
|
|
digitalocean_database_cluster,
|
|
)
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import (
|
|
digitalocean_database_connection_pool,
|
|
)
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import digitalocean_database_db
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import (
|
|
digitalocean_database_firewall,
|
|
)
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import (
|
|
digitalocean_database_replica,
|
|
)
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import (
|
|
digitalocean_database_user,
|
|
)
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import digitalocean_domain
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import digitalocean_droplet
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import (
|
|
digitalocean_droplet_snapshot,
|
|
)
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import digitalocean_firewall
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import digitalocean_floating_ip
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import (
|
|
digitalocean_floating_ip_assignment,
|
|
)
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import (
|
|
digitalocean_kubernetes_cluster,
|
|
)
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import (
|
|
digitalocean_kubernetes_node_pool,
|
|
)
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import digitalocean_loadbalancer
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import (
|
|
digitalocean_monitor_alert,
|
|
)
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import digitalocean_project
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import (
|
|
digitalocean_project_resources,
|
|
)
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import digitalocean_record
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import (
|
|
digitalocean_spaces_bucket,
|
|
)
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import (
|
|
digitalocean_spaces_bucket_object,
|
|
)
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import digitalocean_ssh_key
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import digitalocean_tag
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import digitalocean_volume
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import (
|
|
digitalocean_volume_attachment,
|
|
)
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import (
|
|
digitalocean_volume_snapshot,
|
|
)
|
|
|
|
from terrascript.resource.digitalocean.digitalocean import digitalocean_vpc
|
|
|
|
|
|
def test_datasource_import():
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_account
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_app
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_certificate
|
|
|
|
from terrascript.data.digitalocean.digitalocean import (
|
|
digitalocean_container_registry,
|
|
)
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_database_cluster
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_database_replica
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_domain
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_domains
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_droplet
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_droplet_snapshot
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_droplets
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_firewall
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_floating_ip
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_image
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_images
|
|
|
|
from terrascript.data.digitalocean.digitalocean import (
|
|
digitalocean_kubernetes_cluster,
|
|
)
|
|
|
|
from terrascript.data.digitalocean.digitalocean import (
|
|
digitalocean_kubernetes_versions,
|
|
)
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_loadbalancer
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_project
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_projects
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_record
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_records
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_region
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_regions
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_sizes
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_spaces_bucket
|
|
|
|
from terrascript.data.digitalocean.digitalocean import (
|
|
digitalocean_spaces_bucket_object,
|
|
)
|
|
|
|
from terrascript.data.digitalocean.digitalocean import (
|
|
digitalocean_spaces_bucket_objects,
|
|
)
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_spaces_buckets
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_ssh_key
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_ssh_keys
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_tag
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_tags
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_volume
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_volume_snapshot
|
|
|
|
from terrascript.data.digitalocean.digitalocean import digitalocean_vpc
|
|
|
|
|
|
# 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.digitalocean.digitalocean
|
|
#
|
|
# t = terrascript.provider.digitalocean.digitalocean.digitalocean()
|
|
# s = str(t)
|
|
#
|
|
# assert 'https://github.com/digitalocean/terraform-provider-digitalocean' in s
|
|
# assert '2.12.0' in s
|