python-terrascript/tests/test_provider_hashicorp_tls.py

37 lines
1.0 KiB
Python

# tests/test_provider_hashicorp_tls.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:28:45 UTC)
def test_provider_import():
import terrascript.provider.hashicorp.tls
def test_resource_import():
from terrascript.resource.hashicorp.tls import tls_cert_request
from terrascript.resource.hashicorp.tls import tls_locally_signed_cert
from terrascript.resource.hashicorp.tls import tls_private_key
from terrascript.resource.hashicorp.tls import tls_self_signed_cert
def test_datasource_import():
from terrascript.data.hashicorp.tls import tls_certificate
from terrascript.data.hashicorp.tls import tls_public_key
# 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.tls
#
# t = terrascript.provider.hashicorp.tls.tls()
# s = str(t)
#
# assert 'https://github.com/hashicorp/terraform-provider-tls' in s
# assert '3.1.0' in s