python-terrascript/tests/test_provider_cyrilgdn_post...

43 lines
1.4 KiB
Python

# tests/test_provider_cyrilgdn_postgresql.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:25:01 UTC)
def test_provider_import():
import terrascript.provider.cyrilgdn.postgresql
def test_resource_import():
from terrascript.resource.cyrilgdn.postgresql import postgresql_database
from terrascript.resource.cyrilgdn.postgresql import postgresql_default_privileges
from terrascript.resource.cyrilgdn.postgresql import postgresql_extension
from terrascript.resource.cyrilgdn.postgresql import postgresql_grant
from terrascript.resource.cyrilgdn.postgresql import postgresql_grant_role
from terrascript.resource.cyrilgdn.postgresql import (
postgresql_physical_replication_slot,
)
from terrascript.resource.cyrilgdn.postgresql import postgresql_replication_slot
from terrascript.resource.cyrilgdn.postgresql import postgresql_role
from terrascript.resource.cyrilgdn.postgresql import postgresql_schema
# 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.cyrilgdn.postgresql
#
# t = terrascript.provider.cyrilgdn.postgresql.postgresql()
# s = str(t)
#
# assert 'https://github.com/cyrilgdn/terraform-provider-postgresql' in s
# assert '1.14.0' in s