python-terrascript/tests/test_provider_hashicorp_dns.py

57 lines
1.7 KiB
Python

# tests/test_provider_hashicorp_dns.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:15:19 UTC)
def test_provider_import():
import terrascript.provider.hashicorp.dns
def test_resource_import():
from terrascript.resource.hashicorp.dns import dns_a_record_set
from terrascript.resource.hashicorp.dns import dns_aaaa_record_set
from terrascript.resource.hashicorp.dns import dns_cname_record
from terrascript.resource.hashicorp.dns import dns_mx_record_set
from terrascript.resource.hashicorp.dns import dns_ns_record_set
from terrascript.resource.hashicorp.dns import dns_ptr_record
from terrascript.resource.hashicorp.dns import dns_srv_record_set
from terrascript.resource.hashicorp.dns import dns_txt_record_set
def test_datasource_import():
from terrascript.data.hashicorp.dns import dns_a_record_set
from terrascript.data.hashicorp.dns import dns_aaaa_record_set
from terrascript.data.hashicorp.dns import dns_cname_record_set
from terrascript.data.hashicorp.dns import dns_mx_record_set
from terrascript.data.hashicorp.dns import dns_ns_record_set
from terrascript.data.hashicorp.dns import dns_ptr_record_set
from terrascript.data.hashicorp.dns import dns_srv_record_set
from terrascript.data.hashicorp.dns import dns_txt_record_set
# 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.dns
#
# t = terrascript.provider.hashicorp.dns.dns()
# s = str(t)
#
# assert 'https://github.com/hashicorp/terraform-provider-dns' in s
# assert '3.2.1' in s