python-terrascript/tests/test_provider_hashicorp_con...

109 lines
3.7 KiB
Python

# tests/test_provider_hashicorp_consul.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:14:36 UTC)
def test_provider_import():
import terrascript.provider.hashicorp.consul
def test_resource_import():
from terrascript.resource.hashicorp.consul import consul_acl_auth_method
from terrascript.resource.hashicorp.consul import consul_acl_binding_rule
from terrascript.resource.hashicorp.consul import consul_acl_policy
from terrascript.resource.hashicorp.consul import consul_acl_role
from terrascript.resource.hashicorp.consul import consul_acl_token
from terrascript.resource.hashicorp.consul import consul_acl_token_policy_attachment
from terrascript.resource.hashicorp.consul import consul_acl_token_role_attachment
from terrascript.resource.hashicorp.consul import consul_agent_service
from terrascript.resource.hashicorp.consul import consul_autopilot_config
from terrascript.resource.hashicorp.consul import consul_catalog_entry
from terrascript.resource.hashicorp.consul import consul_certificate_authority
from terrascript.resource.hashicorp.consul import consul_config_entry
from terrascript.resource.hashicorp.consul import consul_intention
from terrascript.resource.hashicorp.consul import consul_key_prefix
from terrascript.resource.hashicorp.consul import consul_keys
from terrascript.resource.hashicorp.consul import consul_license
from terrascript.resource.hashicorp.consul import consul_namespace
from terrascript.resource.hashicorp.consul import consul_namespace_policy_attachment
from terrascript.resource.hashicorp.consul import consul_namespace_role_attachment
from terrascript.resource.hashicorp.consul import consul_network_area
from terrascript.resource.hashicorp.consul import consul_node
from terrascript.resource.hashicorp.consul import consul_prepared_query
from terrascript.resource.hashicorp.consul import consul_service
def test_datasource_import():
from terrascript.data.hashicorp.consul import consul_acl_auth_method
from terrascript.data.hashicorp.consul import consul_acl_policy
from terrascript.data.hashicorp.consul import consul_acl_role
from terrascript.data.hashicorp.consul import consul_acl_token
from terrascript.data.hashicorp.consul import consul_acl_token_secret_id
from terrascript.data.hashicorp.consul import consul_agent_config
from terrascript.data.hashicorp.consul import consul_agent_self
from terrascript.data.hashicorp.consul import consul_autopilot_health
from terrascript.data.hashicorp.consul import consul_catalog_nodes
from terrascript.data.hashicorp.consul import consul_catalog_service
from terrascript.data.hashicorp.consul import consul_catalog_services
from terrascript.data.hashicorp.consul import consul_key_prefix
from terrascript.data.hashicorp.consul import consul_keys
from terrascript.data.hashicorp.consul import consul_network_area_members
from terrascript.data.hashicorp.consul import consul_network_segments
from terrascript.data.hashicorp.consul import consul_nodes
from terrascript.data.hashicorp.consul import consul_service
from terrascript.data.hashicorp.consul import consul_service_health
from terrascript.data.hashicorp.consul import consul_services
# 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.consul
#
# t = terrascript.provider.hashicorp.consul.consul()
# s = str(t)
#
# assert 'https://github.com/hashicorp/terraform-provider-consul' in s
# assert '2.13.0' in s